Boost logo

Boost-Build :

Subject: [Boost-build] problem with target alternatives -> No best alternative for ...
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2010-03-27 06:27:43


Hi,

following the 'Boost.Build Handbook' I tried to provide target
alternatives. Unfortunately I get

error: No best alternative for ../../../libs/fiber/build/context_sources
     next alternative: required properties: <address-model>32
<architecture>x86 <linkage>ELF <threading>multi <toolset>gcc
         not matched
     next alternative: required properties: <address-model>64
<architecture>x86 <linkage>ELF <threading>multi <toolset>gcc
         not matched
     next alternative: required properties: <address-model>32
<architecture>x86 <assembler>ml <target-os>windows <threading>multi
<toolset>msvc
         not matched
     next alternative: required properties: <on-unix>true <threading>multi
         not matched

How can I get the Jamfile working?

thx, Oliver

import feature ;
import modules ;

path-constant here : . ;
modules.poke : EXTRA_PYTHONPATH : $(here) ;
import pyutils ;

project boost/fiber
     : source-location
         ../src
     : requirements
         <library>/boost/thread//boost_thread
         <library>/boost/system//boost_system
         <link>static:<define>BOOST_FIBER_BUILD_LIB=1
         <link>shared:<define>BOOST_FIBER_BUILD_DLL=1
         <threading>multi
     : default-build
         <threading>multi
     ;

feature.feature linkage
     : ELF
       MACH-O
     : propagated
     ;

feature.set-default linkage
     : [ pyutils.linkage ] ;

alias context_sources
    : detail/fcontext_i386_sysv_gas.asm
      detail/info_base_fcontext.cpp
    : <address-model>32
      <architecture>x86
      <linkage>ELF
      <toolset>gcc
    ;

alias context_sources
    : detail/fcontext_x86_64_sysv_gas.asm
      detail/info_base_fcontext.cpp
    : <address-model>64
      <architecture>x86
      <linkage>ELF
      <toolset>gcc
    ;

alias context_sources
    : detail/fcontext_i386_windows_masm.asm
      detail/info_base_fcontext.cpp
    : <address-model>32
      <architecture>x86
      <assembler>ml
      <target-os>windows
      <toolset>msvc
    ;

alias context_sources
    : detail/info_base_ucontext.cpp
    : <on-unix>true
    ;

explicit context_sources ;

alias common_sources
     : auto_reset_event.cpp
       barrier.cpp
       condition.cpp
       count_down_event.cpp
       fiber.cpp
       manual_reset_event.cpp
       mutex.cpp
       round_robin.cpp
       spin/auto_reset_event.cpp
       spin/barrier.cpp
       spin/condition.cpp
       spin/count_down_event.cpp
       spin/manual_reset_event.cpp
       spin/mutex.cpp
       strategy.cpp
     ;

lib boost_fiber
     : common_sources
       context_sources
     : <link>shared:<define>BOOST_FIBER_USE_DLL=1
       <link>static:<define>BOOST_FIBER_USE_LIB=1
     ;

boost-install boost_fiber ;


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk