<?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>5761</bug_id>
          
          <creation_ts>2014-01-28 12:48:59 +0000</creation_ts>
          <short_desc>powerpc toolchain for p2020rdb fails with &quot;error: not configured for SPE instruction set&quot;</short_desc>
          <delta_ts>2014-03-05 14:30:13 +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.5.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>ppc</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maxin B. John (inactive)">maxin.baby.john</reporter>
          <assigned_to name="Zhenhua Luo">zhenhua.luo</assigned_to>
          <cc>david.nystrom</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40060</commentid>
    <comment_count>0</comment_count>
    <who name="Maxin B. John (inactive)">maxin.baby.john</who>
    <bug_when>2014-01-28 12:48:59 +0000</bug_when>
    <thetext>powerpc-poky-linux-gnuspe-gcc fails to compile with &quot;error: not configured for SPE instruction set&quot;

How to reproduce the bug:

# git clone git://git.yoctoproject.org/poky
# cd poky
# git clone git://git.yoctoproject.org/meta-fsl-ppc

Configure for p2020rdb , build meta-toolchain and Install it

# bitbake meta-toolchain
# cd tmp/deploy/sdk/
# bash poky-eglibc-x86_64-meta-toolchain-ppce500v2-toolchain-1.5+snapshot.sh
# source /opt/poky/1.5+snapshot/environment-setup-ppce500v2-poky-linux-gnuspe

Compile a hello world application:

# cat test.c
#include &lt;stdio.h&gt;

int main()
{
    printf(&quot;Test \n&quot;);
    return 0;
}

# cat Makefile
all:
	$(CC) test.c -o test

# make
powerpc-poky-linux-gnuspe-gcc  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=/opt/poky/1.5+snapshot/sysroots/ppce500v2-poky-linux-gnuspe test.c -o test
test.c:1:0: error: not configured for SPE ABI
 #include &lt;stdio.h&gt;
 ^
test.c:1:0: error: not configured for SPE instruction set
make: *** [all] Error 1


# powerpc-poky-linux-gnuspe-gcc  -v
Using built-in specs.
COLLECT_GCC=powerpc-poky-linux-gnuspe-gcc
COLLECT_LTO_WRAPPER=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/powerpc-poky-linux/gcc/powerpc-poky-linux/4.8.2/lto-wrapper
Target: powerpc-poky-linux
Configured with: /media/sdc1/fb/majo/vfy/poky/build/tmp/work-shared/gcc-4.8.2-r0/gcc-4.8.2/configure --build=x86_64-linux --host=x86_64-pokysdk-linux --target=powerpc-poky-linux --prefix=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr --exec_prefix=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr --bindir=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/powerpc-poky-linux --sbindir=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/powerpc-poky-linux --libexecdir=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/powerpc-poky-linux --datadir=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/share --sysconfdir=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/etc --sharedstatedir=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/com --localstatedir=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/var --libdir=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/powerpc-poky-linux --includedir=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/include --oldincludedir=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/include --infodir=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/info --mandir=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/media/sdc1/fb/majo/vfy/poky/build/tmp/sysroots/x86_64-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 --enable-e500_double --with-gxx-include-dir=/opt/poky/1.5+snapshot/sysroots/ppce500v2-poky-linux/usr/include/c++ --with-build-time-tools=/media/sdc1/fb/majo/vfy/poky/build/tmp/sysroots/x86_64-linux/usr/powerpc-poky-linux/bin --with-sysroot=/opt/poky/1.5+snapshot/sysroots/ppce500v2-poky-linux --with-build-sysroot=/media/sdc1/fb/majo/vfy/poky/build/tmp/sysroots/p2020rdb --enable-targets=powerpc64 --disable-libunwind-exceptions --disable-libssp --disable-libgomp --disable-libmudflap --with-mpfr=/media/sdc1/fb/majo/vfy/poky/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-mpc=/media/sdc1/fb/majo/vfy/poky/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --enable-nls --with-long-double-128 --enable-__cxa_atexit
Thread model: posix
gcc version 4.8.2 (GCC)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40070</commentid>
    <comment_count>1</comment_count>
    <who name="Maxin B. John (inactive)">maxin.baby.john</who>
    <bug_when>2014-01-29 09:21:54 +0000</bug_when>
    <thetext>reverting commit 11d9127ac57514394f8297f9fdfc7b31e163fcb8  resolves this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40111</commentid>
    <comment_count>2</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2014-01-30 15:47:18 +0000</bug_when>
    <thetext>Hi Zhenhua,

Can you take a look since the issue is related to ppc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40719</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-02-26 22:12:13 +0000</bug_when>
    <thetext>*** Bug 5886 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40819</commentid>
    <comment_count>4</comment_count>
    <who name="Zhenhua Luo">zhenhua.luo</who>
    <bug_when>2014-03-03 08:22:08 +0000</bug_when>
    <thetext>The fix patch has been merged. 

http://cgit.openembedded.org/openembedded-core/commit/?id=97f2a81d6796ddaf7bbaab86c2ab9039673c732c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40886</commentid>
    <comment_count>5</comment_count>
    <who name="Maxin B. John (inactive)">maxin.baby.john</who>
    <bug_when>2014-03-05 14:30:13 +0000</bug_when>
    <thetext>Toolchain works now. Thank you very much!

make
powerpc-poky-linux-gnuspe-gcc  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=/opt/poky/1.5+snapshot/sysroots/ppce500v2-poky-linux-gnuspe test.c -o test
1|majo@sestofb10:~
&gt; file test
test: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, BuildID[sha1]=71da408c0111e9f86f3dbe97812287e7335556ed, not stripped</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>