Boost logo

Boost-Build :

Subject: Re: [Boost-build] Building Boost 64 bit on SLES 9
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-08-22 03:09:17


On Friday 21 August 2009 Youngman, James wrote:

> 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) .

I would recommend trying 1.40 beta, and *don't* specify architecture at all. Failing that,
see recommendation below:

> 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

You are using very old version of gcc -- do you maybe have some stale version in PATH?

>
> "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

I believe the valid options -- in recent gcc -- include:

        - nocona
    - core2
    - opteron
    - athlon64
    - athlon-fx

The above message suggests your gcc does not support athlon64 -- maybe it supports some other
options, like opteron?

- Volodya


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