aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Re: Compile time error: aMule compilation kills X-server  (Read 4878 times)

catface

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Compile time error: aMule compilation kills X-server
« on: December 23, 2003, 08:22:33 AM »

if compiling a code will crash XFree, you surely have something wrong with your system
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compile time error: aMule compilation kills X-server
« Reply #1 on: December 23, 2003, 08:27:04 AM »

muuli_wdr.cpp is a 1.9Mb file. Thus, compilation takes lots of memory and CPU, and gcc sometimes can't handle that. It's gcc problem, not amule ;)


Try compiling on text console, without X
Logged

fz

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 27
Re: Compile time error: aMule compilation kills X-server
« Reply #2 on: December 23, 2003, 03:19:43 PM »

yeah, this sounds like the "out of memory killer" (OOM killer) in the kernel which tries to free memory by killing processes if a running process runs out of free memory.
i had the same problems with the same file.
like Kry said, switch to text console and terminate all unnecessary processes. increasing swap space might help, too.
and btw: afaik the OOM killer only applies if you compile as superuser (root). switch to any ordinary user to compile and no processes should be killed (though compiling might still fail).

fz

p.s.: to the devs: any way to reduce the size of muuli_wdr?
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Compile time error: aMule compilation kills X-server
« Reply #3 on: December 23, 2003, 04:09:53 PM »

Quote
Original von fz


p.s.: to the devs: any way to reduce the size of muuli_wdr?


its the GUI ..

fz

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 27
Re: Compile time error: aMule compilation kills X-server
« Reply #4 on: December 23, 2003, 04:21:37 PM »

i know. perhaps there's a way to produce smaller source code in exchange for "human readability"? i don't know wxgtk, but i noticed an increase in file size beginning with amule 1.2.0 (which i couldn't compile, too, because of the too large file size), though i didn't notice large changes in the gui.

greets, fz
Logged

jMCg

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
    • http://www.blackbox.it.tt
Re: Compile time error: aMule compilation kills X-server
« Reply #5 on: December 23, 2003, 11:26:52 PM »

hmm... can anyone tell me how much of a memory/CPU the compilation of aMule takes?
I know that I'm not really up-to-date with my Celeron 500.. but I've always expirienced Linux as the System, that really runs everywhere...
Maybe I should go back to xMule again  :?
Logged
King Nothing is dead.

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compile time error: aMule compilation kills X-server
« Reply #6 on: December 24, 2003, 12:47:51 PM »

Well, muuli_wdr is generated, so, no way to reduce it.


About OOM: sorry, jMCg, but some low-end boxes (as my p2 266 128Mb RAM) can handle the compilation (it takes ages anyway!!). Try changing gcc version, 'cos its a segmentation fault, not a killed, and it happens under user, not root, compilation.
Logged