I am using ubuntu simply because it supoorts my hardware unlike other linux distributions.
But i am unable to find a debian package for CellSDK & simulator.
I have wasted a lot of time trying to convert rpm files to deb but failed all the time.
Now i am using VM player & its really annoying to keep switching.
Can anyone provide a definitive solution?
If possible convert rpm files to debian & provide a download link.
and it worked pretty well. I had some problems, but nothing that wasn't easily fixable once I figured out what was missing. You could try to follow the directions provided there and if you get any problems just post them here.
OK
I did apt-get spu-gcc spu-gdb ... cell-programming primer.
But that doesn't install the simulator.
The thing is i tried to convert the rpms to deb packages earlier but got some incomprehensible errors.
Now what else do i need to do.
well, i've never seen anywhere the .deb packages for the sdk listed, so i don't know if thats really an option, though you can certainly try looking for them. The best way might be just to try fixing the errors you received while trying to convert. Can you post them? and even if I don't know the answers someone else might or might be able to point you in the right direction
OK if the previous post seems too cryptic then here's some more info:
I end up getting folders by the names ibm, ibmcmp, cell in the /opt folder.
This is what happens on the terminal:
$ cd /opt/ibm/systemsim-cell/run/cell/linux/
$ ./../run_gui
[: 31: ==: unexpected operator
/opt/ibm/systemsim-cell/bin/systemsim-cell: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory
tcl8.4 & tk8.4 were already installed. i used auto-remove & then reinstalled the two packages.
Still getting the same error.
How do i ensure that cell-sdk & simulator are correctly installed. As it is the size of the folders is less than that in Fedora 7.
Could i just copy & paste the missing subfolders from Fedora. Would that complete the sdk.
This is the run_gui script. Does it need any modification for ubuntu.
#!/bin/sh
This script can be called from anywhere, provided the user has
systemsim in their PATH. If they do not, it should still run
the old way, but only from a subdirectory under 'run'.
TRYPATH=$(/usr/bin/which systemsim 2>/dev/null)
if ; then
TRYPATH=$(dirname $TRYPATH)/..
fi
SYSTEMSIM_TOP=
for TRYTOP in ../../.. $TRYPATH;
do
TRYTOP=$(cd $TRYTOP; pwd)
if -x $TRYTOP/bin/systemsim ; then
SYSTEMSIM_TOP=$TRYTOP
break
fi
done
if ; then
export SYSTEMSIM_TOP
if ; then
shift
MACHOPT=-cellsecure
else
MACHOPT=-cell
fi
exec $SYSTEMSIM_TOP/bin/systemsim $MACHOPT $* -g
fi
Message was edited by: iamrohitbanga
error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory
means that the loader could not find libtcl8.4.so when it is trying to load the shared libraries needed by the simulator executable. Is the directory containing libtcl8.4.so in your LD_LIBRARY_PATH?
I get the same error as mentioned by iamrohitbanga. I installed systemsim-cell 3.0 from its .rpm package using Alien, on Ubuntu 8.04; when I tried ../run_gui from systemsim-cell/run/cell/linux in the Terminal, I got the "/opt/ibm/systemsim-cell/bin/systemsim-cell: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory" error, as mentioned earlier. I was able to locate the libtcl8.4.so file in my /usr/lib directory. Any solution? tcl8.4 and tk8.4 are installed already.
I also had serious troubles converting the rpms to deb packages on Hardy, it seems to be a problem with alien/dpkg. Finaly i installed Gutsy and the very same script worked out well. Then i was able to install the simulator deb packages on Hardy and it works fine.
Now the simulatro works, but using spu-gcc failes with the following Message:
/opt/cell/toolchain/bin/spu-gcc -W -Wall -Winline -Wno-main -I. -I /opt/cell/sysroot/usr/spu/include -I /opt/cell/sysroot/opt/cell/sdk/usr/spu/include -O3 -c wavelet_spu.c
/tmp/ccxZAQnm.s: Assembler messages:
/tmp/ccxZAQnm.s:7: Error: alignment not a power of 2
/tmp/ccxZAQnm.s:11: Error: no such instruction: `hbrr .L8,printf'
/tmp/ccxZAQnm.s:12: Error: no such instruction: `stqd $80,-16($sp)'
/tmp/ccxZAQnm.s:13: Error: no such instruction: `il $80,0'
...
The same program/makefile workes fine on my Fedora 7 System with Simulator
Hello everyone,
i will try to explain in short how to install SDK 3.1 & simulator on Ubuntu (8.10, x86).
1a. Download the sdk from https://www.ibm.com/developerworks/power/cell/. You will need the cell-install-3.1.0-0.0.noarch.rpm package and CellSDK-Devel-Fedora_3.1.0.0.0.iso. You can download CellSDK-Extras-Fedora_3.1.0.0.0.iso too, but not needed.
1b. Download simulator from http://www.alphaworks.ibm.com/tech/cellsystemsim. You will need systemsim-cell-3.1-8.f9.i386.rpm package.
1c. Download open source packages from http://www.bsc.es/plantillaH.php?cat_id=577. You will need GNU toolchain (x86-cross-compiler version for ppu and spu), libSPE2 (libspe2-cross-devel-2.2.80-132.noarch.rpm) and simulator sysroot image (sysroot_image-3.1-1.noarch.rpm).
2b. Mount CellSDK-Devel-Fedora_3.1.0.0.0.iso, for example:
mkdir tmp
sudo mount -o loop CellSDK-Devel-Fedora_3.1.0.0.0.iso tmp
2c. Convert .rpm packages to .deb packages. You do this with:
sudo alien <rpm file>
Convert all rpm packages in x86 directory from CellSDK-Devel-Fedora_3.1.0.0.0.iso.
Convert the simulator package with --scripts option:
sudo alien --scripts systemsim-cell-3.1-8.f9.i386.rpm
4. (Optional) If you want to run a local simulator environment in Eclipse and use the ALF templates, install the dummy packages (attached to this post) i created. You will need rpm for this, should be installed with alien.
Initialise the rpm database:
sudo rpm --initdb
Install dummy packages:
sudo rpm -i <rpm dummy package>
I now managed to get spu-gcc working on ubuntu (got rid of the "no such instruction"-error). First I uninstalled spu-gcc, spu-g++, ppu-gcc and ppu-g++ with the package manager (synaptic). Then I downloaded