Skip to main content

developerWorks >  Power Architecture  >  Forums  >  Cell Broadband Engine Architecture forum  >  developerWorks

How to install simulator.sdk on ubuntu?    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 42 - Pages: 3 [ 1 2 3 | Next ] - Last Post: Apr 27, 2009 9:41 AM Last Post By: brianh Threads: [ Previous | Next ]
iamrohitbanga

Posts: 74
Registered: Dec 07, 2007 06:15:09 AM
How to install simulator.sdk on ubuntu?
Posted: Jun 01, 2008 01:43:39 PM
 
Click to report abuse...   Click to reply to this thread Reply
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.

Thank you
jgrossm1

Posts: 16
Registered: May 27, 2008 09:31:19 PM
Re: How to install simulator.sdk on ubuntu?
Posted: Jun 01, 2008 06:54:49 PM   in response to: iamrohitbanga in response to: iamrohitbanga's post
 
Click to report abuse...   Click to reply to this thread Reply
i dont know if you used a web site in order to install the sdk on ubuntu or what, but i used:

http://mikearthur.co.uk/2007/12/ibm-cell-sdksdk-for-multicore-acceleration-on-debianubuntu-howto/

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.
iamrohitbanga

Posts: 74
Registered: Dec 07, 2007 06:15:09 AM
Re: How to install simulator.sdk on ubuntu?
Posted: Jun 02, 2008 02:13:16 PM   in response to: jgrossm1 in response to: jgrossm1's post
 
Click to report abuse...   Click to reply to this thread Reply
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.
jgrossm1

Posts: 16
Registered: May 27, 2008 09:31:19 PM
Re: How to install simulator.sdk on ubuntu?
Posted: Jun 02, 2008 10:54:55 PM   in response to: iamrohitbanga in response to: iamrohitbanga's post
 
Click to report abuse...   Click to reply to this thread Reply
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
iamrohitbanga

Posts: 74
Registered: Dec 07, 2007 06:15:09 AM
Re: How to install simulator.sdk on ubuntu?
Posted: Jun 04, 2008 02:54:02 AM   in response to: jgrossm1 in response to: jgrossm1's post
 
Click to report abuse...   Click to reply to this thread Reply
Attachment log dpkg.txt (9.5 KB)
Here's exactly what i have done.
I extracted CellSDK3.0 image to a folder & created rpmtodeb.sh in that folder with the following contents.

