Bug 6766 - adt installed toolchain compilation error under ALL ARCHs with build yocto_1.7.rc1
Summary: adt installed toolchain compilation error under ALL ARCHs with build yocto_1....
Status: VERIFIED FIXED
Alias: None
Product: ADT
Classification: Yocto Project Subprojects
Component: adt (show other bugs)
Version: 1.7
Hardware: x86 Multiple
: High major
Target Milestone: 1.7 M4
Assignee: Richard Purdie
QA Contact: Ke Zou
URL:
Whiteboard:
: 6608 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-26 05:39 UTC by Ke Zou
Modified: 2015-03-30 07:04 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ke Zou 2014-09-26 05:39:19 UTC
build location:
http://autobuilder.yoctoproject.org/pub/releases/yocto-1.7.rc1/
ADT installer location:
http://autobuilder.yoctoproject.org/pub/releases/yocto-1.7.rc1/adt-installer-QA/

after ADT installed corss-toolchain, all compilation tests went into error even for the simplest C compilation test.

for instance, test case:
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1054

error log:(ppc arch)
Using built-in specs.
COLLECT_GCC=powerpc-poky-linux-gcc
COLLECT_LTO_WRAPPER=/buildarea/sdk-automation-test/sdk/sysroots/i686-pokysdk-linux/usr/bin/powerpc-poky-linux/../../libexec/powerpc-poky-linux/gcc/powerpc-poky-linux/4.9.1/lto-wrapper
Target: powerpc-poky-linux
Configured with: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc/build/build/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1/configure --build=x86_64-linux --host=i686-pokysdk-linux --target=powerpc-poky-linux --prefix=/opt/poky/1.7/sysroots/i686-pokysdk-linux/usr --exec_prefix=/opt/poky/1.7/sysroots/i686-pokysdk-linux/usr --bindir=/opt/poky/1.7/sysroots/i686-pokysdk-linux/usr/bin/powerpc-poky-linux --sbindir=/opt/poky/1.7/sysroots/i686-pokysdk-linux/usr/bin/powerpc-poky-linux --libexecdir=/opt/poky/1.7/sysroots/i686-pokysdk-linux/usr/libexec/powerpc-poky-linux --datadir=/opt/poky/1.7/sysroots/i686-pokysdk-linux/usr/share --sysconfdir=/opt/poky/1.7/sysroots/i686-pokysdk-linux/etc --sharedstatedir=/opt/poky/1.7/sysroots/i686-pokysdk-linux/com --localstatedir=/opt/poky/1.7/sysroots/i686-pokysdk-linux/var --libdir=/opt/poky/1.7/sysroots/i686-pokysdk-linux/usr/lib/powerpc-poky-linux --includedir=/opt/poky/1.7/sysroots/i686-pokysdk-linux/usr/include --oldincludedir=/opt/poky/1.7/sysroots/i686-pokysdk-linux/usr/include --infodir=/opt/poky/1.7/sysroots/i686-pokysdk-linux/usr/share/info --mandir=/opt/poky/1.7/sysroots/i686-pokysdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc/build/build/tmp/sysroots/i686-nativesdk-pokysdk-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=powerpc-poky-linux- --without-local-prefix --enable-lto --enable-libssp --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --with-gxx-include-dir=/opt/poky/1.7/sysroots/ppc7400-poky-linux/usr/include/c++/4.9.1 --with-build-time-tools=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc/build/build/tmp/sysroots/x86_64-linux/usr/powerpc-poky-linux/bin --with-sysroot=/opt/poky/1.7/sysroots/ppc7400-poky-linux --with-build-sysroot=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc/build/build/tmp/sysroots/qemuppc --with-long-double-128 --enable-targets=powerpc64 --enable-poison-system-directories --with-mpfr=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc/build/build/tmp/sysroots/i686-nativesdk-pokysdk-linux --with-mpc=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc/build/build/tmp/sysroots/i686-nativesdk-pokysdk-linux --enable-nls --enable-__cxa_atexit
Thread model: posix
gcc version 4.9.1 (GCC) 
COLLECT_GCC_OPTIONS='--sysroot=/buildarea/sdk-automation-test/sdk/sysroots/powerpc-poky-linux' '-m32' '-mhard-float' '-mcpu=7400' '-v' '-o' '/buildarea/sdk-automation-test/test_files/ppc_C_test'
 /buildarea/sdk-automation-test/sdk/sysroots/i686-pokysdk-linux/usr/bin/powerpc-poky-linux/../../libexec/powerpc-poky-linux/gcc/powerpc-poky-linux/4.9.1/cc1 -quiet -v -iprefix /buildarea/sdk-automation-test/sdk/sysroots/i686-pokysdk-linux/usr/bin/powerpc-poky-linux/../../lib/powerpc-poky-linux/gcc/powerpc-poky-linux/4.9.1/ -isysroot /buildarea/sdk-automation-test/sdk/sysroots/powerpc-poky-linux -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux -Asystem=unix -Asystem=posix /buildarea/sdk-automation-test/test_files/test.c -quiet -dumpbase test.c -m32 -mhard-float -mcpu=7400 -auxbase test -version -o /tmp/cc77oA5a.s
