You are here

rosetta 3.2.1 on mac os 10.6.8 - compiling problem

6 posts / 0 new
Last post
rosetta 3.2.1 on mac os 10.6.8 - compiling problem
#1

I am having trouble compiling rosetta. In the directory rosetta_source I ran varous "python scons.py mode=release [etc]" commands and ended up with various errors. Below I put three examples. I have installed the XCode tools and have gcc version 4.2. I don't want to install another version since seems to require other programs (gmp and mpfr) and I have run into problems compiling them.

>python scons.py mode=release bin -j2
src/apps/public/AbinitioRelax.cc:1: sorry, unimplemented: 64-bit mode not compiled in
src/apps/public/AbinitioRelax.cc:1: error: bad value (generic) for -mtune= switch
scons: warning: Ignoring corrupt sconsign entry : build/src/release/macos/10.6/64/x86/gcc/protocols (('object.__new__(X): X is not a type object (classobj)', , (, , None)))
File "scons.py", line 162, in
scons: *** [build/src/release/macos/10.6/64/x86/gcc/apps/public/AbinitioRelax.o] Error 1
g++ -o build/src/release/macos/10.6/64/x86/gcc/protocols/init.os -c -pipe -ffor-scope -W -Wall -pedantic -Wno-long-long -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 -Isrc/platform/macos/64 -Isrc/platform/macos -Iexternal/boost_1_38_0 -I/usr/local/include -I/usr/include src/protocols/init.cc
src/protocols/init.cc:1: sorry, unimplemented: 64-bit mode not compiled in
src/protocols/init.cc:1: error: bad value (generic) for -mtune= switch
scons: *** [build/src/release/macos/10.6/64/x86/gcc/protocols/init.os] Error 1
scons: building terminated because of errors.

>python scons.py mode=release bin cxx_ver=4.2 -j2
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
scons: *** [build/src/release/macos/10.6/64/x86/gcc/4.2/libObjexxFCL.dylib] Error 1
scons: building terminated because of errors.

>python scons.py mode=release bin cxx_ver=4.2 -j2 arch=x86 arch_size=32
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
scons: *** [build/src/release/macos/10.6/32/x86/gcc/4.2/libObjexxFCL.dylib] Error 1
scons: building terminated because of errors.

Post Situation: 
Mon, 2011-07-11 10:48
gw

A) Are you the same guy that's working with Nir?

B) Did you install gcc/xcode from a DVD for a 32 bit or 64 bit OS? Perhaps you installed it from a source other than the one that came with the computer? The first set of errors seems to say that the computer wants a different set of libraries than the ones it has. (I'm well in to wild guess territory here; we can never solve the sorts of problems centrally since it's an issue pretty specific to one computer)

Mon, 2011-07-11 12:48
smlewis

Yeah... Nir has been a great help trying to figure this out. I downloaded the Xcode tools (version 4) from the app store since I'm away from home and don't have my installer CD. I'm going to try some options like "-march=cpu-type", "mtune=i386" which I found in the XCode help documentation.

Mon, 2011-07-11 22:54
gw

The error message "sorry, unimplemented: 64-bit mode not compiled in" implies to me that the problem is your compiler isn't quite right for the system - did you have other options for things to download?

Tue, 2011-07-12 07:33
smlewis

No, no options, but I'm going to try to download XCode 3.

Tue, 2011-07-12 22:50
gw

It worked!

Thu, 2011-07-14 01:52
gw