Re: severe gcc problems
Re: severe gcc problems
- Subject: Re: severe gcc problems
- From: Tomas Zahradnicky <email@hidden>
- Date: Mon, 18 Jul 2005 07:37:45 +0200
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)
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.
I don't know, the source code is just 221K but there's a horde of
overloaded operators. 220,772 B vs 3.8G is almost 17,600 times
difference! I never thought that compiler might ever need so much
memory.
What systems does this code build on successfully?
-O0 works normally and produces 4,196,736 B object file.
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)
I've solved that by making few < 32M dylibs and it works now.
Tomas
--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
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