System : PowerMac 7300, 200mhz PPC 604e, 160mb ram, 9.1GB SCSI HD CHOSTS="-mpcu=604e -Os -pipe" (also tried -mpcu=powerpc) When I try to bootstrap a stage1 system, I get errors when its installing the first package, portage. >>> emerge (1 of 1) sys-apps/portage-2.0.50-r1 to / >>> md5 src_uri ;-) portage-2.0.50-r1.tar.bz2 >>> Unpacking source... >>> Unpacking portage-2.0.50-r1.tar.bz2 to /var/tmp/portage/portage-2.0.50-r1/work >>> Source unpacked. ./create-localdecls Checking truncate argument type... off_t Checking libc version... libc.so.6 Checking glibc subversion... 2.3 gcc -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT libsandbox.c /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s: Assembler messages: /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:2172: Error: expected comma after ".LC1" /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:2172: Warning: rest of line ignored; first ignored character is `0' /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:2320: Error: expected comma after ".LC1" /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:2320: Warning: rest of line ignored; first ignored character is `2' /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:3329: Error: unknown pseudo-op: `.lc1' /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:4652: Error: expected comma after ".LC2" /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:4652: Warning: rest of line ignored; first ignored character is `2' /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:445: Error: unknown pseudo-op: `.lc2' make: *** [libsandbox.o] Error 1 !!! ERROR: sys-apps/portage-2.0.50-r1 failed. !!! Function src_compile, Line 45, Exitcode 2 !!! (no error message) I also tried a stage3 tarball. The system boots fine, but produces the same results when I try run the bootstrap script. It also fails to compile anything else. >>> emerge (1 of 2) net-analyzer/netselect-0.3 to / >>> md5 src_uri ;-) netselect-0.3.tar.gz >>> Unpacking source... >>> Unpacking netselect-0.3.tar.gz to /var/tmp/portage/netselect-0.3/work >>> Source unpacked. gcc -Wall -I. -g -mcpu=604e -Os -pipe -c -o netselect.o netselect.c {standard input}: Assembler messages: {standard input}:1163: Warning: rest of line ignored; first ignored character is `9' gcc -g -o netselect netselect.o netselect.o(.text+0x1320): In function `packet_ok': /var/tmp/portage/netselect-0.3/work/netselect/netselect.c:83: undefined reference to `.L2' collect2: ld returned 1 exit status make: *** [netselect] Error 1 !!! ERROR: net-analyzer/netselect-0.3 failed. !!! Function src_compile, Line 23, Exitcode 2 !!! (no error message) I also cant compile a kernel, as It generates errors. Oddly enough, it stops at some point, then when you relaunch the compile process it manages to get a bit past that error, and stops somewhere else. It is now however stuck in the filesystems section. I thought it was a memory issue, but I ran an exhaustive ram test and it found 0 errors. Also, the so-called "universal" minimal live CD does not include kernels for oldworld macs. Only for G4, G4-SMP, G5, G5-SMP. Reproducible: Always Steps to Reproduce: 1. tar -xvjpf stage1-ppc-20040225.tar.bz2 2. cp /etc/resolv.conf /mnt/gentoo/etc, etc.. 3. chroot /mnt/gentoo 4. env-update && source /etc/profile 5. emerge sync 6. modify the make.conf file ( CHOSTS="-mpcu=604e -Os -pipe") 5. cd /usr/portage && scripts/bootstrap.sh Actual Results: ppclinux portage # scripts/bootstrap.sh Gentoo Linux; http://www.gentoo.org/ Copyright 2001-2003 Gentoo Technologies, Inc.; Distributed under the GPL Starting Bootstrap of base system ... Using >=sys-apps/baselayout-1.8.6.12 Using >=sys-apps/portage-2.0.49 Using >=sys-devel/binutils-2.14.90.0.6 Using >=sys-devel/gcc-3.2.3 Using sys-devel/gettext Using >=sys-libs/glibc-2.3.2 Using sys-apps/texinfo Using sys-libs/zlib Using sys-libs/ncurses Configuring environment... Calculating dependencies ...done! >>> emerge (1 of 1) sys-apps/portage-2.0.50-r1 to / >>> md5 src_uri ;-) portage-2.0.50-r1.tar.bz2 >>> Unpacking source... >>> Unpacking portage-2.0.50-r1.tar.bz2 to /var/tmp/portage/portage-2.0.50-r1/work >>> Source unpacked. ./create-localdecls Checking truncate argument type... off_t Checking libc version... libc.so.6 Checking glibc subversion... 2.3 gcc -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT libsandbox.c /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s: Assembler messages: /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:2172: Error: expected comma after ".LC1" /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:2172: Warning: rest of line ignored; first ignored character is `0' /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:2320: Error: expected comma after ".LC1" /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:2320: Warning: rest of line ignored; first ignored character is `2' /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:3329: Error: unknown pseudo-op: `.lc1' /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:4652: Error: expected comma after ".LC2" /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:4652: Warning: rest of line ignored; first ignored character is `2' /var/tmp/portage/portage-2.0.50-r1/temp/ccJEFCIg.s:445: Error: unknown pseudo-op: `.lc2' make: *** [libsandbox.o] Error 1 !!! ERROR: sys-apps/portage-2.0.50-r1 failed. !!! Function src_compile, Line 45, Exitcode 2 !!! (no error message) ppclinux portage # Expected Results: It should have bootstrapped. This looks like a compiler or linker issue.
System bootstraps when I use stage1-ppc-1.4_final.tbz2 I'm guessing the 2004.0 "universal" ppc isin't exactly universal then, since it must have been compiled for either G3s or G4s
I was getting similar errors on my system: IBM RS/6000 43p-140. PowerPC 604e@233MHz, 256MB RAM. 9.1 GB SCSI HD. LiveCD 2004.1 I didn't get the error on EVERY package, I could emerge something simple like bzip2, but gcc and python would fail. I wanted to take a look at the assembly being generated, and so I removed -pipe. Guess what? The problem went away. That said, I *am* using a non-devfs kernel I downloaded from somewhere else since the livecd doesn't have a PReP kernel on it. As soon as I can compile my own kernel I'll try -pipe again. CFLAGS="-mcpu=604e -O3"
gcc 3.3.2 seems to fix my compiler woes. Don't use gcc 3.3.3 if you are using a 2.4 kernel or your modules will be broken.
The livecds and grp were compiled using -mtune=powerpc -O2 -pipe -fno-strict-aliasing I know this is a crazy request, but if possible could you guys check out a gcc-3.4 compiler and feed us the results?
Closing the bug.