error: CPU you selected does not support x86-64 instruction set [SOLVED]

5 replies [Last post]
UliG
Offline
Joined: 2011-10-17
Category: 
Compilation

Dear colleagues,

I am trying to install Rosetta 3.3 on:

- HP ProLiant DL380 G6
- CPU: 2 x Intel Xeon Quad Core
- OS = SUSE SLES 11, kernel 2.6.27.19, x86_64
- compiler: gcc 4.3-62.198-x86_64
- python: 2.6.5
- scons: 2.1.0

command: scons bin mode=release OR additionally arch=x86 arch_size=64

crash + error message:

g++ -o build/src/release/linux/2.6/32/x86/gcc/apps/public/AbinitioRelax.o -c -isystem external/boost_1_46_1/boost/ -isystem external/boost_1_46_1/boost/ -malign-double -march=pentium4 -O3 -ffast-math -funroll-loops -finline-functions -finline-limit=20000 -s -Wno-unused-variable -DNDEBUG -Isrc -Iexternal/include -Isrc/platform/linux/32/gcc -Isrc/platform/linux/32 -Isrc/platform/linux -Iexternal/boost_1_46_1 -Iexternal/dbio -I/usr/local/include -I/usr/include src/apps/public/AbinitioRelax.cc
src/apps/public/AbinitioRelax.cc:1: error: CPU you selected does not support x86-64 instruction set
src/apps/public/AbinitioRelax.cc:1: error: CPU you selected does not support x86-64 instruction set
scons: *** [build/src/release/linux/2.6/32/x86/gcc/apps/public/AbinitioRelax.o] Error 1
scons: building terminated because of errors.

I don't understand why the compiler creates a "32" directory although it is a 64-bit architecture. Is there a way to enforce the 64-bits?

Thank you in advance and best regards,

Uli Gohlke

Max-Delbruck-Center for Molecular Medicine
Berlin, Germany

smlewis
Offline
Joined: 2010-08-03

This is a SCons issue, not a Rosetta issue. You may get more help from SCons documentation than here.

Our lab once had a somewhat-similar processor misidentification issue. I've attached the tools/build/user.settings file we used to fix it. It was a different problem, so it probably won't work for you, but it may serve as a starting point (in particular, the i686 line is likely to be wrong).

EDIT: the attach thing isn't working; try this link https://www.rosettacommons.org/sites/default/files/user.settings.32bit_8...

UliG
Offline
Joined: 2011-10-17

Dear smlewis,

thanks for the help - unfortunately, I cannot find the settings file following your link.

Cheers,

Uli G.

smlewis
Offline
Joined: 2010-08-03

Stupid forum software....

Here it is in plain text (for completeness' sake)

# -*- mode:python;indent-tabs-mode:nil;show-trailing-whitespace:t; -*-
#
# Copy this file into user.settings:
#
# cp user.settings.template user.settings
#
# and customize to fit your site's environment
# DO NOT make changes to this template
# DO NOT try and check in user.settings

# Settings here are added to the combined build settings, after all basic
# and site settings, to allow you to override anything you need to.
# They can in turn be overriden by the project settings.
#
# NOTE: At some point this file will allow you to have multiple settings
# and select between them from the options. For now there is only the
# single "user" settings.

settings = {
"user" : {
"prepends" : {
},
"appends" : {
"flags":{
"compile":["march=i686"]
},
},
"overrides" : {
},
"removes" : {
"flags":{
"compile":["march=pentium4","march=athlon"]
},
},
}
}

UliG
Offline
Joined: 2011-10-17

it seems this was a Python error. Perhaps for some reason I was using a 32-bit version of Python, so when I forced the use of the 64-bit version, it recognized the 64-bit architecture. The installation chrashed, however, at a later point whilst linking (see my latest post).

Thanks again for your help,

Uli G.

batogrujanac
Offline
Joined: 2012-04-27

Would you mind showing me how you forced the use of the 64-bit version?