Fails to compile with gcc 4.0 in Tiger 10.4.3:
if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -
DPACKAGE_VERSION=\"\" -DPACKAGE_STRI
NG=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=
\"VisualBoyAdvance\" -DVERSION=\"1.8.0\" -DY
YTEXT_POINTER=1 -DHAVE_LIBZ=1 -DSTDC_HEADERS=1 -
DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
DHAVE_STRINGS_H=1 -DHAVE_INTTYP
ES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -
DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_
ARPA_INET_H=1 -DHAVE_NETINET_IN_H=1 -DWORDS_BIGENDIAN=1 -
I. -I. -I../../src -DSDL -DS
YSCONFDIR=\"/usr/local/etc\" -I/sw/include/libpng12 -fno-
exceptions -I/sw/include/SDL
-D_THREAD_SAFE -g -O2 -DC_CORE -DPROFILING -DDEV_VERSION -
MT GBA.o -MD -MP -MF ".deps/
GBA.Tpo" \
-c -o GBA.o `test -f '../GBA.cpp' || echo './'`../GBA.cpp; \
then mv -f ".deps/GBA.Tpo" ".deps/GBA.Po"; \
else rm -f ".deps/GBA.Tpo"; exit 1; \
fi
cc1plus(14959) malloc: *** vm_allocate(size=8421376) failed (error
code=3)
cc1plus(14959) malloc: *** error: can't allocate region
cc1plus(14959) malloc: *** set a breakpoint in szone_error to debug
cc1plus: out of memory allocating 4072 bytes after a total of 0 bytes
make[2]: *** [GBA.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
using gcc 3.3 works fine:
# gcc_select 3.3
Logged In: YES
user_id=518853
This is a duplicate of 1341521