Re: severe gcc problems
Re: severe gcc problems
- Subject: Re: severe gcc problems
- From: Bill Northcott <email@hidden>
- Date: Mon, 18 Jul 2005 10:01:14 +1000
On 18/07/2005, at 7:19 AM, Tomas Zahradnicky wrote:
I'm trying to compile some scientific application. I've problems
with gcc
4.0.0 (Apple Computer, Inc. build 5026)
First problem is that I'm unable to build my analytical derivative
library. When I try to compile a static lib with -03, I get after
several hours of compilation:
g++ -c -o d_iDS_d_EX_delta.o -g -O3 d_iDS_d_EX_delta.c
cc1plus(1322) malloc: *** vm_allocate(size=3888427008) failed
(error code=3)
cc1plus(1322) malloc: *** error: can't allocate region
cc1plus(1322) malloc: *** set a breakpoint in szone_error to debug
This is failing because it is trying to allocate nearly 4GB of
memory. This will clearly fail in a 32 bit process like the
compiler. Whether this was caused by a compiler problem or something
in the code, there is not enough information to even guess.
What systems does this code build on successfully?
Hmm, if I switch to -O0, it works and 54M libder.a gets properly
archived. I'm however unable to use this archive because of tens of
thousands of errors like this one:
/usr/bin/ld: libder.a(d_iDS_d_EX_ld.o) relocation overflow for
relocation entry 140066 in section (__TEXT,__text) (displacement too
large)
This looks as if it might be relevant:
http://lists.apple.com/archives/Unix-porting/2002/Apr/msg00149.html
A 54MB archive is very big by normal standards.
Bill Northcott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden