<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6766</bug_id>
          
          <creation_ts>2014-09-26 05:39:19 +0000</creation_ts>
          <short_desc>adt installed toolchain compilation error under ALL ARCHs with build yocto_1.7.rc1</short_desc>
          <delta_ts>2015-03-30 07:04:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>adt</component>
          <version>1.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.7 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ke Zou">ke.zou</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>stanciux.mihail</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhangle.yang</cc>
          
          <qa_contact name="Ke Zou">ke.zou</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>45881</commentid>
    <comment_count>0</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2014-09-26 05:39:19 +0000</bug_when>
    <thetext>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=&apos;--sysroot=/buildarea/sdk-automation-test/sdk/sysroots/powerpc-poky-linux&apos; &apos;-m32&apos; &apos;-mhard-float&apos; &apos;-mcpu=7400&apos; &apos;-v&apos; &apos;-o&apos; &apos;/buildarea/sdk-automation-test/test_files/ppc_C_test&apos;
 /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 &quot;/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&quot;
ignoring duplicate directory &quot;/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&quot;
ignoring nonexistent directory &quot;/buildarea/sdk-automation-test/sdk/sysroots/powerpc-poky-linux/usr/local/include&quot;
ignoring duplicate directory &quot;/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&quot;
ignoring nonexistent directory &quot;/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&quot;
ignoring nonexistent directory &quot;/buildarea/sdk-automation-test/sdk/sysroots/powerpc-poky-linux/usr/include&quot;
#include &quot;...&quot; search starts here:
#include &lt;...&gt; 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 &lt;stdio.h&gt;
                   ^
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&apos;s a recent commit regarding to bug 6613
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6613

I&apos;ll do a regression test on my server to make sure if this is caused by this commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45916</commentid>
    <comment_count>1</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2014-09-28 08:02:24 +0000</bug_when>
    <thetext>build with git commit:
commit 6523bc171cdd06bed9c7a36aa2198b17b9c0a016
Author: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Date:   Fri Sep 19 18:08:40 2014 +0100

everything is fine

build with git commit:
commit 955bf632a72abc339102fd8b1e1ad27cd300ccd0
Author: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45935</commentid>
    <comment_count>2</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2014-09-29 13:03:52 +0000</bug_when>
    <thetext>*** Bug 6608 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45963</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-09-30 13:36:20 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=78b2f5a72e0f33e551307a1d4c1f99e81aea4cac</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46025</commentid>
    <comment_count>4</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2014-10-02 09:13:56 +0000</bug_when>
    <thetext>Problem still present in 1.7_rc3: abf9372358e5db70e7d707a5a732c4ec7d0f2efe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46075</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-10-03 06:48:21 +0000</bug_when>
    <thetext>abf9372358e5db70e7d707a5a732c4ec7d0f2efe is 1.7rc2 not rc3?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46076</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-10-03 08:29:26 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46077</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-10-03 08:30:05 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46078</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-10-03 08:59:39 +0000</bug_when>
    <thetext>Also confirmed that the arm toolchain can build sudoku so at least one of them works as far as I can tell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46080</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-10-03 10:09:17 +0000</bug_when>
    <thetext>Also confirmed http://autobuilder.yoctoproject.org/pub/releases/yocto-1.7.rc3/toolchain/x86_64/poky-glibc-x86_64-core-image-sato-mips32r2-toolchain-1.7.sh can build suduko</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46083</commentid>
    <comment_count>10</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-10-03 11:30:56 +0000</bug_when>
    <thetext>I can confirm too, so closing the bug (though didn&apos;t test on every arch).
There is a new bug 6793 that may address the issues that Mihai encountered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46397</commentid>
    <comment_count>11</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2014-10-17 02:59:26 +0000</bug_when>
    <thetext>verified with build 1.7.rc4
http://autobuilder.yoctoproject.org/pub/releases/yocto-1.7.rc4/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>