Open ivilata opened 6 years ago
Hi, I am running in somewhat similar issues while trying to cross-compile for a debian running on beaglebone black.
`Performing configuration checks
- default address-model : 32-bit (cached)
- default architecture : arm (cached)
Building the Boost C++ Libraries.
error: No best alternative for libs/context/build/asm_sources
next alternative: required properties:
May someone what you actually did to fix this? Or some place I could get additional help? I really need this :D
Cheers Stephan
Okay, fixed it by compiling with following options
./b2 --prefix=~/boostForBBB/ --without-context --without-coroutine --without-fiber --without-python --address-model=32 --stagedir=~/boostForBBBstage-arm-gnueabihf-g++/ -j3 -toolset=arm-linux-gnueabihf-g++ -threading=multi
@bjoekeldude : What exactly did you modify on the command line or jam file to fix this error? I'm tryin gto compile for armv7a and am constatntly getting this error "No best alternative for..."
(This might be related with #122, although the errors that I see are more similar to those in #69.)
I'm running the build script like this in a Debian Testing Vagrant instance:
I see that
bjam
gets invoked like this:The output shows this (as in #69):
Boost still seems to build (the script invocation doesn't report an error code), yet while linking the static libraries with other code, I get this:
It looks like the assembler part of the context library were not built at all. Hardcoding
architecture=arm abi=aapcs binary-format=elf
inbjam
's invocation (see) seemed to do the trick, but it's obviously not a proper fix. TurningTOOLSET_ARCH=clang-armeabiv7a
intoTOOLSET_ARCH=clang-arm
before invokingbjam
made the "No best alternative" error go away butx86_64
libraries were built instead (which may be what's seen in #122).If you need more info, please ask for it. Thanks a lot!