[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#676421: gcc-4.7: cross-compiler wants /usr/$triplet/include/ instead of /usr/include/$triplet/



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



Reply to: