You are not logged in.

#1 2011-06-13 12:44:26

TPJ
Member
From: Gliwice, Poland
Registered: 2005-12-21
Posts: 33

Software compilation problems

I have ghc installed (current version is 7.0.2, I use Arch).

I'm trying to compile ghc from source, and I still get the same result: segmentation fault, after long, long compilation time.

Can it be caused by insufficient amount of RAM memory? My machine is just 1GB. I can have access to 2GB machine, but before I buy more memory, I'd like to be sure, that this is the problem...

Why do I suspect that the amount of RAM can be the problem? Because once I tried to compile Gambit Scheme, and it failed with the same message (segmentation fault). In Gambit's readme I read, that compilation consumes a lot of memory, so I was sure that this was the problem.

Offline

#2 2011-06-13 12:59:51

rowdog
Member
From: East Texas
Registered: 2009-08-19
Posts: 118

Re: Software compilation problems

Is the segmentation fault SIGSEGV (signal 11)? If so, you might have a hardware issue as described in the Sig11 FAQ.
http://www.bitwizard.nl/sig11/

Offline

#3 2011-06-13 13:58:23

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Software compilation problems

moving to Kernel & Hardware


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2011-06-13 21:33:09

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Software compilation problems

I might be wrong but I think a lack of memory under Linux can only lead to the kernel killing some application (and not the application crashing.) You could still try adding some swap to see if it helps...

Offline

#5 2011-08-08 12:50:41

TPJ
Member
From: Gliwice, Poland
Registered: 2005-12-21
Posts: 33

Re: Software compilation problems

It took me a (long) while to investigate things further... I was also busy with other things. But now I have access to a better machine (2GB RAM), and no problems with ghc compilation. So I think that the cause of all errors was insufficient amount of RAM.

It's time to close the topic. Thatk you all for your help!

Offline

Board footer

Powered by FluxBB