Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#2635 closed bug (invalid)

GCC can't allocate more memory: virtual memory exhausted

Reported by: xspager Owned by: axeld
Priority: normal Milestone: R1
Component: - General Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: x86-64


When I call make to build the GBA emulator VBA and everything goes fine, until it reach the file GBA.cpp. The build end with this error:

source='../GBA.cpp' object='GBA.o' libtool=no \

depfile='.deps/GBA.Po' tmpdepfile='.deps/GBA.TPo' \ depmode=gcc /bin/sh ../../depcomp \ g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"VisualBoyAdvance\" -DVERSION=\"1.7.2\" -DHAVE_LIBZ=1 -DHAVE_LIBPNG=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_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_NETINET_IN_H=1 -I. -I. -I../../src -DSDL -DSYSCONFDIR=\"/usr/local/etc\" -fno-exceptions -I/boot/home/config/include/SDL -D_GNU_SOURCE=1 -g -O2 -DPROFILING -DMMX -DDEV_VERSION -c -o GBA.o test -f '../GBA.cpp' || echo './'../GBA.cpp

/boot/home/src/VisualBoyAdvance-1.7.2/src/GBA.cpp: In function `void CPULoop(int)': /boot/home/src/VisualBoyAdvance-1.7.2/src/GBA.cpp:3919: virtual memory exhausted make[2]: * [GBA.o] Error 1 make[2]: Leaving directory `/boot/home/src/VisualBoyAdvance-1.7.2/src/sdl' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/boot/home/src/VisualBoyAdvance-1.7.2/src' make: * [all-recursive] Error 1

I'm running Haiku on a real x86_64(AMD Athlon X2) machine with 2GB of memory.

Change History (3)

comment:1 by xspager, 12 years ago

The author of VisualBoyAdvance warns about the gcc and the -O flags on the README. Using -O0 the build of the file GBA.cpp ends without errors.

Please close this ticket.

comment:2 by stippi, 12 years ago

Resolution: invalid
Status: newclosed

Ok, thanks!

comment:3 by mmadia, 10 years ago

Platform: x64x86-64
Note: See TracTickets for help on using tickets.