Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on Alternative Architectures
  • Search

gcc-4.3.0_alpha20070629 emake fails with boot-strap lean

Post here for other supported architectures, or if you are interested in porting Gentoo to a currently unsupported architecture.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
piratetitan
n00b
n00b
Posts: 7
Joined: Sat May 12, 2007 6:06 pm

gcc-4.3.0_alpha20070629 emake fails with boot-strap lean

  • Quote

Post by piratetitan » Mon Jul 16, 2007 10:17 pm

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

Code: Select all

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?
Top
didymos
Advocate
Advocate
User avatar
Posts: 4798
Joined: Mon Oct 10, 2005 2:09 am
Location: California

  • Quote

Post by didymos » Tue Jul 17, 2007 12:51 am

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
Top
corsair
Retired Dev
Retired Dev
Posts: 451
Joined: Mon Oct 06, 2003 5:58 pm
Location: Aachen, Germany

  • Quote

Post by corsair » Tue Jul 17, 2007 5:43 am

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
Top
piratetitan
n00b
n00b
Posts: 7
Joined: Sat May 12, 2007 6:06 pm

  • Quote

Post by piratetitan » Wed Jul 18, 2007 5:22 pm

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: Select all

/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.
Top
djprotoss
n00b
n00b
Posts: 37
Joined: Thu Nov 14, 2002 12:17 pm

  • Quote

Post by djprotoss » Wed Aug 01, 2007 7:52 am

The 29 build was broken - someone checked his development code in (hence the TODO). Use the 22 build instead.
Top
triod
n00b
n00b
Posts: 14
Joined: Mon Jan 24, 2005 5:42 pm

  • Quote

Post by triod » Mon Aug 06, 2007 3:49 pm

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/snapsh ... 03/md5.sum).

emerge -Duvp gcc
emerge -Du gcc

Result reports few hours later.....

P.S.
md5sum: 81e762604064428ba3f01afbfbba630c gcc-4.3-20070803.tar.bz2
Top
triod
n00b
n00b
Posts: 14
Joined: Mon Jan 24, 2005 5:42 pm

  • Quote

Post by triod » Tue Aug 07, 2007 10:13 am

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.
Top
liberance
n00b
n00b
Posts: 3
Joined: Fri Apr 06, 2007 7:19 am

  • Quote

Post by liberance » Tue Aug 07, 2007 10:35 am

I have the same problem but by merging kde
Top
ludistatio
n00b
n00b
Posts: 1
Joined: Wed Aug 08, 2007 6:20 pm
Location: Munich

  • Quote

Post by ludistatio » Sat Aug 11, 2007 5:59 pm

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/cr ... entoo.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: Select all

...
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).
Top
triod
n00b
n00b
Posts: 14
Joined: Mon Jan 24, 2005 5:42 pm

  • Quote

Post by triod » Mon Aug 13, 2007 11:17 pm

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/ ... 070516.bld & verify MD5 hash.
Install it. Its minimal _working_ kboot. Its easy :)
Next, download boot cd from http://gentoo.osuosl.org/experimental/p ... -beta3.iso
!!!!!!!!!!!!! WARNING !!!!!!!!!!!!
I use stage1 from http://gentoo.osuosl.org/releases/ppc/2 ... .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/ ... 25.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.
Top
Post Reply

10 posts • Page 1 of 1

Return to “Gentoo on Alternative Architectures”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic