Topic
  • 16 replies
  • Latest Post - ‏2009-02-11T15:23:15Z by SystemAdmin
SystemAdmin
SystemAdmin
10114 Posts

Pinned topic cellsdk 3.1: SPU assembler error -- "no such instruction"

‏2009-01-04T00:50:24Z |
I've justed installed cellsdk 3.1 on an amd x86_64 box, and I'm trying to compile a demo program. Here
is the output:


[root@zen matrix_mul]# make make[1]: Entering directory `/opt/cell/sdk/src/demos/matrix_mul/spu
' /usr/bin/ccache /opt/cell/toolchain/bin/spu-gcc        -W -Wall -Winline -Wno-main  -I. -I.. -I /opt/cell/sysroot/opt/cell/sdk/usr/spu/include  -O -c block.c /tmp/cc7q6lza.s: Assembler messages: /tmp/cc7q6lza.s:3: Error: alignment not a power of 2 /tmp/cc7q6lza.s:6: Error: no such instruction: `il $6,-864
' /tmp/cc7q6lza.s:7: Error: no such instruction: `stqd $122,-688($sp)
' /tmp/cc7q6lza.s:8: Error: no such instruction: `ilhu $122,1029
' /tmp/cc7q6lza.s:9: Error: no such instruction: `hbrp 
' <blah,blah,blah>


I used strace to figure out what was happening, and it looks like it is calling the wrong assembler:

[root@zen spu]# strace -f make ... [pid  8910] vfork(Process 8912 attached (waiting 

for parent) Process 8912 resumed (parent 8910 ready) ) = 8912 [pid  8912] execve(
"./as", [
"as", 
"-o", 
"/var/cache/ccache/tmp.hash.zen.a"..., 
"/tmp/cctFlPgu.s"], [
/* 35 vars */]) = -1 ENOENT (No such file or directory) [pid  8912] execve(
"as", [
"as", 
"-o", 
"/var/cache/ccache/tmp.hash.zen.a"..., 
"/tmp/cctFlPgu.s"], [
/* 35 vars */]) = -1 ENOENT (No such file or directory) [pid  8912] execve(
"/opt/cell/toolchain/bin/as", [
"as", 
"-o", 
"/var/cache/ccache/tmp.hash.zen.a"..., 
"/tmp/cctFlPgu.s"], [
/* 35 vars */]) = -1 ENOENT (No such file or directory) [pid  8912] execve(
"/usr/lib64/qt-3.3/bin/as", [
"as", 
"-o", 
"/var/cache/ccache/tmp.hash.zen.a"..., 
"/tmp/cctFlPgu.s"], [
/* 35 vars */]) = -1 ENOENT (No such file or directory) [pid  8912] execve(
"/usr/kerberos/sbin/as", [
"as", 
"-o", 
"/var/cache/ccache/tmp.hash.zen.a"..., 
"/tmp/cctFlPgu.s"], [
/* 35 vars */]) = -1 ENOENT (No such file or directory) [pid  8912] execve(
"/usr/kerberos/bin/as", [
"as", 
"-o", 
"/var/cache/ccache/tmp.hash.zen.a"..., 
"/tmp/cctFlPgu.s"], [
/* 35 vars */]) = -1 ENOENT (No such file or directory) [pid  8912] execve(
"/usr/lib64/ccache/as", [
"as", 
"-o", 
"/var/cache/ccache/tmp.hash.zen.a"..., 
"/tmp/cctFlPgu.s"], [
/* 35 vars */]) = -1 ENOENT (No such file or directory) [pid  8912] execve(
"/usr/local/sbin/as", [
"as", 
"-o", 
"/var/cache/ccache/tmp.hash.zen.a"..., 
"/tmp/cctFlPgu.s"], [
/* 35 vars */]) = -1 ENOENT (No such file or directory) [pid  8912] execve(
"/usr/local/bin/as", [
"as", 
"-o", 
"/var/cache/ccache/tmp.hash.zen.a"..., 
"/tmp/cctFlPgu.s"], [
/* 35 vars */]) = -1 ENOENT (No such file or directory) [pid  8912] execve(
"/sbin/as", [
"as", 
"-o", 
"/var/cache/ccache/tmp.hash.zen.a"..., 
"/tmp/cctFlPgu.s"], [
/* 35 vars */]) = -1 ENOENT (No such file or directory) [pid  8912] execve(
"/bin/as", [
"as", 
"-o", 
"/var/cache/ccache/tmp.hash.zen.a"..., 
"/tmp/cctFlPgu.s"], [
/* 35 vars */]) = -1 ENOENT (No such file or directory) [pid  8912] execve(
"/usr/sbin/as", [
"as", 
"-o", 
"/var/cache/ccache/tmp.hash.zen.a"..., 
"/tmp/cctFlPgu.s"], [
/* 35 vars */]) = -1 ENOENT (No such file or directory) [pid  8912] execve(
"/usr/bin/as", [
"as", 
"-o", 
"/var/cache/ccache/tmp.hash.zen.a"..., 
"/tmp/cctFlPgu.s"], [
/* 35 vars */] <unfinished ...> [pid  8910] waitpid(8912, Process 8910 suspended <unfinished ...> [pid  8912] <... execve resumed> )      = 0


has anybody seen this before or have a fix?

Thanks
Brett (aka bsquared, wingedlizard)
Updated on 2009-02-11T15:23:15Z at 2009-02-11T15:23:15Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-01-04T00:53:31Z  
    btw, I am using fedora 10:

    
    [root@zen spu]# *uname -a* Linux zen.artic 2.6.27.9-159.fc10.x86_64 #1 SMP Tue Dec 16 14:47:52 EST 2008 x86_64 x86_64 x86_64 GNU/Linux [root@zen spu]#
    
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-01-05T18:18:36Z  
    btw, I am using fedora 10:

    <pre class="jive-pre"> [root@zen spu]# *uname -a* Linux zen.artic 2.6.27.9-159.fc10.x86_64 #1 SMP Tue Dec 16 14:47:52 EST 2008 x86_64 x86_64 x86_64 GNU/Linux [root@zen spu]# </pre>
    do you have spu-binutils installed? it should have spu-as which is what should get called. not sure why it didn't show up in the strace, but that's my first guess..

    .bri.
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-01-05T20:37:38Z  
    do you have spu-binutils installed? it should have spu-as which is what should get called. not sure why it didn't show up in the strace, but that's my first guess..

    .bri.
    Yes, I have spu-binutils loaded. I've thought about adding a symlink to as, because of
    the following line:

    
    [pid  8912] execve(
    "/opt/cell/toolchain/bin/as", [
    "as", 
    "-o", 
    "/var/cache/ccache/tmp.hash.zen.a"..., 
    "/tmp/cctFlPgu.s"], [
    /* 35 vars */]) = -1 ENOENT (No such file or directory)
    


    but I don't know if this would break ppu-as.

    I would expect that there would be a execve call to run spu-as, but it doesn't try. I wonder if
    there is a way to specify an assembler to use when calling spu-gcc, but I don't see an option for
    this on the man page.

    b\375
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-01-05T20:57:38Z  
    Yes, I have spu-binutils loaded. I've thought about adding a symlink to as, because of
    the following line:

    <pre class="jive-pre"> [pid 8912] execve( "/opt/cell/toolchain/bin/as", [ "as", "-o", "/var/cache/ccache/tmp.hash.zen.a"..., "/tmp/cctFlPgu.s"], [ /* 35 vars */]) = -1 ENOENT (No such file or directory) </pre>

    but I don't know if this would break ppu-as.

    I would expect that there would be a execve call to run spu-as, but it doesn't try. I wonder if
    there is a way to specify an assembler to use when calling spu-gcc, but I don't see an option for
    this on the man page.

    b\375
    what version of spu-gcc and spu-binutils do you have installed?

    .bri.
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-01-05T21:05:21Z  
    Yes, I have spu-binutils loaded. I've thought about adding a symlink to as, because of
    the following line:

    <pre class="jive-pre"> [pid 8912] execve( "/opt/cell/toolchain/bin/as", [ "as", "-o", "/var/cache/ccache/tmp.hash.zen.a"..., "/tmp/cctFlPgu.s"], [ /* 35 vars */]) = -1 ENOENT (No such file or directory) </pre>

    but I don't know if this would break ppu-as.

    I would expect that there would be a execve call to run spu-as, but it doesn't try. I wonder if
    there is a way to specify an assembler to use when calling spu-gcc, but I don't see an option for
    this on the man page.

    b\375
    i wonder if ccache is causing the problem. try w/out it.

    export CCACHE=""

    i think that'll override it's use in make.footer..

    .bri.
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-01-05T21:08:21Z  
    i wonder if ccache is causing the problem. try w/out it.

    export CCACHE=""

    i think that'll override it's use in make.footer..

    .bri.
    sorry, include a space there

    export CCACHE=" "

    .bri.
  • CellServ
    CellServ
    1346 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-01-05T21:12:00Z  
    Yes, I have spu-binutils loaded. I've thought about adding a symlink to as, because of
    the following line:

    <pre class="jive-pre"> [pid 8912] execve( "/opt/cell/toolchain/bin/as", [ "as", "-o", "/var/cache/ccache/tmp.hash.zen.a"..., "/tmp/cctFlPgu.s"], [ /* 35 vars */]) = -1 ENOENT (No such file or directory) </pre>

    but I don't know if this would break ppu-as.

    I would expect that there would be a execve call to run spu-as, but it doesn't try. I wonder if
    there is a way to specify an assembler to use when calling spu-gcc, but I don't see an option for
    this on the man page.

    b\375
    What about ppu-binutils? It provides /opt/cell/toolchain/bin/ppu-as and I found that by removing ppu-as I can get a similar error.

    In my strace, before the vfork(Process 27634 attached message that starts your trace I see it try to execute ppu-as.

    Also, you mention SDK 3.1 but I think block.c from matrix_mul exists in SDK 3.0 but not SDK 3.1.
    --
    IBM SDK Service Administrator
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-01-06T00:27:21Z  
    what version of spu-gcc and spu-binutils do you have installed?

    .bri.
    The rpms I have installed are:

    
    [brettb@zen matrix_mul]$ rpm -qa | grep binutils spu-binutils-2.18.50.0.9-10.fc10.x86_64 binutils-devel-2.18.50.0.9-7.fc10.x86_64 binutils-2.18.50.0.9-7.fc10.x86_64 ppu-binutils-2.18.50-8.i686 [brettb@zen matrix_mul]$
    


    I have all of the assemblers installed as well.

    
    [brettb@zen matrix_mul]$ which as /usr/bin/as [brettb@zen matrix_mul]$ which spu-as /usr/bin/spu-as [brettb@zen matrix_mul]$ which ppu-as /usr/bin/which: no ppu-as in (/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/brettb/bin) [brettb@zen matrix_mul]$ find /opt -name 
    "ppu-as" /opt/cell/toolchain/bin/ppu-as [brettb@zen matrix_mul]$
    

    one thing I did notice is that when I did the gui install, f10 doesn't have purit or pup, so I used yumex.
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-01-06T00:31:58Z  
    when I run cellsdk verify, i get the following:

    
    [brettb@zen cell]$ ./cellsdk verify   repository=CellSDK-Devel-Fedora-x86_64 
    
    default   CellDevelopmentLibraries  alf-cross-devel-4.0.0-20080520.noarch 
    
    default   CellDevelopmentLibraries  alfman-3.0-10.noarch   ....   cellsdk INFO-2020: There are 5 
    
    default or mandatory rpms that are not installed numactl-devel-0.9.10-1.i686 numactl-devel-0.9.10-1.x86_64 (installed = numactl-devel-2.0.2-2.fc10.x86_64) spu-binutils-2.18.50-8.i686 numactl-0.9.10-1.i686 numactl-0.9.10-1.x86_64 (installed = numactl-2.0.2-2.fc10.x86_64) cellsdk INFO-2021: If you wish to install the missing rpms, please rerun cellsdk install again [brettb@zen cell]$
    


    But the packages are installed.
    
    l [brettb@zen cell]$ rpm -qa | grep spu spu-binutils-2.18.50.0.9-10.fc10.x86_64 spu-newlib-1.16.0-1.i686 spu-gcc-c++-4.1.1-145.i686 cell-spu-timing-3.1-1.i686 spu-timer-cross-devel-3.0.0-3.noarch spu-gdb-6.8.50-9.i686 spu-gcc-4.1.1-145.i686 spu-gcc-fortran-4.1.1-145.i686 [brettb@zen cell]$ [brettb@zen cell]$ [brettb@zen cell]$ rpm -qa | grep numactl numactl-devel-2.0.2-2.fc10.i386 numactl-devel-2.0.2-2.fc10.x86_64 numactl-2.0.2-2.fc10.x86_64 numactl-cross-devel-0.9.10-1.noarch numactl-2.0.2-2.fc10.i386 [brettb@zen cell]$
    


    so it looks like I need to uninstall the f10 versions and installed the older
    cellsdk3.1 versions. I'll give this a try tonight.

    Brett
  • CellServ
    CellServ
    1346 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-01-06T16:10:53Z  
    when I run cellsdk verify, i get the following:

    <pre class="jive-pre"> [brettb@zen cell]$ ./cellsdk verify repository=CellSDK-Devel-Fedora-x86_64 default CellDevelopmentLibraries alf-cross-devel-4.0.0-20080520.noarch default CellDevelopmentLibraries alfman-3.0-10.noarch .... cellsdk INFO-2020: There are 5 default or mandatory rpms that are not installed numactl-devel-0.9.10-1.i686 numactl-devel-0.9.10-1.x86_64 (installed = numactl-devel-2.0.2-2.fc10.x86_64) spu-binutils-2.18.50-8.i686 numactl-0.9.10-1.i686 numactl-0.9.10-1.x86_64 (installed = numactl-2.0.2-2.fc10.x86_64) cellsdk INFO-2021: If you wish to install the missing rpms, please rerun cellsdk install again [brettb@zen cell]$ </pre>

    But the packages are installed.
    <pre class="jive-pre"> l [brettb@zen cell]$ rpm -qa | grep spu spu-binutils-2.18.50.0.9-10.fc10.x86_64 spu-newlib-1.16.0-1.i686 spu-gcc-c++-4.1.1-145.i686 cell-spu-timing-3.1-1.i686 spu-timer-cross-devel-3.0.0-3.noarch spu-gdb-6.8.50-9.i686 spu-gcc-4.1.1-145.i686 spu-gcc-fortran-4.1.1-145.i686 [brettb@zen cell]$ [brettb@zen cell]$ [brettb@zen cell]$ rpm -qa | grep numactl numactl-devel-2.0.2-2.fc10.i386 numactl-devel-2.0.2-2.fc10.x86_64 numactl-2.0.2-2.fc10.x86_64 numactl-cross-devel-0.9.10-1.noarch numactl-2.0.2-2.fc10.i386 [brettb@zen cell]$ </pre>

    so it looks like I need to uninstall the f10 versions and installed the older
    cellsdk3.1 versions. I'll give this a try tonight.

    Brett
    That might be needed, I don't think we've tested on F10, so I'm not sure what's going to be required.

    Where did /usr/bin/spu-as come from? I wouldn't expect that on an x86_64 machine.

    --
    IBM SDK Service Administrator
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-01-06T19:06:01Z  
    • CellServ
    • ‏2009-01-06T16:10:53Z
    That might be needed, I don't think we've tested on F10, so I'm not sure what's going to be required.

    Where did /usr/bin/spu-as come from? I wouldn't expect that on an x86_64 machine.

    --
    IBM SDK Service Administrator
    
    [brettb@zen ~]$ rpm -qf  /usr/bin/spu-as spu-binutils-2.18.50.0.9-10.fc10.x86_64 [brettb@zen ~]$ rpm -qi spu-binutils-2.18.50.0.9-10.fc10.x86_64 Name        : spu-binutils                 Relocations: (not relocatable) Version     : 2.18.50.0.9                       Vendor: Fedora Project Release : 10.fc10                       Build Date: Mon 01 Dec 2008 11:43:50 AM EST Install Date: Sat 03 Jan 2009 03:58:41 PM EST      Build Host: x86-2.fedora.phx.redhat.com Group       : Development/Tools             Source RPM: spu-binutils-2.18.50.0.9-10.fc10.src.rpm Size        : 17906974                         License: GPLv3+ Signature   : DSA/SHA1, Mon 01 Dec 2008 07:28:35 PM EST, Key ID bf226fcc4ebfc273 Packager    : Fedora Project URL         : http:
    //sources.redhat.com/binutils Summary     : A GNU collection of binary utilities Description : Binutils is a collection of binary utilities, including ar (
    
    for creating, modifying and extracting from archives), as (a family of GNU assemblers), gprof (
    
    for displaying call graph profile data), ld (the GNU linker), nm (
    
    for listing symbols from object files), objcopy (
    
    for copying and translating object files), objdump (
    
    for displaying information from object files), ranlib (
    
    for generating an index 
    
    for the contents of an archive), size (
    
    for listing the section sizes of an object or archive file), strings (
    
    for listing printable strings from files), strip (
    
    for discarding symbols), and addr2line (
    
    for converting addresses to file and line). [brettb@zen ~]$   [brettb@zen ~]$ rpm -q --changelog spu-binutils-2.18.50.0.9-10.fc10.x86_64 | wc -l 1094 [brettb@zen ~]$     [brettb@zen ~]$ rpm -q --changelog spu-binutils-2.18.50.0.9-10.fc10.x86_64 | head -100 * Mon Dec 01 2008 Jochen Roth <jroth@linux.vnet.ibm.com> 2.18.50.0.9-10 - spu-binutils now owns /usr/spu (BZ 473666)   * Tue Nov 04 2008 Jochen Roth <jroth@linux.vnet.ibm.com> 2.18.50.0.9-9 - adopted to changes in binutils spec file: - binutils-devel now requires zlib-devel (BZ 463101 comment 5). - Fix complains on .gnu.linkonce.r relocations to their discarded .gnu.linkonce.t counterparts - Fix %
    {_prefix
    }/include/bfd.h on 32-bit hosts due to the 64-bit BFD target support from 2.18.50.0.8-2 (BZ 468495)   * Tue Oct 28 2008 Jochen Roth <jroth@linux.vnet.ibm.com> 2.18.50.0.9-8 - ppc64 and ppc version of spu-binutils caused a file conflict (BZ 468996) - fixed some rpmlint complaints   * Thu Oct 16 2008 Jochen Roth <jroth@linux.vnet.ibm.com> 2.18.50.0.9-7 - Install binutils in /usr/spu/bin/ needed by spu-gcc (BZ 467056)   * Tue Sep 30 2008 Aidan Delaney <a.j.delaney@brighton.ac.uk> 2.18.50.0.9-6 - Used parameterised binutils.spec as base 
    
    for spu-binutils (BZ 452211)   * Mon Sep 22 2008 Jan Kratochvil <jan.kratochvil@redhat.com> 2.18.50.0.9-5 - Remove %makeinstall to comply with the spu-binutils review (BZ 452211).   * Mon Sep 22 2008 Jan Kratochvil <jan.kratochvil@redhat.com> 2.18.50.0.9-4 - Fix *.so scripts 
    
    for multilib linking (BZ 463101, suggested by Jakub Jelinek).   * Sun Sep 21 2008 Jan Kratochvil <jan.kratochvil@redhat.com> 2.18.50.0.9-3 - Provide libbfd.so and libopcodes.so 
    
    for automatic dependencies (BZ 463101). - Fix .eh_frame_hdr build on C++ files with discarded common groups (BZ 458950). - Provide --build and --host to fix `rpmbuild --target
    ' biarch builds.           - Include %
    {binutils_target
    }- filename prefix 
    
    for binaries 
    
    for cross builds. - Fix multilib conflict on %
    {_prefix
    }/include/bfd.h
    's BFD_HOST_64BIT_LONG_LONG.    * Mon Sep 15 2008 Jan Kratochvil <jan.kratochvil@redhat.com> 2.18.50.0.9-2 - Package review, analysed by Jon Ciesla and Patrice Dumas (BZ 225615). - build back in the sourcedir without problems as gasp is no longer included. - Fix the install-info requirement. - Drop the needless gzipping of the info files. - Provide Obsoletes versions. - Use the %configure macro.   * Sat Aug 30 2008 Jan Kratochvil <jan.kratochvil@redhat.com> 2.18.50.0.9-1 - Update to 2.18.50.0.9. - Drop the ppc-only spu target pre-build stage (BZ 455242). - Drop parsing elf64-i386 files 
    
    for kdump PAE vmcore dumps (BZ 457189). - New .spec BuildRequires zlib-devel (/-
    
    static) 
    
    for compressed sections. - Update .spec Buildroot to be more unique.   * Fri Aug 01 2008 Jan Kratochvil <jan.kratochvil@redhat.com> 2.18.50.0.8-2 - Fix parsing elf64-i386 files 
    
    for kdump PAE vmcore dumps (BZ 457189). - Turn on 64-bit BFD support 
    
    for i386, globally enable AC_SYS_LARGEFILE. - `--with debug
    ' builds now with --disable-shared.                         - Removed a forgotten unused ld/eelf32_spu.c workaround from 2.18.50.0.8-1.   * Thu Jul 31 2008 Jan Kratochvil <jan.kratochvil@redhat.com> 2.18.50.0.8-1 - Update to 2.18.50.0.8. - Drop the .clmul -> .pclmul renaming backport. - Add %
    {binutils_target
    } macro to support building cross-binutils. (David Woodhouse) - Support `--without testsuite
    ' to suppress the testsuite run.             - Support `--with debug
    ' to build without optimizations.                   - Refresh the patchset with fuzz 0 (
    
    for 
    
    new rpmbuild). - Enable the spu target on ppc/ppc64 (BZ 455242).   * Wed Jul 16 2008 Jan Kratochvil <jan.kratochvil@redhat.com> 2.18.50.0.6-4 - include the `dist
    ' tag in the Release number - libbfd.a symbols visibility is now hidden (
    
    for #447426, suggested by Jakub)   * Wed Jul 16 2008 Jan Kratochvil <jan.kratochvil@redhat.com> 2.18.50.0.6-3 - rebuild libbfd.a with -fPIC 
    
    for inclusion into shared libraries (#447426)   * Tue Apr 08 2008 Jakub Jelinek <jakub@redhat.com> 2.18.50.0.6-2 - backport .clmul -> .pclmul renaming   * Fri Apr 04 2008 Jakub Jelinek <jakub@redhat.com> 2.18.50.0.6-1 - update to 2.18.50.0.6 - Intel AES, CLMUL, AVX/FMA support   * Mon Mar 03 2008 Jakub Jelinek <jakub@redhat.com> 2.18.50.0.4-2 - revert aranges optimization (Alan Modra, BZ#5303, BZ#5755) - fix ld-shared testcase 
    
    for GCC 4.3 (H.J. Lu)   * Fri Feb 29 2008 Jakub Jelinek <jakub@redhat.com> 2.18.50.0.4-1 - update to 2.18.50.0.4   * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> 2.18.50.0.3-2 - Autorebuild 
    
    for GCC 4.3   * Wed Dec 12 2007 Jakub Jelinek <jakub@redhat.com> 2.18.50.0.3-1 - update to 2.18.50.0.3 - fix build with recent makeinfo (#415271)   * Thu Aug 16 2007 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.18-1 - update to 2.17.50.0.18 - GPLv3+ - preserve .note.gnu.build-id in objcopy --only-keep-debug (#251935) - fix sparc64/alpha broken by --build-id patch (#252936) - update License tag - fix ld crash with --build-id and non-ELF output format (Alan Modra, BZ#4923) [brettb@zen ~]$
    
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-01-06T23:07:32Z  
    • CellServ
    • ‏2009-01-06T16:10:53Z
    That might be needed, I don't think we've tested on F10, so I'm not sure what's going to be required.

    Where did /usr/bin/spu-as come from? I wouldn't expect that on an x86_64 machine.

    --
    IBM SDK Service Administrator
    I was able to run /opt/cell/cellsdk verify and remove the errant packages, then reinstall the correct ones. 'cellsdk verify' says everything is installed correctly and it looks like it works. I believe I was using some beta 3.1 sdk isos ( 20080513, 20080520 ). anyway once I cleared everything out and reinstalled, then verify/remove/add a few times it seems like it is happy. I am able to compile fft16m and matrix_mul, and bring up the simulator.

    I did have a problem with a dependancy on gmp ( x86_64 was installed, but it wanted the i386 version).

    anyway, cellsdk 3.1 is running on amd 64-bit version of fedora 10 now.

    Thanks all,
    Brett
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-02-03T20:15:37Z  
    I was able to run /opt/cell/cellsdk verify and remove the errant packages, then reinstall the correct ones. 'cellsdk verify' says everything is installed correctly and it looks like it works. I believe I was using some beta 3.1 sdk isos ( 20080513, 20080520 ). anyway once I cleared everything out and reinstalled, then verify/remove/add a few times it seems like it is happy. I am able to compile fft16m and matrix_mul, and bring up the simulator.

    I did have a problem with a dependancy on gmp ( x86_64 was installed, but it wanted the i386 version).

    anyway, cellsdk 3.1 is running on amd 64-bit version of fedora 10 now.

    Thanks all,
    Brett
    I've run into this problem with SDK 3.1 on Fedora 10 as well. It seems Fedora 10 has a newer spu-binutils package, which doesn't seem to work (i.e. missing spu-as and who knows what else). I've had to re-install everything like you did, and then I added spu-binutils to the exclude line in /etc/yum.conf, so that Fedora's auto-updater won't try to update the spu-binutils package again.

    Diego
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-02-05T12:16:04Z  
    I've run into this problem with SDK 3.1 on Fedora 10 as well. It seems Fedora 10 has a newer spu-binutils package, which doesn't seem to work (i.e. missing spu-as and who knows what else). I've had to re-install everything like you did, and then I added spu-binutils to the exclude line in /etc/yum.conf, so that Fedora's auto-updater won't try to update the spu-binutils package again.

    Diego
    Yes, indeed this is a bug in spu-binutils for x86_64.
    Can you please try to install the i386 version instead?

    The x86_64 rpm package doesn't contain the assembler in the /usr/spu/bin directory where gcc expects him to be.
    I'll fix that for the
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-02-10T15:57:40Z  
    This bug is tracked in the following bugzilla at redhat.com:
    https://bugzilla.redhat.com/show_bug.cgi?id=484896

    A fix will be available soon.
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: cellsdk 3.1: SPU assembler error -- "no such instruction"

    ‏2009-02-11T15:23:15Z  
    This bug is tracked in the following bugzilla at redhat.com:
    https://bugzilla.redhat.com/show_bug.cgi?id=484896

    A fix will be available soon.
    A fix is in the latest rawhide version. The bugfix release for F-10 will be available within the next days.

    The latest development version can be found here:
    http://ftp-stud.fht-esslingen.de/pub/Mirrors/fedora.redhat.com/linux/development/x86_64/os/Packages/spu-binutils-2.19.50.0.1-2.fc11.x86_64.rpm