GNU C (GCC) version 4.9.1 (powerpc-poky-linux)
	compiled by GNU C version 4.9.1, GMP version 6.0.0, MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/buildarea/sdk-automation-test/sdk/sysroots/i686-pokysdk-linux/usr/bin/powerpc-poky-linux/../../lib/powerpc-poky-linux/gcc/powerpc-poky-linux/4.9.1/../../../../../powerpc-poky-linux/include"
ignoring duplicate directory "/buildarea/sdk-automation-test/sdk/sysroots/i686-pokysdk-linux/usr/bin/powerpc-poky-linux/../../lib/powerpc-poky-linux/gcc/../../../lib/powerpc-poky-linux/gcc/powerpc-poky-linux/4.9.1/include"
ignoring nonexistent directory "/buildarea/sdk-automation-test/sdk/sysroots/powerpc-poky-linux/usr/local/include"
ignoring duplicate directory "/buildarea/sdk-automation-test/sdk/sysroots/i686-pokysdk-linux/usr/bin/powerpc-poky-linux/../../lib/powerpc-poky-linux/gcc/../../../lib/powerpc-poky-linux/gcc/powerpc-poky-linux/4.9.1/include-fixed"
ignoring nonexistent directory "/buildarea/sdk-automation-test/sdk/sysroots/i686-pokysdk-linux/usr/bin/powerpc-poky-linux/../../lib/powerpc-poky-linux/gcc/../../../lib/powerpc-poky-linux/gcc/powerpc-poky-linux/4.9.1/../../../../../powerpc-poky-linux/include"
ignoring nonexistent directory "/buildarea/sdk-automation-test/sdk/sysroots/powerpc-poky-linux/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 /buildarea/sdk-automation-test/sdk/sysroots/i686-pokysdk-linux/usr/bin/powerpc-poky-linux/../../lib/powerpc-poky-linux/gcc/powerpc-poky-linux/4.9.1/include
 /buildarea/sdk-automation-test/sdk/sysroots/i686-pokysdk-linux/usr/bin/powerpc-poky-linux/../../lib/powerpc-poky-linux/gcc/powerpc-poky-linux/4.9.1/include-fixed
End of search list.
GNU C (GCC) version 4.9.1 (powerpc-poky-linux)
	compiled by GNU C version 4.9.1, GMP version 6.0.0, MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 0de11a47a3555d629e99a5023af6ed58
/buildarea/sdk-automation-test/test_files/test.c:1:19: fatal error: stdio.h: No such file or directory
 #include <stdio.h>
                   ^
compilation terminated.


Note:when directly download toolchain from build directory, same error emerges
http://autobuilder.yoctoproject.org/pub/releases/yocto-1.7.rc1/toolchain/

Looks like compiler is searching head files in wrong directories.

Please note that there's a recent commit regarding to bug 6613
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6613

I'll do a regression test on my server to make sure if this is caused by this commit.
Comment 1 Ke Zou 2014-09-28 08:02:24 UTC
build with git commit:
commit 6523bc171cdd06bed9c7a36aa2198b17b9c0a016
Author: Richard Purdie <richard.purdie@linuxfoundation.org>
Date:   Fri Sep 19 18:08:40 2014 +0100

everything is fine

build with git commit:
commit 955bf632a72abc339102fd8b1e1ad27cd300ccd0
Author: Richard Purdie <richard.purdie@linuxfoundation.org>
Date:   Fri Sep 19 18:09:12 2014 +0100

toolchain error occurs.



Plus, test procedure:
git reset --hard $commit
bitbake core-image-sato -c populate_sdk

Use the toolchain under tmp/deploy/sdk  to test
Comment 2 Mihail Stanciu 2014-09-29 13:03:52 UTC
*** Bug 6608 has been marked as a duplicate of this bug. ***
Comment 4 Mihail Stanciu 2014-10-02 09:13:56 UTC
Problem still present in 1.7_rc3: abf9372358e5db70e7d707a5a732c4ec7d0f2efe
Comment 5 Richard Purdie 2014-10-03 06:48:21 UTC
abf9372358e5db70e7d707a5a732c4ec7d0f2efe is 1.7rc2 not rc3?
Comment 6 Richard Purdie 2014-10-03 08:29:26 UTC
Specifically, I downloaded wget http://autobuilder.yoctoproject.org/pub/releases/yocto-1.7.rc3/toolchain/x86_64/poky-glibc-x86_64-core-image-sato-armv5te-toolchain-1.7.sh and used it to compile a hello.c file without issue, including a stdio.h header.

So which toolchain is broken and what error is being seen please?
Comment 7 Richard Purdie 2014-10-03 08:30:05 UTC
We know there are pkgconfig issues in rc2 btw, that should be fixed in the rc3 build but is a different issue to this bug.
Comment 8 Richard Purdie 2014-10-03 08:59:39 UTC
Also confirmed that the arm toolchain can build sudoku so at least one of them works as far as I can tell.
Comment 10 Alexandru Georgescu 2014-10-03 11:30:56 UTC
I can confirm too, so closing the bug (though didn't test on every arch).
There is a new bug 6793 that may address the issues that Mihai encountered.
Comment 11 Ke Zou 2014-10-17 02:59:26 UTC
verified with build 1.7.rc4
http://autobuilder.yoctoproject.org/pub/releases/yocto-1.7.rc4/