for i in rpms/*.rpm; do alien --scripts $i; done

Now when i run this shell script i get lots of warnings, but ultimately in the cell folder i get many deb packages(not all were converted).

when i do dpkg -i *.deb i get some errors which i copied to a text file & have attached along with this post.

Now what should i do next?
iamrohitbanga

Posts: 74
Registered: Dec 07, 2007 06:15:09 AM
Re: How to install simulator.sdk on ubuntu?
Posted: Jun 04, 2008 12:05:08 PM   in response to: jgrossm1 in response to: jgrossm1's post
 
Click to report abuse...   Click to reply to this thread Reply
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

Any quick solutions?
mkistler

Posts: 537
Registered: Nov 04, 2005 02:29:23 PM
Re: How to install simulator.sdk on ubuntu?
Posted: Jun 04, 2008 03:49:31 PM   in response to: iamrohitbanga in response to: iamrohitbanga's post
 
Click to report abuse...   Click to reply to this thread Reply
You need to install Tcl 8.4 & Tk 8.4.

Mike Kistler
iamrohitbanga

Posts: 74
Registered: Dec 07, 2007 06:15:09 AM
Re: How to install simulator.sdk on ubuntu?
Posted: Jun 05, 2008 12:34:16 AM   in response to: mkistler in response to: mkistler's post
 
Click to report abuse...   Click to reply to this thread Reply
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

  1. This script can be called from anywhere, provided the user has
  2. systemsim in their PATH. If they do not, it should still run
  3. 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

Message was edited by: iamrohitbanga

mkistler

Posts: 537
Registered: Nov 04, 2005 02:29:23 PM
Re: How to install simulator.sdk on ubuntu?
Posted: Jun 05, 2008 07:35:48 AM   in response to: iamrohitbanga in response to: iamrohitbanga's post
 
Click to report abuse...   Click to reply to this thread Reply
In my experience, the message

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?

Mike Kistler
kauboyhere

Posts: 2
Registered: Sep 14, 2008 12:00:10 AM
Re: How to install simulator.sdk on ubuntu?
Posted: Sep 14, 2008 12:09:47 AM   in response to: mkistler in response to: mkistler's post
 
Click to report abuse...   Click to reply to this thread Reply
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.
choosyg

Posts: 5
Registered: Sep 25, 2008 11:59:25 AM
Re: How to install simulator.sdk on ubuntu?
Posted: Oct 23, 2008 04:35:49 AM   in response to: kauboyhere in response to: kauboyhere's post
 
Click to report abuse...   Click to reply to this thread Reply
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

Thx
M.K

Posts: 29
Registered: Apr 27, 2008 12:04:49 PM
Re: How to install simulator.sdk on ubuntu?
Posted: Nov 23, 2008 08:32:13 AM   in response to: choosyg in response to: choosyg's post
 
Click to report abuse...   Click to reply to this thread Reply
I also managed to get the simulator running on ubuntu (8.10), but ran into the same problem with spu-gcc. Has anyone found a solution?

Best regards,
M.K
M.K

Posts: 29
Registered: Apr 27, 2008 12:04:49 PM
Re: How to install simulator.sdk on ubuntu?
Posted: Nov 23, 2008 09:32:38 AM   in response to: iamrohitbanga in response to: iamrohitbanga's post
 
Click to report abuse...   Click to reply to this thread Reply
I had to do:

'apt-get -f install'

and then

'apt-get install tcl8.4-dev tk8.4-dev'

to make the simulator work with tcl/tk 8.4.

Hope it helps.

Best regards,
M.K
Diko

Posts: 18
Registered: Oct 30, 2008 07:28:52 PM
Re: How to install simulator.sdk on ubuntu?
Posted: Nov 23, 2008 05:37:16 PM   in response to: iamrohitbanga in response to: iamrohitbanga's post
 
Click to report abuse...   Click to reply to this thread Reply
Attachment dummy.tar (10.0 KB)
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).

2a. Install alien with:
sudo apt-get install alien

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

2d. Install all converted .deb packages with:
sudo dpkg -i <deb file>

3. Run
sudo /opt/cell/cellsdk_sync_simulator

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 hope i dont forgot anything.
M.K

Posts: 29
Registered: Apr 27, 2008 12:04:49 PM
Re: How to install simulator.sdk on ubuntu?
Posted: Nov 24, 2008 05:46:10 AM   in response to: choosyg in response to: choosyg's post
 
Click to report abuse...   Click to reply to this thread Reply
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

http://www.bsc.es/projects/deepcomputing/linuxoncell/cellsimulator/sdk3.1/CellSDK-Open-Fedora/x86/ppu-gcc-4.1.1-166.i686.rpm
http://www.bsc.es/projects/deepcomputing/linuxoncell/cellsimulator/sdk3.1/CellSDK-Open-Fedora/x86/spu-gcc-4.1.1-166.i686.rpm
http://www.bsc.es/projects/deepcomputing/linuxoncell/cellsimulator/sdk3.1/CellSDK-Open-Fedora/x86/ppu-gcc-c++-4.1.1-166.i686.rpm
http://www.bsc.es/projects/deepcomputing/linuxoncell/cellsimulator/sdk3.1/CellSDK-Open-Fedora/x86/spu-gcc-c++-4.1.1-166.i686.rpm

And as root:
%> for i in *.rpm; do alien --scripts $i; done
%> dpkg -i *.deb

Now it works like a charm.

Best regards,
M.K
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums