Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc-4.3.0_alpha20070629 emake fails with boot-strap lean
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
piratetitan
n00b
n00b


Joined: 12 May 2007
Posts: 7

PostPosted: Mon Jul 16, 2007 10:17 pm    Post subject: gcc-4.3.0_alpha20070629 emake fails with boot-strap lean Reply with quote

I'm trying to emerge the gcc for the PS3, but it keeps on failing with this error:

Code:

make[3]: *** [cse.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/build'
make: *** [bootstrap-lean] Error 2
 *
 * ERROR: sys-devel/gcc-4.3.0_alpha20070629 failed.
 * Call stack:
 *   ebuild.sh, line 1647:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ebuild.sh, line 1327:   Called toolchain_src_compile
 *   toolchain.eclass, line 26:   Called gcc_src_compile
 *   toolchain.eclass, line 1541:   Called gcc_do_make
 *   toolchain.eclass, line 1415:   Called die
 *
 * emake failed with bootstrap-lean
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/temp/build.log'.


I had to reformat my harddrive, before I had a working alpha version of gcc, but now it keeps on failing with that error.

Help please? Am I missing libraries or something?
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Tue Jul 17, 2007 12:51 am    Post subject: Reply with quote

Yeah, but it was probably a slightly different alpha. I'm not up on PS3 linux, but do you need to have the alpha compiler?
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Tue Jul 17, 2007 5:43 am    Post subject: Reply with quote

try using sys-devel/gcc-4.3.0_alpha20070707 with these use flags:


sys-devel/gcc-4.3.0_alpha20070707::toolchain {:4.3} [R] -altivec -bootstrap -build -doc -fortran gcj -gtk (-hardened) -ip28 -ip32r10k mudflap (-multilib) -multislot (-n32) (-n64) nls -nocxx objc objc++ objc-gc openmp -test -vanilla


this works for me on a power5 system. You might want to USE="-objc -objc++ -objc-gc" to save some compile time. Note that's important to USE="-fortran" as this does not compile here.

If that does also fail, then please post a larger error output. the lines *before* "Error 1" are important!

-corsair
Back to top
View user's profile Send private message
piratetitan
n00b
n00b


Joined: 12 May 2007
Posts: 7

PostPosted: Wed Jul 18, 2007 5:22 pm    Post subject: Reply with quote

It still failed, I took the liberty of changing sys-devel/gcc-4.3.0_alpha20070707 to sys-devel/gcc-4.3.0_alpha20070629 since thats the latest one I could find in the toolchain, and like I said it still failed. I'm going to try some of the earlier 4.3.0 alphas to see if they work. Here's the larger error log:

Code:

/bin/sh /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/../move-if-change tmp-gcov-iov.h gcov-iov.h
echo timestamp > s-iov
powerpc-unknown-linux-gnu-gcc -c   -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -fno-common   -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/../libdecnumber/dpd -I../libdecnumber    /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/coverage.c -o coverage.o
powerpc-unknown-linux-gnu-gcc -c   -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -fno-common   -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/../libdecnumber/dpd -I../libdecnumber    /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/cse.c -o cse.o
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/gcc-4.3-20070629/gcc/cse.c:7015: error: 'TODO_verify_rtl_sharing' undeclared here (not in a function)
make[3]: *** [cse.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070629/work/build'
make: *** [bootstrap-lean] Error 2
 *
 * ERROR: sys-devel/gcc-4.3.0_alpha20070629 failed.
 * Call stack:
 *   ebuild.sh, line 1647:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ebuild.sh, line 1327:   Called toolchain_src_compile
 *   toolchain.eclass, line 26:   Called gcc_src_compile
 *   toolchain.eclass, line 1541:   Called gcc_do_make
 *   toolchain.eclass, line 1415:   Called die
 *
 * emake failed with bootstrap-lean
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.3.0


didymos: I'm trying to set it up so I can compile code for the CELL and SPUs.
Back to top
View user's profile Send private message
djprotoss
n00b
n00b


Joined: 14 Nov 2002
Posts: 37

PostPosted: Wed Aug 01, 2007 7:52 am    Post subject: Reply with quote

The 29 build was broken - someone checked his development code in (hence the TODO). Use the 22 build instead.
Back to top
View user's profile Send private message
triod
n00b
n00b


Joined: 24 Jan 2005
Posts: 14

PostPosted: Mon Aug 06, 2007 3:49 pm    Post subject: Reply with quote

Same errorr.
Now I trying some modify layman profile *toolchain*.

1. determine latest gcc sources as see url ftp://sources.redhat.com/pub/gcc/snapshots/
2. Copy gcc-4.3.0_alpha20070629.ebuild to gcc-4.3.0_alpha20070803.ebuild (latest now)
3. digest this ebuild (automaticaly download source)
4. WARNING !!!! verify md5 hashes (downloaded *.tar.bz2 and ftp://sources.redhat.com/pub/gcc/snapshots/4.3-20070803/md5.sum).

emerge -Duvp gcc
emerge -Du gcc

Result reports few hours later.....

P.S.
md5sum: 81e762604064428ba3f01afbfbba630c gcc-4.3-20070803.tar.bz2
Back to top
View user's profile Send private message
triod
n00b
n00b


Joined: 24 Jan 2005
Posts: 14

PostPosted: Tue Aug 07, 2007 10:13 am    Post subject: Reply with quote

Sorry for delay....
package gcc-4.3.0_alpha20070803.ebuild compiled without problem. Compiler seems to be working.
I can't test _all_ features, but testing it now. Via this compiler I make and install libspe2.
Back to top
View user's profile Send private message
liberance
n00b
n00b


Joined: 06 Apr 2007
Posts: 3

PostPosted: Tue Aug 07, 2007 10:35 am    Post subject: Reply with quote

I have the same problem but by merging kde
Back to top
View user's profile Send private message
ludistatio
n00b
n00b


Joined: 08 Aug 2007
Posts: 1
Location: Munich

PostPosted: Sat Aug 11, 2007 5:59 pm    Post subject: Reply with quote

Hi,

I would like to start programming the cell processor, but it doesn't seem to be an easy thing (I mean set up the environment, not programming it :wink: ).

I followed instructions at http://www.daniel.jp/joomla/info/ps3/creating-ps3-toolchains-on-gentoo.html, and I have installed the toolchain overlay, assuming that lu_zero overlay is not necessary anymore (I can't get it via svn anyway).

I understood I need gcc 4.3.0 to start with, so I tried to follow triod's instructions and emerge gcc-4.3.0_alpha20070803, but I got this compilation error:

Code:

...
libtool: compile:  /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/src/.libs -B/usr/powerpc-unknown-linux-gnu/bin/ -B/usr/powerpc-unknown-linux-gnu/lib/ -isystem /usr/powerpc-unknown-linux-gnu/include -isystem /usr/powerpc-unknown-linux-gnu/sys-include -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/include/powerpc-unknown-linux-gnu -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/include -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/gcc-4.3-20070803/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -O2 -pipe -mcpu=970 -mtune=970 -D_GNU_SOURCE -c /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/gcc-4.3-20070803/libstdc++-v3/src/codecvt.cc  -fPIC -DPIC -o .libs/codecvt.o
In file included from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/include/bits/char_traits.h:48,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/include/string:47,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/include/bits/locale_classes.h:47,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/include/locale:46,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/gcc-4.3-20070803/libstdc++-v3/src/codecvt.cc:30:
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/include/cstdio:101: error: '::fpos_t' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/include/cstdio:103: error: '::clearerr' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/include/cstdio:104: error: '::fclose' has not been declared

...

/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/include/bits/char_traits.h: In static member function 'static typename __gnu_cxx::_Char_types<_CharT>::int_type __gnu_cxx::char_traits<_CharT>::eof()':
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/include/bits/char_traits.h:141: error: 'EOF' was not declared in this scope
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/include/bits/char_traits.h: In static member function 'static int std::char_traits<char>::eof()':
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/include/bits/char_traits.h:293: error: 'EOF' was not declared in this scope
make[4]: *** [codecvt.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build/powerpc-unknown-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/work/build'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-4.3.0_alpha20070803 failed.
Call stack:
  ebuild.sh, line 1632:   Called dyn_compile
  ebuild.sh, line 983:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  ebuild.sh, line 1322:   Called toolchain_src_compile
  toolchain.eclass, line 26:   Called gcc_src_compile
  toolchain.eclass, line 1546:   Called gcc_do_make
  toolchain.eclass, line 1420:   Called die

!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070803/temp/build.log'.

!!! This ebuild is from an overlay: '/usr/portage/local/layman/toolchain'


is my environment somehow wrong? (I used a 32 bit stage 4 install).
Back to top
View user's profile Send private message
triod
n00b
n00b


Joined: 24 Jan 2005
Posts: 14

PostPosted: Mon Aug 13, 2007 11:17 pm    Post subject: Reply with quote

Hi ludistatio :)

I explain some details about how I make install gentoo on PS3. It may, or not help :)
I carefully read documentations on this forum & other places. It help me personally :)

1. Select proper stage / arch from many possible variants, how we are can install linux.
For first time I easy install YDL from terrasoft. Its my first try on PS3. But...... YDL (respect to terrasoft) like micro$oft. I mean, of corse, software *possibility*. It good distro, but I cant find packages, which I use every day, but found _too_large_collection_ of packages, which I dont use along my life :). Resume: YDL - is for beginners only, like demo version. Not for prof. use every day.
After few hours - from YDL's kboot # dd if=/dev/zero of=/dev/sda bs=1M Game over.
As fact - my like distro is gentoo I choice it to install from stage1. But its not easy as first time. Second my try is install gentoo from stage4.
From stage4 I copy for future use few files. make.conf xorg.conf. Next, I do again from kboot's shell # dd if=/dev/zero of=/dev/sda bs=1M .
For final stady - download http://www.kernel.org/pub/linux/kernel/people/geoff/cell/kboot-20070516.bld & verify MD5 hash.
Install it. Its minimal _working_ kboot. Its easy :)
Next, download boot cd from http://gentoo.osuosl.org/experimental/ppc64/livecd/installcd-ps3-minimal-beta3.iso
!!!!!!!!!!!!! WARNING !!!!!!!!!!!!
I use stage1 from http://gentoo.osuosl.org/releases/ppc/2007.0/ppc64/stages/stage1-ppc64-64ul-2007.0.tar.bz2
and set profile to /usr/portage/profiles/default-linux/ppc/ppc64/2007.0/64bit-userland/970
Set up properly make.conf. You may use make.conf from stage4 (saved before) It work good.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Now - continue like normal gentoo install from stage1. chroot, emerge --sync and etc...
next,
#cd /usr/portage
#scripts/bootstrap.sh
botstrap complete without problems. Next - emerge -e world.
At this point I have some problem.
2 packages I can not compile. I do emerge -e --resume --skipfirst. This problem, I think, related from incompatable liveCD & my stage1.
After compile -e world in *manual mode*, I try again #emerge -e world. Now - without problems :)
I use kernel http://www.kernel.org/pub/linux/kernel/people/geoff/cell/CELL-Linux-CL_20070516-ADDON/src/linux-2.6.21-20070425.tar.bz2
In general - its working kernel (I love vanilla(near vanilla kernels)). Latest versions - _NOT_WORKING.

In general - its all.

2. Installing SPE compiler/tollchain.
For do this - you _DO_NOT_NEED_ to install gcc-4.3.**** directly via emerge.
First, install layman's overlays *cell* and *toolchain*. It is important and emerge elfspe2, modify fstab and mount this fs(spufs).
Secod, emerge crossdev.
Next, try #crosdev --help
For support SPE features, you are need run #crossdev spe (Support PPE is broken and dont needed. You are already have PPE dev tools).
#crossdev spe - without add. parameters emerge latest _unstable_ versions kernel headers, binutils, newlib(libc replacement for spe) and gcc. You realy need specify versions. Personnay, I am do that: I select binutils, kernel headers version - as already installed on my system. Latest stable from portage. Newlib - latest devel from overlay, gcc - as in my previous post. First dev build in this month. Summary, I specify 3 parameters: binutils, kernel headers and gcc.
After that - I have spu toolchain and compiler :) !!!!!!!!!!!!!!!!!

And I must say - VERY THANKS from me, gentoo developers !!!!

Thats all in common. If you have questions - I explain.

With best whishes - triod.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
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