Building Boost 1.48 using Intel compiler

First time posting to a mailing list, sorry if I've messed something up. I'm trying to build Boost 1.48 using Intel XE 12.1 and when running bjam it brings up "Windows can't open this file" for each file. I tried to adapt instructions from here: http://software.intel.com/en-us/articles/building-boost-with-intel-c/ I added the following to user-config.jam: using intel-win : 12.1 : "C:/Program Files (x86)/Intel/Composer XE/bin/ia32/icl.exe" : intel "C:/Program Files (x86)/Intel/Composer XE/bin/iclvars_ia32.bat" ; I tried building with the following command: C:\Users\blanked\Desktop\boost_1_48_0>bjam --toolset="intel" "-sINTEL_PATH=C :\Program Files (x86)\Intel\Composer XE\bin\ia32\" "-sINTEL_BASE_MSVC_TOOLSET=vc -10_0" "-sINTEL_VERSION=12.1" Building the Boost C++ Libraries. Performing configuration checks - has_icu builds : no warning: Graph library does not contain MPI-based parallel components. note: to enable them, add "using mpi ;" to your user-config.jam - iconv (libc) : no - iconv (separate) : no - icu : no - icu (lib64) : no - ../config//has_gcc_visibility builds : yes - ../config//has_long_double_support builds : yes warning: skipping optional Message Passing Interface (MPI) library. note: to enable MPI support, add "using mpi ;" to user-config.jam. note: to suppress this message, pass "--without-mpi" to bjam. note: otherwise, you can safely ignore this message. warning: No python installation configured and autoconfiguration note: failed. See http://www.boost.org/libs/python/doc/building.html note: for configuration instructions or pass --without-python to note: suppress this message and silently skip all Boost.Python targets Component configuration: - chrono : building - date_time : building - exception : building - filesystem : building - graph : building - graph_parallel : building - iostreams : building - locale : building - math : building - mpi : building - program_options : building - python : building - random : building - regex : building - serialization : building - signals : building - system : building - test : building - thread : building - timer : building - wave : building ...patience... ...patience... ...patience... ...patience... ...found 6797 targets... ...updating 804 targets... compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\c_regex_traits.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\cpp_regex_traits.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\cregex.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\fileiter.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\icu.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\instances.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\posix_api.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\regex.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\regex_debug.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\regex_raw_buffer.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\regex_traits_defaults.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\static_mutex.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\w32_regex_traits.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\wc_regex_traits.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\wide_posix_api.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\winstances.obj compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\usinstances.obj intel-win.archive bin.v2\libs\regex\build\intel-win\debug\link-static\threading- multi\libboost_regex-iw-mt-gd-1_48.lib '/lib' is not recognized as an internal or external command, operable program or batch file. Thanks a lot for your time, guys.

AMDG On 11/17/2011 02:52 PM, Kim wrote:
<snip>
I tried building with the following command:
C:\Users\blanked\Desktop\boost_1_48_0>bjam --toolset="intel" "-sINTEL_PATH=C :\Program Files (x86)\Intel\Composer XE\bin\ia32\" "-sINTEL_BASE_MSVC_TOOLSET=vc -10_0" "-sINTEL_VERSION=12.1"
<snip> compile-c-c++ bin.v2\libs\regex\build\intel-win\debug\link-static\threading-mult i\usinstances.obj intel-win.archive bin.v2\libs\regex\build\intel-win\debug\link-static\threading- multi\libboost_regex-iw-mt-gd-1_48.lib '/lib' is not recognized as an internal or external command, operable program or batch file.
Okay, so compiling works, but linking doesn't. What is the output if you run with -d2 --debug-configuration I'm guessing that the linker isn't found and ends up empty, so /lib is interpreted as the program to execute instead of an argument to the linker. In Christ, Steven Watanabe

