aMule Forum

English => en_Bugs => Topic started by: meby31 on March 02, 2004, 01:09:52 AM

Title: amule crashes under gentoo: solved
Post by: meby31 on March 02, 2004, 01:09:52 AM
Hi,

Previously I had a lot of problems with amule, I compiled it with "emerge amule", and it always crashed after less than 1 hour.

I found that there is a pretty simple way to make amule stable : edit /etc/make.conf, and just delete all your CFLAGS (or comment them before emerging amule), so that it doesnt try to optimize it while compiling. Thats what i did, and now amule has been running for more than 36 hours without a crash :-)

Another tip to have a fast amule : disable gtk2 before emerging, or type :
USE="-gtk2" emerge amule
So it links it against gtk1, and not this crappy slow gtk2...

Don't ask me why...
Title: Re: amule crashes under gentoo: solved
Post by: Xaignar on March 02, 2004, 07:28:18 AM
What are your CXXFLAGS? I've been using aMule under gentoo for a while and it's been mostly stable (only mostly because I run a cvs build ;)), even though I use the same CXXFLAGS as for everything else.
Title: Re: amule crashes under gentoo: solved
Post by: Kry on March 02, 2004, 11:12:19 AM
Wow, you run a CVS build? I hope is not the last week - it's rather... dangerous ;)

Anway gentoo has proven to have serious problems with amule, and I can't understand it anyway. But if that's the way to go and gentoo amule runs nice with it, I can post it as howto.

Thanks for the report, keep around :)
Title: Re: amule crashes under gentoo: solved
Post by: meby31 on March 02, 2004, 11:23:20 AM
About my CXXFLAGS, they are empty :
CXXFLAGS="${CFLAGS}"
Title: RE: amule crashes under gentoo: solved
Post by: GhePeU on March 02, 2004, 02:03:25 PM
Quote
Originally posted by meby31
Hi,

Previously I had a lot of problems with amule, I compiled it with "emerge amule", and it always crashed after less than 1 hour.

I found that there is a pretty simple way to make amule stable : edit /etc/make.conf, and just delete all your CFLAGS (or comment them before emerging amule), so that it doesnt try to optimize it while compiling. Thats what i did, and now amule has been running for more than 36 hours without a crash :-)

Another tip to have a fast amule : disable gtk2 before emerging, or type :
USE="-gtk2" emerge amule
So it links it against gtk1, and not this crappy slow gtk2...

Don't ask me why...


-gtk2 is needed by wxGTK ebuild, if you read amule ebuild you can see that the USE is not checked... so, eventually type
Code: [Select]
USE="-gtk2" emerge wxGTK
optimizations are not related to interface bug founded by some gentoo users
Title: Re: amule crashes under gentoo: solved
Post by: Xaignar on March 02, 2004, 04:39:39 PM
Quote
Originally posted by meby31
About my CXXFLAGS, they are empty :
CXXFLAGS="${CFLAGS}"

Heh, that means that your CXXFLAGS are the same as your CFLAGS. So the question is now, what are your CFLAGS? ;)
Title: Re: amule crashes under gentoo: solved
Post by: meby31 on March 03, 2004, 09:21:12 AM
CFLAGS="-Os -mcpu=i686 -march=i686 -falign-functions -falign-jumps -falign-loops