Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems with emerging gcc and util-linux on an old[solved]
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
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Wed Aug 25, 2004 9:23 am    Post subject: problems with emerging gcc and util-linux on an old[solved] Reply with quote

The machine is 7300/200

And the only livecd I managed to install was 1.2 and now I'm updating it. And let's say all goes ok, except I can't emerge gcc-3.3.3 and util linux. I've tryed with different cflags, but no succes for now. The error I get when emerging util-linux is:

Code:
cc -c -O2 -fomit-frame-pointer -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes -DNCH=1   -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -O3 -pipe -fomit-frame-pointer fdisk.c -o fdisk.o
cc -c -O2 -fomit-frame-pointer -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes -DNCH=1   -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -O3 -pipe -fomit-frame-pointer llseek.c -o llseek.o
llseek.c: In function `_llseek':
llseek.c:40: more than 10 operands in `asm'
make[1]: *** [llseek.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/util-linux-2.12-r3/work/util-linux-2.12/fdisk'
make: *** [all] Error 1

!!! ERROR: sys-apps/util-linux-2.12-r3 failed.
!!! Function src_compile, Line 115, Exitcode 2
!!! emake failed


and with gcc the messaage is:

Code:
 `rest_of_compilation':
/var/tmp/portage/gcc-3.3.3_pre20040408-r1/work/gcc-20040408/gcc/toplev.c:3272: parse error before `struct'
/var/tmp/portage/gcc-3.3.3_pre20040408-r1/work/gcc-20040408/gcc/toplev.c:3278: `loops' undeclared (first use in this function)
/var/tmp/portage/gcc-3.3.3_pre20040408-r1/work/gcc-20040408/gcc/toplev.c:3278: (Each undeclared identifier is reported only once
/var/tmp/portage/gcc-3.3.3_pre20040408-r1/work/gcc-20040408/gcc/toplev.c:3278: for each function it appears in.)
/var/tmp/portage/gcc-3.3.3_pre20040408-r1/work/gcc-20040408/gcc/tree.c: In function `default_flag_random_seed':
/var/tmp/portage/gcc-3.3.3_pre20040408-r1/work/gcc-20040408/gcc/tree.c:4405: warning: ANSI C does not support the `ll' length modifier
make[2]: *** [toplev.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gcc-3.3.3_pre20040408-r1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.3_pre20040408-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.3.3_pre20040408-r1 failed.
!!! Function src_compile, Line 456, Exitcode 2
!!! (no error message)


as I'm a beginer I don't have any clue of what this could be.
Can any one of you specialists help? :)


Last edited by babo on Fri Aug 27, 2004 1:52 pm; edited 3 times in total
Back to top
View user's profile Send private message
toojays
Apprentice
Apprentice


Joined: 21 Jul 2002
Posts: 150
Location: Adelaide, Australia

PostPosted: Wed Aug 25, 2004 9:33 am    Post subject: Reply with quote

Ouch! Gentoo 1.2 is pretty old . . . I'm guessing you've got gcc-2.95? The probablem is that gcc-2.95 can't compile gcc-3.3.

You're going to have to kind of climb your way up the compiler version tree. Have a look in /usr/portage/sys-devel/gcc, and try to emerge a gcc-3.0 or gcc-3.1 (i.e. "emerge '=sys-devel/gcc-3.1*'") kind of package. From one of those you should hopefully be able to get to gcc-3.3.
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Wed Aug 25, 2004 9:50 am    Post subject: Reply with quote

oh, how the words of a master allways sound so symple :)

thank you very much, I'm giving it a go.
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Wed Aug 25, 2004 3:48 pm    Post subject: Reply with quote

well, gcc-3.2.2 seems to be running now, but when I try to emerge gcc-3.3.3 or util-linux the problem is the same as before.

:?
Back to top
View user's profile Send private message
toojays
Apprentice
Apprentice


Joined: 21 Jul 2002
Posts: 150
Location: Adelaide, Australia

PostPosted: Wed Aug 25, 2004 11:06 pm    Post subject: Reply with quote

I still think the problem is due to gcc-2.95. Installing gcc-3.2 will not necessarily get rid of 2.95, because they are in different slots. Did you use the gcc-config program to set gcc-3.2 as the default?
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Thu Aug 26, 2004 9:52 am    Post subject: Reply with quote

thank you again.
giving it a try
hope it works now :)
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Fri Aug 27, 2004 1:51 pm    Post subject: Reply with quote

ok, I'm sending report now

the thing was, after gcc-3.2.3 was set as default, I tryed to emerge gcc=3.3.3 an util-linux again, and it came to a rufly speaking simmilar error, something a bit else was written as an error, but it still wasn't working. So I tryed emerging glibc with --nodeps (before I was allways using just emerge glibc and it never installed it, couse it started with gcc-3.3.3 and never even came to glibc) and suprisingly for me gcc-3.3.3 and util-linux managed to emerge. So the problem is salved :D

thank you again :D
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