|
Boost : |
Subject: Re: [boost] boost 1.42 - compile toolsset=intel-linux with fPIC
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2010-02-16 11:18:14
"Sören Freudiger" wrote:
> Hello
> I just try to compile boost 1.42 on the Altix-HPC in Munic. Problem is that
> I need to compile it with turned on -fPIC cxx-flag.
>
> Following steps I'd done:
>
> 1. run ./bootstrap.h --prefix=... --with-toolset=intel-linux
> 2. modify tools/build/v2/user_config.jam:
>
> ...
> using intel-linux : : : <cxxflags>-fPIC ;
> ...
>
> (according to
> http://www.boost.org/boost-
build2/doc/html/bbv2/reference/tools.html#bbv2.reference.tools.compiler.intel)
>
> 3. run ./bjam
>
> --> error:
> error: at
> /home/hlrb2/pr95gi/lu78wol/libs/boost_1_42_0/tools/build/v2/build/project.jam:884
> error: duplicate initialization of intel-linux with the following
> parameters:
> error: version = <unspecified>
> error: previous initialization at
> /home/hlrb2/pr95gi/lu78wol/libs/boost_1_42_0/tools/build/v2/build/project.jam:884
>
> What's the matter? What point did I miss?
Take a look at project-config.jam -- it already has 'using intel....'. I suggest you
remove whatever setting you've made in tools/build/v2/user-config.jam.
Further, why are you even trying to use -fPIC. When building shared libraries, -fPIC
is used already.
- Volodya
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk