aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amule crashes under gentoo: solved  (Read 3699 times)

meby31

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
amule crashes under gentoo: solved
« 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...
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: amule crashes under gentoo: solved
« Reply #1 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.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amule crashes under gentoo: solved
« Reply #2 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 :)
Logged

meby31

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: amule crashes under gentoo: solved
« Reply #3 on: March 02, 2004, 11:23:20 AM »

About my CXXFLAGS, they are empty :
CXXFLAGS="${CFLAGS}"
« Last Edit: March 02, 2004, 11:24:37 AM by meby31 »
Logged

GhePeU

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 240
RE: amule crashes under gentoo: solved
« Reply #4 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
Logged
When they kick at your front door
how you gonna come?
with your hands on your head
or on the trigger of your gun

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: amule crashes under gentoo: solved
« Reply #5 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? ;)
Logged

meby31

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: amule crashes under gentoo: solved
« Reply #6 on: March 03, 2004, 09:21:12 AM »

CFLAGS="-Os -mcpu=i686 -march=i686 -falign-functions -falign-jumps -falign-loops
Logged