site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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: 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On 18/07/2005, at 7:19 AM, Tomas Zahradnicky wrote: I'm trying to compile some scientific application. I've problems with gcc 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? This email sent to site_archiver@lists.apple.com
participants (1)
-
Bill Northcott