[prev in list] [next in list] [prev in thread] [next in thread]
List: boost-build
Subject: [Boost-build] error: No best alternative for ./std_libs
From: Avi Bahra <avibahra () googlemail ! com>
Date: 2010-04-26 10:11:06
Message-ID: t2waf1b101f1004260311j93dae54frf419033de72c0a69 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I am trying to implement conditional includes
of sources/lib's depending on the tool set i.e
Take the following jamfile snippet
....
# common libs
lib pthread ;
# On HPUX we need to add standard libs.
lib std_v2 ;
lib stream ;
lib Csup ;
lib unwind ;
lib m ;
alias std_libs : pthread : <toolset>gcc ;
alias std_libs : pthread : <toolset>vacpp ;
alias std_libs : pthread std_v2 stream Csup unwind m : <toolset>acc ;
python-extension ecf_ext : [ glob src/*.cpp ]
/theCore//core
/site-config//boost_system
/site-config//boost_thread
/site-config//boost_serialization
/site-config//boost_filesystem
/site-config//boost_program_options
/site-config//boost_datetime
std_libs
: <variant>debug:<define>DEBUG
;
I am using alias std_libs to conditionally add additional libs on HPUX.
My site-config.jam on AIX look like:
......
project site-config
: requirements <include>$(BOOST_ROOT)
: requirements <threading>multi
;
using vacpp ;
using testing ;
Originally when I tested this on Linux, it worked a charm. However on
AIX and HPUX, I get messages like:
error: No best alternative for ./std_libs
next alternative: required properties: <threading>multi <toolset>gcc
not matched
next alternative: required properties: <threading>multi <toolset>vacpp
not matched
next alternative: required properties: <threading>multi <toolset>acc
not matched
...patience...
I don't understand why it cant make the correct choice, as it has all
the information, i.e for toolset and threading ?
Is there any better way of achieving conditional source/libs
dependent on toolset, apart from specifying on the command line ?
Any help on this matter appreciated.
Best regards,
Ta,
Avi
[Attachment #5 (text/html)]
I am trying to implement conditional includes<br>of sources/lib's depending on \
the tool set i.e<br>Take the following jamfile snippet<br><br>....<br># common \
libs<br>lib pthread ;<br><br># On HPUX we need to add standard libs. <br> lib \
std_v2 ;<br>lib stream ;<br>lib Csup ;<br>lib unwind ;<br>lib m ;<br><br>alias \
std_libs : pthread : <toolset>gcc ;<br>alias std_libs : pthread : \
<toolset>vacpp ;<br>alias std_libs : pthread std_v2 stream Csup unwind m : \
<toolset>acc ;<br> <br>python-extension ecf_ext : [ glob src/*.cpp ]<br> \
/theCore//core<br> /site-config//boost_system<br> \
/site-config//boost_thread<br> /site-config//boost_serialization<br> \
/site-config//boost_filesystem<br> /site-config//boost_program_options<br> \
/site-config//boost_datetime<br> std_libs<br> : \
<variant>debug:<define>DEBUG<br> ;<br clear="all"><br>I am \
using alias std_libs to conditionally add additional libs on HPUX.<br> <br>My \
site-config.jam on AIX look like:<br>......<br>project site-config<br> : \
requirements <include>$(BOOST_ROOT)<br> : requirements \
<threading>multi<br> ;<br>using vacpp ;<br>using testing ;<br> \
<br><br>Originally when I tested this on Linux, it worked a charm. However on<br>AIX \
and HPUX, I get messages like:<br><br>error: No best alternative for ./std_libs<br> \
next alternative: required properties: <threading>multi <toolset>gcc<br> \
not matched<br> next alternative: required properties: <threading>multi \
<toolset>vacpp<br> not matched<br> next alternative: required \
properties: <threading>multi <toolset>acc<br> not \
matched<br>...patience...<br><br>I don't understand why it cant make the correct \
choice, as it has all<br>the information, i.e for toolset and threading ? <br><br>Is \
there any better way of achieving conditional source/libs<br> dependent on toolset, \
apart from specifying on the command line ?<br><br>Any help on this matter \
appreciated.<br><br> Best regards,<br>Ta,<br> Avi<br><br>
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic