Power Developer https://powerdeveloper.org/forums/ |
|
compiling issues https://powerdeveloper.org/forums/viewtopic.php?f=8&t=306 |
Page 1 of 2 |
Author: | SoundSquare [ Tue Jul 19, 2005 5:24 am ] |
Post subject: | compiling issues |
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 ? |
Author: | dholm [ Tue Jul 19, 2005 7:05 am ] |
Post subject: | Re: compiling issues |
Quote: hello there
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.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 : 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.
|
Author: | SoundSquare [ Tue Jul 19, 2005 7:29 am ] |
Post subject: | Re: compiling issues |
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. |
Author: | Aaron [ Tue Jul 19, 2005 2:59 pm ] |
Post subject: | Re: compiling issues |
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
or if you want a gui and use KDE:
make config 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 |
Author: | dholm [ Tue Jul 19, 2005 7:44 pm ] |
Post subject: | Re: compiling issues |
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 |
Author: | SoundSquare [ Tue Jul 19, 2005 7:59 pm ] |
Post subject: | Re: compiling issues |
thanks guys, will try it tonight ! |
Author: | rogerius [ Tue Jul 19, 2005 10:37 pm ] |
Post subject: | Re: compiling issues |
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. |
Author: | SoundSquare [ Wed Jul 20, 2005 7:43 am ] |
Post subject: | Re: compiling issues |
Quote: genkernel should set the preempt and SMP flags correctly. Just to be sure, run:
SSQPegasos ~ # gzip -cd /proc/config.gz |grep PREEMPgzip -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 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 ... |
Author: | Aaron [ Wed Jul 20, 2005 3:04 pm ] |
Post subject: | Re: compiling issues |
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:
This means that you might have some corrupted distfiles. Try this:!!! /usr/portage/distfiles/gcc-3.4.4.tar.bz2 !!! Reason: Failed on MD5 verification Code: emerge --sync
If that doesn't fix the problem, try this:Code: cd /usr/portage/sys-devel/
I would remove a stick of memory first and see what happens.ebuild gcc-3.4.4 digest --Aaron |
Author: | SoundSquare [ Wed Jul 20, 2005 8:01 pm ] |
Post subject: | Re: compiling issues |
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 |
Author: | SoundSquare [ Thu Jul 21, 2005 8:55 am ] |
Post subject: | Re: compiling issues |
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 |
Author: | Aaron [ Thu Jul 21, 2005 2:10 pm ] |
Post subject: | Re: compiling issues |
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 |
Author: | dholm [ Thu Jul 21, 2005 6:19 pm ] |
Post subject: | Re: compiling issues |
@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) |
Author: | SoundSquare [ Thu Jul 21, 2005 7:50 pm ] |
Post subject: | Re: compiling issues |
Quote: @SoundSquare:
hehe good suggestion, i'll investigate 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) i emerged a few things yesterday (--update world, mozilla-firefox, mplayer...) and it worked fine. Finally ! @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. |
Author: | rogerius [ Sat Jul 23, 2005 7:29 am ] |
Post subject: | Re: compiling issues |
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? |
Page 1 of 2 | All times are UTC-06:00 |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |