boost 1.42 - compile toolsset=intel-linux with fPIC

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.re...) 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? Please help ;-) SirAnn -- Sicherer, schneller und einfacher. Die aktuellen Internet-Browser - jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/chbrowser

"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

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.
But that's especially what I wanna to: add the fPIC flag for the gcc version it works fine!)
Further, why are you even trying to use -fPIC. When building shared libraries, -fPIC is used already.
Some of our guys have to link because of certain reasons against the static libs from boost and obtain the error boost should be compiled with turned on fPIC flag... -SirAnn -----Ursprüngliche Nachricht----- Von: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] Im Auftrag von Vladimir Prus Gesendet: Dienstag, 16. Februar 2010 17:18 An: boost@lists.boost.org Betreff: Re: [boost] boost 1.42 - compile toolsset=intel-linux with fPIC "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/proj ect.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/proj ect.jam:884
What's the matter? What point did I miss?
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Sören Freudiger wrote:
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.
But that's especially what I wanna to: add the fPIC flag for the gcc version it works fine!)
Well, just do that in project-config.jam? Or, alternatively, remove project-config.jam -- and have only user-config.jam be used.
Further, why are you even trying to use -fPIC. When building shared libraries, -fPIC is used already.
Some of our guys have to link because of certain reasons against the static libs from boost and obtain the error boost should be compiled with turned on fPIC flag...
Ok. In that case forcing -fPIC makes sense. - Volodya

Sören Freudiger wrote:
Some of our guys have to link because of certain reasons against the static libs from boost and obtain the error boost should be compiled with turned on fPIC flag...
If you build an executable that will dynamically load (with dlopen) shared libraries, then all of its code, including whatever it gets from static libraries, has to be compiled and linked with -fPIC. This leads us to compile and link all of our code, including boost libraries, with -fPIC. -- Dick Hadsell 203-992-6320 Fax: 203-992-6001 Reply-to: hadsell@blueskystudios.com Blue Sky Studios http://www.blueskystudios.com 1 American Lane, Greenwich, CT 06831-2560
participants (4)
-
"Sören Freudiger"
-
Richard Hadsell
-
Sören Freudiger
-
Vladimir Prus