Okay, so compiling works, but linking doesn't. What is the output if you run with -d2 --debug-configuration I'm guessing that the linker isn't found and ends up empty, so /lib is interpreted as the program to execute instead of an argument to the linker.
The icl.exe tool isn't being found but I have no idea why. Here was the result of running with the debug config: \boost_1_48_0>bjam --toolset="intel" "-sINTEL_PATH=C :\Program Files (x86)\Intel\Composer XE\bin\ia32\" "-sINTEL_BASE_MSVC_TOOLSET=vc -10_0" "-sINTEL_VERSION=12.1" -2 --debug-configuration notice: found boost-build.jam at C:/Users/Kim Gadecki/Desktop/boost_1_48_0/boost -build.jam notice: loading Boost.Build from C:/Users/Kim Gadecki/Desktop/boost_1_48_0/tools /build/v2 notice: [msvc-cfg] msvc-10.0 detected, command: 'C:\Program Files (x86)\Microsof t Visual Studio 10.0\VC\bin\cl.exe' notice: [msvc-cfg] msvc-9.0 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\cl.exe' notice: will use 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\cl. exe' for msvc, condition <toolset>msvc-10.0 notice: [msvc-cfg] condition: '<toolset>msvc-10.0/<architecture>/<address-model> ', setup: 'call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsal l.bat" x86 >nul ' notice: [msvc-cfg] condition: '<toolset>msvc-10.0/<architecture>/<address-model> 32', setup: 'call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvars all.bat" x86 >nul ' notice: [msvc-cfg] condition: '<toolset>msvc-10.0/<architecture>x86/<address-mod el>', setup: 'call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvar sall.bat" x86 >nul ' notice: [msvc-cfg] condition: '<toolset>msvc-10.0/<architecture>x86/<address-mod el>32', setup: 'call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcv arsall.bat" x86 >nul ' notice: [msvc-cfg] condition: '<toolset>msvc-10.0/<architecture>/<address-model> 64', setup: 'call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvars all.bat" x86_amd64 >nul ' notice: [msvc-cfg] condition: '<toolset>msvc-10.0/<architecture>x86/<address-mod el>64', setup: 'call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcv arsall.bat" x86_amd64 >nul ' notice: [msvc-cfg] condition: '<toolset>msvc-10.0/<architecture>ia64/<address-mo del>', setup: 'call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcva rsall.bat" x86_ia64 >nul ' notice: [msvc-cfg] condition: '<toolset>msvc-10.0/<architecture>ia64/<address-mo del>64', setup: 'call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vc varsall.bat" x86_ia64 >nul ' warning: toolset intel-win initialization: can not find tool icl.exe warning: initialized from notice: will use 'icl.exe' for intel-win, condition <toolset>intel-win notice: iostreams: not using zlib compression notice: iostreams: not using zlib compression notice: iostreams: not using bzip2 compression notice: iostreams: not using bzip2 compression Building the Boost C++ Libraries. At which point it started bringing up the can't open file windows. Thanks for your reply.

AMDG On 11/17/2011 04:25 PM, Kim Gadecki wrote:
The icl.exe tool isn't being found but I have no idea why. Here was the result of running with the debug config:
\boost_1_48_0>bjam --toolset="intel" "-sINTEL_PATH=C :\Program Files (x86)\Intel\Composer XE\bin\ia32\" "-sINTEL_BASE_MSVC_TOOLSET=vc -10_0" "-sINTEL_VERSION=12.1" -2 --debug-configuration notice: found boost-build.jam at C:/Users/Kim Gadecki/Desktop/boost_1_48_0/boost -build.jam notice: loading Boost.Build from C:/Users/Kim Gadecki/Desktop/boost_1_48_0/tools /build/v2
Okay. Something is seriously wrong here. At this point, there should be a message about searching for site-config.jam, then user-config.jam. It looks like your user-config.jam isn't being found. I'm working off the trunk, right now. I'll get 1.48 and try it again. Just to make sure, did you compile bjam from the source in 1.48? In Christ, Steven Watanabe

