All times are UTC-06:00




Post new topic  Reply to topic  [ 23 posts ] 
Author Message
 Post subject: compiling issues
PostPosted: Tue Jul 19, 2005 5:24 am 
Offline

Joined: Sun May 08, 2005 8:46 pm
Posts: 559
Location: Paris
hello there

I have a lot of compiling errors and failures when i try to emerge openoffice, firefox, or even emerge --update world (on glibc for example)
messages are often something like :

dag.c: In function `Clear_prerequisites':
dag.c:572: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: *** [dag.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/openoffice-1.1.4-r1/work/dmake'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/openoffice-1.1.4-r1/work/dmake'
make: *** [all] Error 2

!!! ERROR: app-office/openoffice-1.1.4-r1 failed.
!!! Function src_compile, Line 421, Exitcode 2
!!! (no error message)

I tried several make.conf settings but i always get this on 50% of sources i try to compile with emerge. Sometimes it doesn't even start to download sources and compile but says "segmentation fault" right after i type emerge xxx

should i provide some kind of log for you to help me or do you know a direction i could follow ?


here's my make.conf :

CFLAGS="-mcpu=7450 -mtune=7450 -O2 -maltivec -mabi=altivec -fno-strict-aliasing -fsigned-char -pipe"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="gnome gtk alsa hal oss cdr -kde -qt"
ALSA_CARDS="emu10k1,via82xx"
CONFIG_PROTECT="-*"


PS : forgot to tell that something like "aclocal" is often mentionned while it's compiling, what is aclocal ? i found something about it but what i am i supposed to do with it ?


Top
   
 Post subject: Re: compiling issues
PostPosted: Tue Jul 19, 2005 7:05 am 
Offline

Joined: Fri Sep 24, 2004 1:39 am
Posts: 103
Location: Gothenburg, Sweden
Quote:
hello there

I have a lot of compiling errors and failures when i try to emerge openoffice, firefox, or even emerge --update world (on glibc for example)
messages are often something like :
When you compiled your kernel did you perhaps enable preemption but disabled SMP? Preemption will not work without SMP, even though you only have one CPU, on PowerPC. A system with preemption but without SMP will behave exactly like you described.
Quote:
PS : forgot to tell that something like "aclocal" is often mentionned while it's compiling, what is aclocal ? i found something about it but what i am i supposed to do with it ?
aclocal is part of GNU autoconf (configure scripts and what not). Running aclocal will generate a script in the current dir which configure will use to figure out what software you have on your system etc. Normally, as in 99.999% of the cases, you don't have to run aclocal manually unless you are developing your own software using GNU autoconf.


Top
   
 Post subject: Re: compiling issues
PostPosted: Tue Jul 19, 2005 7:29 am 
Offline

Joined: Sun May 08, 2005 8:46 pm
Posts: 559
Location: Paris
Quote:
When you compiled your kernel did you perhaps enable preemption but disabled SMP? Preemption will not work without SMP, even though you only have one CPU, on PowerPC. A system with preemption but without SMP will behave exactly like you described.
mm i used Genkernel and haven't enabled or disabled it. How can i sort it out now ?

Quote:
aclocal is part of GNU autoconf (configure scripts and what not). Running aclocal will generate a script in the current dir which configure will use to figure out what software you have on your system etc. Normally, as in 99.999% of the cases, you don't have to run aclocal manually unless you are developing your own software using GNU autoconf.


sounds clear to me thanks for the explanation.


Top
   
 Post subject: Re: compiling issues
PostPosted: Tue Jul 19, 2005 2:59 pm 
Offline

Joined: Wed Oct 20, 2004 11:20 pm
Posts: 82
Quote:
mm i used Genkernel and haven't enabled or disabled it. How can i sort it out now ?
Here is how I would do it:
Code:
cd /usr/src/linux
make config
or if you want a gui and use KDE:
Code:
make xconfig
or if you use a gtk-based WM:
Code:
make gconfig
Then go into Platform Options, scroll down and enable Symmetric Multi-Processing Support. You don't have to play with any of the options that appear when you enable SMP. Make sure Pre-emptible Kernel is enabled. Then, save your config and recompile your kernel.

--Aaron
Gentoo 2005.0
Kernel: 2.6.12-love1


Top
   
 Post subject: Re: compiling issues
PostPosted: Tue Jul 19, 2005 7:44 pm 
Offline

Joined: Fri Sep 24, 2004 1:39 am
Posts: 103
Location: Gothenburg, Sweden
genkernel should set the preempt and SMP flags correctly. Just to be sure, run:
gzip -cd /proc/config.gz |grep PREEMP
It should say: CONFIG_PREEMPT=y
Then run:
gzip -cd /proc/config.gz |grep SMP
It should include: CONFIG_SMP=y

..or, you can do what Aaron said :)


Top
   
 Post subject: Re: compiling issues
PostPosted: Tue Jul 19, 2005 7:59 pm 
Offline

Joined: Sun May 08, 2005 8:46 pm
Posts: 559
Location: Paris
thanks guys, will try it tonight !


Top
   
 Post subject: Re: compiling issues
PostPosted: Tue Jul 19, 2005 10:37 pm 
Offline

Joined: Tue May 10, 2005 11:17 pm
Posts: 21
Hello SoundSquare!

I had same problems before. Thanks for dholm and Aaron now I can manage to emerge things. Exept openoffice... :)
What I suggest: merge gcc, glibc and binutils one by one, not all togeteher. Then you can try emerge --update....
For openoffice I could merge it when i used kde only. (not USE="-gtk -gnome", because glibc failed that way!!!). Now I'm playing with xfce ang gnome, but openoffice does not want it... :( Let me know, if you have any luck with it.


Top
   
 Post subject: Re: compiling issues
PostPosted: Wed Jul 20, 2005 7:43 am 
Offline

Joined: Sun May 08, 2005 8:46 pm
Posts: 559
Location: Paris
Quote:
genkernel should set the preempt and SMP flags correctly. Just to be sure, run:
gzip -cd /proc/config.gz |grep PREEMP
It should say: CONFIG_PREEMPT=y
Then run:
gzip -cd /proc/config.gz |grep SMP
It should include: CONFIG_SMP=y

..or, you can do what Aaron said :)
SSQPegasos ~ # gzip -cd /proc/config.gz |grep PREEMP
CONFIG_PREEMPT=y
CONFIG_DEBUG_PREEMPT=y
SSQPegasos ~ # gzip -cd /proc/config.gz |grep SMP
CONFIG_BROKEN_ON_SMP=y
CONFIG_SMP=y

so i guess this is not the reason why compiling fails
can it be a hardware problem like RAM or something ?
and by the way, my system says i've got 768Mb RAM when i have in fact 2X512Mb
how can i enable 1Go ?

oh and emerge glibc failed (got stuck, system was still responding but shell froze during compilation)

and about emerge gcc

SSQPegasos ~ # emerge gcc
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-devel/gcc-3.4.4 to /

!!! Digest verification Failed:
!!! /usr/portage/distfiles/gcc-3.4.4.tar.bz2
!!! Reason: Failed on MD5 verification
(had that error on several other packages too)


mmm still a long way to go ...


Last edited by SoundSquare on Thu Jul 21, 2005 7:52 pm, edited 1 time in total.

Top
   
 Post subject: Re: compiling issues
PostPosted: Wed Jul 20, 2005 3:04 pm 
Offline

Joined: Wed Oct 20, 2004 11:20 pm
Posts: 82
Quote:
and by the way, my system says i've got 768Mb RAM when i have in fact 2X512Mb
Do you have the latest Open Firmware? I had 2 CL3 512MB sticks in my machine and when I upgraded the OF, I had to take one stick out because I had all sorts of crazy problems.
Quote:
!!! Digest verification Failed:
!!! /usr/portage/distfiles/gcc-3.4.4.tar.bz2
!!! Reason: Failed on MD5 verification
This means that you might have some corrupted distfiles. Try this:
Code:
emerge --sync
If that doesn't fix the problem, try this:
Code:
cd /usr/portage/sys-devel/
ebuild gcc-3.4.4 digest
I would remove a stick of memory first and see what happens.

--Aaron


Top
   
 Post subject: Re: compiling issues
PostPosted: Wed Jul 20, 2005 8:01 pm 
Offline

Joined: Sun May 08, 2005 8:46 pm
Posts: 559
Location: Paris
Quote:
Do you have the latest Open Firmware? I had 2 CL3 512MB sticks in my machine and when I upgraded the OF, I had to take one stick out because I had all sorts of crazy problems.
Yes I do, I received my Peg2 card a few weeks ago. I'll remove one of the DDR sticks, i thought it might be the problem. I hope i's gonna solve my problems cause these bugs seems to come randomly and without any logical reason.
I'll keep you informed.

thanks again


Top
   
 Post subject: Re: compiling issues
PostPosted: Thu Jul 21, 2005 8:55 am 
Offline

Joined: Sun May 08, 2005 8:46 pm
Posts: 559
Location: Paris
phew... removed one 512Mb stick and now things are doing fine, compiling goes smoothly. Such a shame i can't use 1Gb though, I hope we'll have an Open Firmware update one of these days.

thanks to u all for your help.

SSQ


Top
   
 Post subject: Re: compiling issues
PostPosted: Thu Jul 21, 2005 2:10 pm 
Offline

Joined: Wed Oct 20, 2004 11:20 pm
Posts: 82
I'm glad you got it working.

I'm hoping for an OF update soon as well.

--Aaron
Gentoo 2005.0
Kernel: 2.6.12-love1


Top
   
 Post subject: Re: compiling issues
PostPosted: Thu Jul 21, 2005 6:19 pm 
Offline

Joined: Fri Sep 24, 2004 1:39 am
Posts: 103
Location: Gothenburg, Sweden
@SoundSquare:
Maybe you can find someone who is willing to trade your two 512MB sticks for one 1GB stick? AMD64 users generally want two sticks rather than one since the CPU has dual channels, it's possible you could find someone who didn't know that and accidentally bought 1*1GB (like one of my friends did) :)


Top
   
 Post subject: Re: compiling issues
PostPosted: Thu Jul 21, 2005 7:50 pm 
Offline

Joined: Sun May 08, 2005 8:46 pm
Posts: 559
Location: Paris
Quote:
@SoundSquare:
Maybe you can find someone who is willing to trade your two 512MB sticks for one 1GB stick? AMD64 users generally want two sticks rather than one since the CPU has dual channels, it's possible you could find someone who didn't know that and accidentally bought 1*1GB (like one of my friends did) :)
hehe good suggestion, i'll investigate ;)

i emerged a few things yesterday (--update world, mozilla-firefox, mplayer...) and it worked fine. Finally ! :D

@rogerius

i'm emerging open-office now, will tell you how it goes

UPDATE :

OpenOffice merged fine and works nicely under Gnome, i guess you have a more serious problem that i had. Just to let you know Rogerius.


Top
   
 Post subject: Re: compiling issues
PostPosted: Sat Jul 23, 2005 7:29 am 
Offline

Joined: Tue May 10, 2005 11:17 pm
Posts: 21
It's not fair! :(
Any other packages merging fine. My CFLAGS settings are the same as yours. I guess I have to try a nother ram module. What brand do you use?
But why OOo merged fine with a kde-only system?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 23 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 4 guests


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

Search for:
Jump to:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group