Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
IBM Full-System CBE (Cell) Processor Simulator
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
bus.dch
n00b
n00b


Joined: 30 Nov 2005
Posts: 57

PostPosted: Mon Dec 26, 2005 3:08 pm    Post subject: Toolchain update in the works Reply with quote

Over at the IBM forum UlrichWeigand announced that they are working on updating the toolchain to gcc 4.0.2. If the simulator remains as it is, that will be very nice for one reason: right now, the toolchain is gcc 3.4.4, and the sim is gcc 4.0.2. Getting those to the same version will make installing the simulator on gentoo much easier. :-)
Back to top
View user's profile Send private message
bus.dch
n00b
n00b


Joined: 30 Nov 2005
Posts: 57

PostPosted: Fri Dec 30, 2005 8:30 pm    Post subject: The Full Output Reply with quote

Oh yeah, here's the full output from running the entire build (if you go with option 1)
Code:
~/extra/cbe $ time ./gentoo-install.sh
Option 1:
A. Extract 12 files to ~/cbe [131M compr, abt 923M uncompressed]
B. Build 5 targets [cbe directory grows to about 4.6G]
   (Can take 3 hours on a single CPU, 1 hour on 2-4 CPUs)
C. Make a disk image for the simulator using ppc-fc4-rpms-1.0.0-1.i386.rpm
Warning: mounting loopback device may fail, as you are
         not root. If so, build will fail at this point.
         Use su to login as root, then re-run build to resume.

Option 2:
A. Extract 12 files to ~/cbe [120M compr]
B. Build compatibility libraries for systemsim
   (GLIBC 4.0.x not detected on your system.)
C. Bootstrap simulator and load disk image.
   (IBM SDK will not be fully compiled using this option.)

Choose 1 or 2: 1
  toolchain-build.tbz
  toolchain-2.3+-src.tar.bz2
  cell-linux-patches-1.0.tar.bz2
  libspe-1.0.tar.bz2
  cell-sdk-lib-samples-1.0.tar.bz2
  systemsim-cell-1.0-fc4-x86.tar.bz2
  linux-2.6.14.tar.bz2
  gcc-core-4.0.2.tar.bz2
  gcc-g++-4.0.2.tar.bz2
  xlc-cell-lib-1.0-1.i386.rpm
  xlc-cell-cmp-1.0-1.i386.rpm
  cell-spu-timing-1.0-1.i686.rpm
toolchain src:  ~/cbe/toolchain/tools/jsre/toolchain-2.3-src/toolchain
linux install:  ~/cbe
ll                              :  not selected
spu binutils configure          :  run  ... ok [       2s]
spu binutils make               :  run  ... ok [      51s]
spu binutils install            :  run  ... ok [       4s]
spu gcc_pass1 configure         :  run  ... ok [       2s]
spu gcc_pass1 make              :  run  ... ok [    1m19s]
spu gcc_pass1 install           :  run  ... ok [       2s]
spu newlib configure            :  run  ... ok [       1s]
spu newlib make                 :  run  ... ok [      29s]
spu newlib install              :  run  ... ok [       1s]
spu gcc configure               :  run  ... ok [       1s]
spu gcc make                    :  run  ... ok [    2m17s]
spu gcc install                 :  run  ... ok [       2s]
ppu                             :  not selected
[    5m12s]
toolchain src:  ~/cbe/toolchain/tools/jsre/toolchain-2.3-src/toolchain
linux install:  ~/cbe
ll                              :  not selected
spu                             :  not selected
ppu kernel_headers install      :  run  ... ok [       1s]
ppu binutils configure          :  run  ... ok [       3s]
ppu binutils make               :  run  ... ok [      54s]
ppu binutils install            :  run  ... ok [       5s]
ppu gcc_pass1 configure         :  run  ... ok [       2s]
ppu gcc_pass1 make              :  run  ... ok [    2m32s]
ppu gcc_pass1 install           :  run  ... ok [       2s]
ppu glibc_32_pass1 configure    :  run  ... ok [       5s]
ppu glibc_32_pass1 make         :  run  ... ok [    7m11s]
ppu glibc_32_pass1 install      :  run  ... ok [    2m26s]
ppu glibc_64_pass1 configure    :  run  ... ok [       4s]
ppu glibc_64_pass1 make         :  run  ... ok [    7m15s]
ppu glibc_64_pass1 install      :  run  ... ok [    2m22s]
ppu sysroot_pass1 install       :  run  ... ok [      13s]
ppu gcc configure               :  run  ... ok [       6s]
ppu gcc make                    :  run  ... ok [    8m18s]
ppu gcc install                 :  run  ... ok [      14s]
ppu glibc_32 configure          :  run  ... ok [       6s]
ppu glibc_32 make               :  run  ... ok [    8m21s]
ppu glibc_32 install            :  run  ... ok [    2m27s]
ppu glibc_64 configure          :  run  ... ok [       5s]
ppu glibc_64 make               :  run  ... ok [    8m42s]
ppu glibc_64 install            :  run  ... ok [    2m22s]
ppu sysroot install             :  run  ... ok [      10s]
ppu binutils_32 configure       :  run  ... ok [       4s]
ppu binutils_32 make            :  run  ... ok [    1m13s]
ppu binutils_32 install         :  run  ... ok [       5s]
ppu binutils_64 configure       :  run  ... ok [       2s]
ppu binutils_64 make            :  run  ... ok [    1m26s]
ppu binutils_64 install         :  run  ... ok [       4s]
[   57m00s]
make > ~/cbe/cbe_linux/src/libspe/build.log
make > ~/cbe/cbe_linux/src/kernel/build.log
make > ~/cbe/sdk/src/build.log
Building glibc (gcc 4.0.2)
creating cache ./config.cache
The following languages will be built: c,c++
updating cache ./config.cache
creating ./config.status
creating Makefile
make > ~/cbe/systemsim-cell-release/glibc/build.log
make install >> ~/cbe/systemsim-cell-release/glibc/build.log
Unpacking ppc-fc4-rpms-1.0.0-1.i386.rpm to ~/extra/cbe/diskimg
Warning: mounting loopback device may fail, as you are not root.
mount: only root can do that

real    79m43.288s
user    155m49.704s
sys     25m58.849s
~/extra/cbe $

The system is a dual-Xeon 3.2GHz, if you're looking at the 79 minutes. It can take up to 3 hours on a single-processor P4 running at 2GHz.
Back to top
View user's profile Send private message
bus.dch
n00b
n00b


Joined: 30 Nov 2005
Posts: 57

PostPosted: Wed Jan 04, 2006 1:08 am    Post subject: init Reply with quote

I'm trying to replace init to make a small bootstrap filesystem the simulator can use. I'm having some trouble just running a hello world compiled with ppu-gcc as a replacement init. I wonder if it's because the simulator doesn't fully support glibc?
Back to top
View user's profile Send private message
bus.dch
n00b
n00b


Joined: 30 Nov 2005
Posts: 57

PostPosted: Tue Jan 10, 2006 12:04 am    Post subject: Re: init Reply with quote

After reading a little of the init source code, it looks like I just need to include code to initialize the terminal before writing to it. init does some interesting things like close(0); close(1); close(2); ... anyway, it's not a lot of code to copy and paste.
Back to top
View user's profile Send private message
lu_zero
Developer
Developer


Joined: 05 Sep 2002
Posts: 49

PostPosted: Sat Jul 22, 2006 10:19 am    Post subject: Reply with quote

I completed the toolchain + simulator ebuilds

you may fetch them from http://overlays.gentoo.org/dev/lu_zero

please test them and report issues ^^;
Back to top
View user's profile Send private message
marschw
n00b
n00b


Joined: 04 Jun 2003
Posts: 51

PostPosted: Wed Aug 09, 2006 6:31 pm    Post subject: Reply with quote

Has anybody gotten this ebuild working on amd64 yet? I run into this trouble:
Code:
/opt/IBM/systemsim-cell/bin/../bin/systemsim-cell: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory

which I assume is because of the lack of 32-bit tcl libs. Does anybody know of an easy way to get them installed?

-=Marcus
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum