You are here

Trouble building rosetta3.4 on Mac OsX 10.5.8

4 posts / 0 new
Last post
Trouble building rosetta3.4 on Mac OsX 10.5.8

I have unpacked all of the files but each time that I enter scons bin mode=release I keep getting this read out:

josh-spegmans-macbook-pro:rosetta_source joshspegman$ scons bin mode=release
scons: Reading SConscript files ...
Running versioning script ... sh: git: command not found
Done. (0.1 seconds)
scons: done reading SConscript files.
scons: Building targets ...
g++-4.0 -o build/src/release/macos/10.5/64/x86/gcc/4.0/basic/options/keys/OptionKeys0.os -c -isystem external/boost_1_46_1/boost/ -isystem external/boost_1_46_1/boost/ --param inline-unit-growth=1000 --param large-function-growth=50000 -m64 -march=nocona -mtune=generic -O3 -ffast-math -funroll-loops -finline-functions -finline-limit=20000 -s -Wno-unused-variable -fPIC -DNDEBUG -Isrc -Iexternal/include -Isrc/platform/macos/64/gcc/4.0 -Isrc/platform/macos/64/gcc -Isrc/platform/macos/64 -Isrc/platform/macos -Iexternal/boost_1_46_1 -Iexternal/dbio -I/usr/include -I/usr/local/include src/basic/options/keys/
cc1plus(17350) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

cc1plus: out of memory allocating 4072 bytes after a total of 0 bytes
scons: *** [build/src/release/macos/10.5/64/x86/gcc/4.0/basic/options/keys/OptionKeys0.os] Error 1
scons: building terminated because of errors.
josh-spegmans-macbook-pro:rosetta_source joshspegman$

I have only a very basic knowledge of programming and don't know enough to troubleshoot this on my own so I was wondering if anyone else had any ideas about what I could try doing to fix this error.

Post Situation: 
Sat, 2012-06-09 07:31

It's telling you that it can't compile because it doesn't have any memory. "cc1plus: out of memory allocating 4072 bytes after a total of 0 bytes" implies to me that it is getting literally no memory from the OS, which suggests GCC is mis-installed or has insufficient permissions or something. I've sent this along to some mac people I know to see if they've had it before.

Sat, 2012-06-09 08:57

I haven't ever seen that error message before, but it's definitely a problem with either your installation of gcc or with your version. I believe there were problems with gcc-4.0, so I'd recommend upgrading to at least 4.1 (which I believe is available through macports). 10.5 is now two OS revisions behind, so you might also consider upgrading to Lion.

Sat, 2012-06-09 13:47

I have gcc-4.2 installed as part of Xcode so I don't know why it is still trying to use gcc-4.0. How can I remove gcc-4.0 and direct the program to use gcc-4.2 to build these files instead?

Mon, 2012-06-11 10:25