Boost logo

Boost Users :

From: Christopher Harrop - NOAA Affiliate (christopher.w.harrop_at_[hidden])
Date: 2019-05-16 13:17:20


>>
>> +./bootstrap.sh --with-toolset=pgi --prefix=/path/to/install/boost
>> <snip>
>> + ./b2 -j 12 install --build-type=complete --layout=versioned --target=shared,static
>
> I think I know what the problem is. The pgi toolset
> inherits from gcc, but does it in a way that makes
> an unitialized gcc the default toolset. Try adding
> toolset=pgi the b2 command to work around this bug.
>
> Note that Boost.Context probably still won't build,
> because of its inherent non-portability.

Thank you for pointing out the toolset property for b2. Adding that did indeed get me most of the way there. Now it gets this far:

======================
pgi.compile.c++ bin.v2/libs/contract/build/pgi/debug/threading-multi/contract.o
pgi.link.dll bin.v2/libs/contract/build/pgi/debug/threading-multi/libboost_contract-mt-d-x64-1_70.so
boost-install.generate-cmake-variant- /scratch4/BMC/gsd-hpcs/Christopher.W.Harrop/bass-develop/opt/boost/1.70.0/pgi/18.5/lib/cmake/boost_contract-1.70.0/libboost_contract-variant-mt-d-x64-1_70-shared.cmake
common.copy /scratch4/BMC/gsd-hpcs/Christopher.W.Harrop/bass-develop/opt/boost/1.70.0/pgi/18.5/lib/libboost_contract-mt-d-x64-1_70.so
pgi.compile.c++ bin.v2/libs/context/build/pgi/debug/threadapi-pthread/threading-multi/posix/stack_traits.o
pgi.compile.c++ bin.v2/libs/coroutine/build/pgi/debug/threadapi-pthread/threading-multi/posix/stack_traits.o
pgi.link.dll bin.v2/libs/context/build/pgi/debug/threadapi-pthread/threading-multi/libboost_context-mt-d-x64-1_70.so
boost-install.generate-cmake-variant- /scratch4/BMC/gsd-hpcs/Christopher.W.Harrop/bass-develop/opt/boost/1.70.0/pgi/18.5/lib/cmake/boost_context-1.70.0/libboost_context-variant-mt-d-x64-1_70-shared.cmake
common.copy /scratch4/BMC/gsd-hpcs/Christopher.W.Harrop/bass-develop/opt/boost/1.70.0/pgi/18.5/lib/libboost_context-mt-d-x64-1_70.so
pgi.link.dll bin.v2/libs/coroutine/build/pgi/debug/threadapi-pthread/threading-multi/libboost_coroutine-mt-d-x64-1_70.so
boost-install.generate-cmake-variant- /scratch4/BMC/gsd-hpcs/Christopher.W.Harrop/bass-develop/opt/boost/1.70.0/pgi/18.5/lib/cmake/boost_coroutine-1.70.0/libboost_coroutine-variant-mt-d-x64-1_70-shared.cmake
common.copy /scratch4/BMC/gsd-hpcs/Christopher.W.Harrop/bass-develop/opt/boost/1.70.0/pgi/18.5/lib/libboost_coroutine-mt-d-x64-1_70.so
...failed updating 15 targets...
...skipped 18 targets...
...updated 17850 targets…
======================

Not everything built, but I’m much closer. I did still get the "No best alternative for libs/context/build/asm_sources” and lots of "next alternative: required properties:…not matched” messages. I only saw warnings in the compile output, no errors. I’m not sure how to figure out what failed to build and what is missing:

+ export BUILD_TYPE=complete
+ BUILD_TYPE=complete
+ export LIBRARY_NAME=versioned
+ LIBRARY_NAME=versioned
+ export LIBRARY_TARGETS=shared,static
+ LIBRARY_TARGETS=shared,static
+ ./b2 -j 12 --build-type=complete --layout=versioned --target=shared,static toolset=pgi install
Performing configuration checks

    - default address-model : 64-bit
    - default architecture : x86
error: No best alternative for libs/context/build/asm_sources
    next alternative: required properties: <abi>aapcs <address-model>32 <architecture>arm <binary-format>elf <threading>multi <toolset>clang
        not matched

======================

Chris

>
>> Performing configuration checks
>>
>> - default address-model : none
>> - default architecture : none
>> /scratch4/BMC/gsd-hpcs/Christopher.W.Harrop/bass-develop/build/boost/1.70.0/pgi/18.5/tools/build/src/tools/common.jam:977: in toolset-tag
>> *** argument error
>> * rule numbers.less ( n1 n2 )
>> * called with: ( 4 )
>> * missing argument n2
>>
> In Christ,
> Steven Watanabe
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net