Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bootstrap fails :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Francis85
n00b
n00b


Joined: 27 Jan 2003
Posts: 35

PostPosted: Sun Mar 21, 2004 11:56 pm    Post subject: Bootstrap fails :( Reply with quote

Hi. I remember installing Gentoo 1.1a on my PowerMac 7300 without trouble quite a while ago. I also run Gentoo on my PC, which im most familiar with, and on my Cobalt Qube2 (gentoo/mips).

PowerMac 7300/200, 160mb RAM, 9.1GB 7200rpm, 2GB 5400 rpm, pci voodoo3 2000, pci usb card (ohci), pci 10/100 asante 590 card.

This time however, I can't get the bootstrap to work. It fails when trying to install portage.

Code:

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 #


Any ideas? I tried from the livecd (which I couldnt use at first since the kernels that comes with it (universal livecd) arent for older PPCs, so I had to decompress the livecd.gcloop file on my PC, etc.. Managed to get it working afterwards...
Code:

ppclinux portage # uname -a
Linux ppclinux 2.4.20-ppc-r4 #1 Sat Apr 12 10:43:57 Local time zone must be set--see zic manu ppc 604e Power Macintosh GNU/Linux


So I tried both with a stage1 and stage3 tarball, and bootstrap always fails. I'm getting clueless here :(


Last edited by Francis85 on Mon Mar 22, 2004 6:18 am; edited 1 time in total
Back to top
View user's profile Send private message
Francis85
n00b
n00b


Joined: 27 Jan 2003
Posts: 35

PostPosted: Mon Mar 22, 2004 6:00 am    Post subject: Reply with quote

It also seems that most compiles fail.

CFLAGS="-mcpu=604e -mtune=604e -Os -pipe -fforce-addr -fomit-frame-pointer"

I also tried the default CFLAGS="-O3 -mcpu=powerpc"
and it still fails with the exact same error.

I thought it could be a memory problem, but I just tested its memory using memtest (memtester in the portage tree) and all tests passed.
I'm definately clueless here. . :?

Code:

ppclinux portage # emerge mirrorselect
Calculating dependencies ...done!
>>> 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 -mtune=604e -Os -pipe -fforce-addr -fomit-frame-pointer   -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)

ppclinux portage #
Back to top
View user's profile Send private message
Francis85
n00b
n00b


Joined: 27 Jan 2003
Posts: 35

PostPosted: Mon Mar 22, 2004 6:13 am    Post subject: Reply with quote

If I try to compile a kernel, it fails at some point, then I start over and it fails a little after, etc

for instance,

Code:

gcc -D__KERNEL__ -I/usr/src/ppc-sources-2.4.24-r2/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/usr/src/ppc-sources-2.4.24-r2/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring  -O1 -nostdinc -iwithprefix include -DKBUILD_BASENAME=tail_conversion  -c -o tail_conversion.o tail_conversion.c
gcc -D__KERNEL__ -I/usr/src/ppc-sources-2.4.24-r2/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/usr/src/ppc-sources-2.4.24-r2/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring  -O1 -nostdinc -iwithprefix include -DKBUILD_BASENAME=journal  -c -o journal.o journal.c
{standard input}: Assembler messages:
{standard input}:842: Error: unknown pseudo-op: `.l2'
make[3]: *** [journal.o] Error 1
make[3]: Leaving directory `/usr/src/ppc-sources-2.4.24-r2/fs/reiserfs'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/ppc-sources-2.4.24-r2/fs/reiserfs'
make[1]: *** [_subdir_reiserfs] Error 2
make[1]: Leaving directory `/usr/src/ppc-sources-2.4.24-r2/fs'
make: *** [_dir_fs] Error 2
ppclinux linux #


If I attempt to compile again, it will fail elsewhere...

Code:

gcc -D__KERNEL__ -I/usr/src/ppc-sources-2.4.24-r2/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/usr/src/ppc-sources-2.4.24-r2/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring  -DSMBFS_PARANOIA -nostdinc -iwithprefix include -DKBUILD_BASENAME=cache  -c -o cache.o cache.c
{standard input}: Assembler messages:
{standard input}:307: Error: unknown pseudo-op: `.l1'
make[3]: *** [cache.o] Error 1
make[3]: Leaving directory `/usr/src/ppc-sources-2.4.24-r2/fs/smbfs'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/ppc-sources-2.4.24-r2/fs/smbfs'
make[1]: *** [_subdir_smbfs] Error 2
make[1]: Leaving directory `/usr/src/ppc-sources-2.4.24-r2/fs'
make: *** [_dir_fs] Error 2
ppclinux linux #


Does GCC doesn't like me? :(
Back to top
View user's profile Send private message
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Mon Mar 22, 2004 10:17 pm    Post subject: Reply with quote

you should probably read the man pages or use the CFLAGS supplied by default, none of the ones you posted here are valid for PPC machines!

try CFLAGS="-Os -pipe" (or -O3 or whatever you like) and let the toolchain set teh rest of your options from there.

mcpu and mtune are not valid for ppc, and -fforce-addr -fomit-frame-pointer are never a great idea to set globally for _any_ arch.

Not sure if those are your problems or not, but it might be worth a shot to start there.
Back to top
View user's profile Send private message
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Mon Mar 22, 2004 11:27 pm    Post subject: Reply with quote

actually I stand corrected ... mcpu is good for PPC, mtune and march are not ;)
Back to top
View user's profile Send private message
Francis85
n00b
n00b


Joined: 27 Jan 2003
Posts: 35

PostPosted: Tue Mar 23, 2004 1:23 am    Post subject: Reply with quote

Tried with

-mcpu=powerpc -Os
-mcpu-604e -Os
-mcpu=powerpc -O2
-mcpu-604e -O2

It fails with the same error everytime. 8O
Back to top
View user's profile Send private message
Francis85
n00b
n00b


Joined: 27 Jan 2003
Posts: 35

PostPosted: Tue Mar 23, 2004 8:29 am    Post subject: Reply with quote

** Update **

It seems to work when I start off a Gentoo 1.4 Stage 1 :D

I'm guessing the newer 2004.0 stages are for G4s and up since they don't even include kernels for pre-G4s on it? :?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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