On 06.06.2012 22:18, Adam Borowski wrote:
> Package: gcc-4.7
> Version: 4.7.0-11
> Severity: normal
> 
> Hi!
> 
> Building a cross-compiler fails with:
> .-====
> The directory that should contain system headers does not exist:
>   /usr/arm-linux-gnueabi/include
> `-====

this is the layout used by upstream for cross builds. don't change it.

> And here's the cause:
> [~]$ dpkg -L libc6-dev:armel|grep arm-linux-gnueabi|head -n1
> /usr/lib/arm-linux-gnueabi
> [~]$ schroot -c squeeze-cross
> squeeze-cross:[~]$ dpkg -L libc6-dev-armel-cross|grep arm-linux-gnueabi|head 
> -n2
> /usr/arm-linux-gnueabi
> /usr/arm-linux-gnueabi/include
> 
> Non-cross builds correctly look in /usr/include/$triplet/, so I'm afraid
> cross ones need to be adjusted.

what you really want is to search this path before searching the *system* paths
and local include paths in addition. Marvin did want to look at this.

  Matthias



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to