Boost logo

Boost-Build :

Subject: [Boost-build] Building Boost 64 bit on SLES 9
From: Youngman, James (james.youngman_at_[hidden])
Date: 2009-08-21 11:53:49


I am trying to build boost 1_38 on a SLES 9 64-bit system.

 I have tried the defaults (architecture=x86 address-model=64) .
Results:
gcc.compile.c++ bin.v2/libs/wave/build/gcc-3.3/release/address-model-64/architecture-x86/link-static/threading-multi/instantiate_cpp_exprgrammar.o

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -m64 -march=i386 -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o "bin.v2/libs/wave/build/gcc-3.3/release/address-model-64/architecture-x86/link-static/threading-multi/instantiate_cpp_exprgrammar.o" "libs/wave/src/instantiate_cpp_exprgrammar.cpp"
cc1plus: error: CPU you selected does not support x86-64 instruction set

I have also tried adding instruction-set=athlon64.
Results:
gcc.compile.c++ bin.v2/libs/wave/build/gcc-3.3/release/address-model-64/architecture-x86/instruction-set-athlon64/link-static/threading-multi/instantiate_cpp_exprgrammar.o

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -m64 -march=athlon64 -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o "bin.v2/libs/wave/build/gcc-3.3/release/address-model-64/architecture-x86/instruction-set-athlon64/link-static/threading-multi/instantiate_cpp_exprgrammar.o" "libs/wave/src/instantiate_cpp_exprgrammar.cpp"
cc1plus: error: bad value (athlon64) for -march= switch
cc1plus: error: bad value (athlon64) for -mcpu= switch

Does anyone know what options will work?

Thanks
Jim Youngman



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk