[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/



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
`-====

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.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (150, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gcc-4.7 depends on:
ii  binutils      2.22-6.1
ii  cpp-4.7       4.7.0-11
ii  gcc-4.7-base  4.7.0-11
ii  libc6         2.13-33
ii  libgcc1       1:4.7.0-11
ii  libgmp10      2:5.0.5+dfsg-2
ii  libgomp1      4.7.0-11
ii  libitm1       4.7.0-11
ii  libmpc2       0.9-4
ii  libmpfr4      3.1.0-5
ii  libquadmath0  4.7.0-11
ii  zlib1g        1:1.2.7.dfsg-11

Versions of packages gcc-4.7 recommends:
ii  libc6-dev  2.13-33

Versions of packages gcc-4.7 suggests:
pn  binutils-gold        <none>
pn  gcc-4.7-doc          <none>
pn  gcc-4.7-locales      <none>
pn  gcc-4.7-multilib     4.7.0-11
pn  libgcc1-dbg          1:4.7.0-11
pn  libgomp1-dbg         <none>
pn  libitm1-dbg          <none>
pn  libmudflap0-4.7-dev  <none>
pn  libmudflap0-dbg      <none>
pn  libquadmath0-dbg     <none>

-- no debconf information



Reply to: