Gentle People:
When Building a rather large project gcc produces the following error:
"Out of memory for code representation:" See the details below.
What is the best or simplest way to fix this?
1) Will using 64 bit via the -m64 flag fix this?
or
2) I am currently building the project with single gcc call. (The slow way)
Due to some legacy issues with GTK/Cairo and extern variables one big build
seems to work. Would it be better to compile each .C File to a .O file
and then
link (Faster way).
3) I am using an older gcc 3.4.6 on Solaris 10. Would a simple update to
a newer
version solve the out of memory problem shown above. (Separate from the -m64
issue shown below)?
Sun5# !ma
make TA_Benchs
Running Target: TA_Bench Sun
gcc -D_REENTRANT -ggdb -w -g -c IB_TWS_API.c Read_IB_Callbacks.c
gcc Main.c -ggdb -w IB_TWS_API.o Read_IB_Callbacks.o `pkg-config
--cflags --libs gtk+-2.0 ` -lcurl -lm -lsocket -lnsl -ggdb -w -o
TA_Bench.sun
Assembler: Main.c
"/var/tmp//ccVeiKcL.s", line 15324105 : Out of memory for code
representation
make: *** [TA_Benchs] Error 1
Sun5# !ma
make TA_Benchs
make: Warning: File `Makefile' has modification time 847 s in the future
Running Target: TA_Bench Sun
gcc -m64 -D_REENTRANT -ggdb -w -g -c IB_TWS_API.c Read_IB_Callbacks.c
IB_TWS_API.c:1: sorry, unimplemented: 64-bit mode not compiled in
Read_IB_Callbacks.c:1: sorry, unimplemented: 64-bit mode not compiled in
make: *** [TA_Benchs] Error 1
Sun5# gcc --version
gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.