Am 17.11.2011 23:52, schrieb Kim:
First time posting to a mailing list, sorry if I've messed something up.
I'm trying to build Boost 1.48 using Intel XE 12.1 and when running bjam it brings up "Windows can't open this file" for each file.
I tried to adapt instructions from here:
http://software.intel.com/en-us/articles/building-boost-with-intel-c/
I added the following to user-config.jam: using intel-win : 12.1 : "C:/Program Files (x86)/Intel/Composer XE/bin/ia32/icl.exe" : intel "C:/Program Files (x86)/Intel/Composer XE/bin/iclvars_ia32.bat" ;
I tried building with the following command:
C:\Users\blanked\Desktop\boost_1_48_0>bjam --toolset="intel" "-sINTEL_PATH=C :\Program Files (x86)\Intel\Composer XE\bin\ia32\" "-sINTEL_BASE_MSVC_TOOLSET=vc -10_0" "-sINTEL_VERSION=12.1"
[...]
It works for me if I setup the environment variables first by executing
iclvars.bat. After that bjam toolset=intel can be used to compile Boost
without additional settings.
Unfortunately, two problems remain. The first one is a compilation error
related to Boost.PropertyTree:
.\boost/property_tree/detail/ptree_implementation.hpp(52): error #501:
argument of type "const std::string std::_Pair_base

On Fri, Nov 18, 2011 at 03:40:23PM +0100, Sergiu Dotenco wrote:
Am 17.11.2011 23:52, schrieb Kim:
First time posting to a mailing list, sorry if I've messed something up.
I'm trying to build Boost 1.48 using Intel XE 12.1 and when running bjam it brings up "Windows can't open this file" for each file.
I tried to adapt instructions from here:
http://software.intel.com/en-us/articles/building-boost-with-intel-c/
I added the following to user-config.jam: using intel-win : 12.1 : "C:/Program Files (x86)/Intel/Composer XE/bin/ia32/icl.exe" : intel "C:/Program Files (x86)/Intel/Composer XE/bin/iclvars_ia32.bat" ;
I tried building with the following command:
C:\Users\blanked\Desktop\boost_1_48_0>bjam --toolset="intel" "-sINTEL_PATH=C :\Program Files (x86)\Intel\Composer XE\bin\ia32\" "-sINTEL_BASE_MSVC_TOOLSET=vc -10_0" "-sINTEL_VERSION=12.1"
[...]
It works for me if I setup the environment variables first by executing iclvars.bat. After that bjam toolset=intel can be used to compile Boost without additional settings.
I've always had to run the build from the Intel command prompt, as the build process relies on having things in the path. Manually invoking the environment variable batches may work if you find the right incantation, but I find it easier to just use the "right" prompt. -- Lars Viklund | zao@acc.umu.se

Am 18.11.2011 16:31, schrieb Lars Viklund:
On Fri, Nov 18, 2011 at 03:40:23PM +0100, Sergiu Dotenco wrote:
Am 17.11.2011 23:52, schrieb Kim:
First time posting to a mailing list, sorry if I've messed something up.
I'm trying to build Boost 1.48 using Intel XE 12.1 and when running bjam it brings up "Windows can't open this file" for each file.
I tried to adapt instructions from here:
http://software.intel.com/en-us/articles/building-boost-with-intel-c/
I added the following to user-config.jam: using intel-win : 12.1 : "C:/Program Files (x86)/Intel/Composer XE/bin/ia32/icl.exe" : intel "C:/Program Files (x86)/Intel/Composer XE/bin/iclvars_ia32.bat" ;
I tried building with the following command:
C:\Users\blanked\Desktop\boost_1_48_0>bjam --toolset="intel" "-sINTEL_PATH=C :\Program Files (x86)\Intel\Composer XE\bin\ia32\" "-sINTEL_BASE_MSVC_TOOLSET=vc -10_0" "-sINTEL_VERSION=12.1"
[...]
It works for me if I setup the environment variables first by executing iclvars.bat. After that bjam toolset=intel can be used to compile Boost without additional settings.
I've always had to run the build from the Intel command prompt, as the build process relies on having things in the path. Manually invoking the environment variable batches may work if you find the right incantation, but I find it easier to just use the "right" prompt.
Using the IA-32 command prompt in Visual Studio 2010 mode I get the '/lib' is not recognized as an internal or external command, operable program or batch file error while running bjam and Windows wants me to choose an application I can open *.obj.rsp files with for every compilation unit.

Am 18.11.2011 16:31, schrieb Lars Viklund:
On Fri, Nov 18, 2011 at 03:40:23PM +0100, Sergiu Dotenco wrote:
Am 17.11.2011 23:52, schrieb Kim:
First time posting to a mailing list, sorry if I've messed something up.
I'm trying to build Boost 1.48 using Intel XE 12.1 and when running bjam it brings up "Windows can't open this file" for each file.
I tried to adapt instructions from here:
http://software.intel.com/en-us/articles/building-boost-with-intel-c/
I added the following to user-config.jam: using intel-win : 12.1 : "C:/Program Files (x86)/Intel/Composer XE/bin/ia32/icl.exe" : intel "C:/Program Files (x86)/Intel/Composer XE/bin/iclvars_ia32.bat" ;
I tried building with the following command:
C:\Users\blanked\Desktop\boost_1_48_0>bjam --toolset="intel" "-sINTEL_PATH=C :\Program Files (x86)\Intel\Composer XE\bin\ia32\" "-sINTEL_BASE_MSVC_TOOLSET=vc -10_0" "-sINTEL_VERSION=12.1"
[...]
It works for me if I setup the environment variables first by executing iclvars.bat. After that bjam toolset=intel can be used to compile Boost without additional settings.
I've always had to run the build from the Intel command prompt, as the build process relies on having things in the path. Manually invoking the environment variable batches may work if you find the right incantation, but I find it easier to just use the "right" prompt.
Using the IA-32 command prompt in Visual Studio 2010 mode I get the
'/lib' is not recognized as an internal or external command, operable program or batch file
error while running bjam and Windows wants me to choose an application I can open *.obj.rsp files with for every compilation unit. I was able to get the libs built using schrieb's advice and executing
On 11/19/2011 12:11 AM, Sergiu Dotenco wrote: the bjam commands from the same prompt. Might be of note to anyone else trying to build the libraries that it builds the 64bit versions by default even if you're running from the ia32 version prompt, so if you want to build the 32bit version use "address-model=32". Thanks for your help everyone.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On 11/19/2011 9:48 PM, Kim Gadecki wrote:
Am 18.11.2011 16:31, schrieb Lars Viklund:
On Fri, Nov 18, 2011 at 03:40:23PM +0100, Sergiu Dotenco wrote:
Am 17.11.2011 23:52, schrieb Kim:
First time posting to a mailing list, sorry if I've messed something up.
I'm trying to build Boost 1.48 using Intel XE 12.1 and when running bjam it brings up "Windows can't open this file" for each file.
I tried to adapt instructions from here:
http://software.intel.com/en-us/articles/building-boost-with-intel-c/
I added the following to user-config.jam: using intel-win : 12.1 : "C:/Program Files (x86)/Intel/Composer XE/bin/ia32/icl.exe" : intel "C:/Program Files (x86)/Intel/Composer XE/bin/iclvars_ia32.bat" ;
I tried building with the following command:
C:\Users\blanked\Desktop\boost_1_48_0>bjam --toolset="intel" "-sINTEL_PATH=C :\Program Files (x86)\Intel\Composer XE\bin\ia32\" "-sINTEL_BASE_MSVC_TOOLSET=vc -10_0" "-sINTEL_VERSION=12.1"
[...]
It works for me if I setup the environment variables first by executing iclvars.bat. After that bjam toolset=intel can be used to compile Boost without additional settings.
I've always had to run the build from the Intel command prompt, as the build process relies on having things in the path. Manually invoking the environment variable batches may work if you find the right incantation, but I find it easier to just use the "right" prompt.
Using the IA-32 command prompt in Visual Studio 2010 mode I get the
'/lib' is not recognized as an internal or external command, operable program or batch file
error while running bjam and Windows wants me to choose an application I can open *.obj.rsp files with for every compilation unit. I was able to get the libs built using schrieb's advice and executing
On 11/19/2011 12:11 AM, Sergiu Dotenco wrote: the bjam commands from the same prompt.
I'm sorry, whose advice?
Might be of note to anyone else trying to build the libraries that it builds the 64bit versions by default even if you're running from the ia32 version prompt, so if you want to build the 32bit version use "address-model=32". Thanks for your help everyone.
Are you sure, that *all* libraries were built correctly?
participants (5)
-
Kim
-
Kim Gadecki
-
Lars Viklund
-
Sergiu Dotenco
-
Steven Watanabe