This is with current quantal: gcc-4.7-arm-linux-gnueabihf Version: 4.7.1-5ubuntu1cross1.67 gcc-arm-linux-gnueabihf Version: 4:4.7.0-7
This seems to have become more broken again and is currently breaking a lot of builds: /usr/include is not on the system search path, never mind /usr/include/<triplet>. Oddly enough anything depending on the compiler to find -dev package headers is failing. A simple example is acl http://people.linaro.org/~wookey/buildd/quantal/sbuild- ma/acl_2.2.51-8ubuntu1-quantal-ma-cross-armhf-20120822-031159.4922.log ---build-log excerpt--- checking attr/xattr.h usability... no checking attr/xattr.h presence... no checking for attr/xattr.h... no FATAL ERROR: attr/xattr.h does not exist. ---------------- $ dpkg -s libattr1-dev:armhf Package: libattr1-dev Status: install ok installed Architecture: armhf Multi-Arch: same $ dpkg -L libattr1-dev:armhf ... /usr/include/attr/xattr.h ... And indeed if we check the compiler is not looking in /usr/insclude: (quantal-amd64-test)wookey@e102475-lin:~/chroots/testrepo/packages-modded/acl-2.2.51$ `gcc -print-prog-name=cc1plus` -v ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../x86_64-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/include/c++/4.7 /usr/include/c++/4.7/x86_64-linux-gnu /usr/include/c++/4.7/backward /usr/lib/gcc/x86_64-linux-gnu/4.7/include /usr/local/include /usr/lib/gcc/x86_64-linux-gnu/4.7/include-fixed /usr/include End of search list. (quantal-amd64-test)wookey@e102475-lin:~/chroots/testrepo/packages-modded/acl-2.2.51$ `arm-linux-gnueabi-gcc -print-prog-name=cc1plus` -v ignoring duplicate directory "/usr/lib/gcc/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/include" #include "..." search starts here: #include <...> search starts here: /usr/arm-linux-gnueabi/include/c++/4.7.1 /usr/arm-linux-gnueabi/include/c++/4.7.1/arm-linux-gnueabi /usr/arm-linux-gnueabi/include/c++/4.7.1/backward /usr/lib/gcc/arm-linux-gnueabi/4.7/include /usr/lib/gcc/arm-linux-gnueabi/4.7/include-fixed /usr/arm-linux-gnueabi/include End of search list The config.log output is attached to show the full failure example but it's dead easy to reproduce: In a quantal chroot: apt-get source acl apt-get -a armhf build-dep acl cd acl-2.2.51 dpkg-buildpackage -aarmhf This bug is already critical, and the current 4.6 hack seems to have got lost in 4.7- any idea when it might get hacked again or fixed properly? ** Attachment added: "config.log" https://bugs.launchpad.net/linaro-ubuntu/+bug/799965/+attachment/3285467/+files/config.log -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/799965 Title: cross-compiler doesn't have /usr/include on the search path To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-ubuntu/+bug/799965/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs