Opened 10 years ago

Closed 10 years ago

#7613 closed Bugs (fixed)

tools_bb does not respect user-config.jam

Reported by: tropikhajma@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: build
Version: Boost 1.51.0 Severity: Problem
Keywords: Cc:

Description

I want to run the regression tests on Solaris 11 using Solaris Studio 12.3 and the Apache stdcxx library (part of the OS). Even though I have $HOME/user-config.jam with "using sun : : : <cxxflags>-library=stdcxx4 <linkflags>-library=stdcxx4 ;" in it, the build fails with the below error, indicating that some part of the regression tests does not respect the user-config file.

To workaround it, I had to open tools_bb/tools/sun.jam, replace stlport4 with stdcxx4 and rerun run.py.

$ python run.py --runner=hajma --toolsets=sun --pjl-toolset=sun --local=/export/home/tester/Downloads/boost_1_51_0.tar.bz2 ...

notice: Loading user-config configuration file 'user-config.jam' from '/home/tester'. notice: will use 'CC' for sun, condition <toolset>sun notice: iostreams: using prebuilt zlib notice: iostreams: using prebuilt bzip2 notice: [python-cfg] Configuring python... notice: [python-cfg] Checking interpreter command "python"... notice: [python-cfg] running command 'python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...requested configuration matched! notice: [python-cfg] Details of this Python configuration: notice: [python-cfg] interpreter command: "python" notice: [python-cfg] include path: "/usr/include/python2.6" notice: [python-cfg] library path: "/usr/lib/python2.6/config" "/usr/lib" ...patience... ...found 522 targets... ...updating 31 targets... common.mkdir bin

mkdir -p "bin"

common.mkdir bin/sun

mkdir -p "bin/sun"

common.mkdir bin/sun/release

mkdir -p "bin/sun/release"

sun.compile.c++ bin/sun/release/process_jam_log.o

"CC" -library=stdcxx4 -xO4 -erroff=%none -KPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -D_CRT_SECURE_NO_WARNINGS -I"/home/tester/boostregression20121020/boost" -c -o "bin/sun/release/process_jam_log.o" "../src/process_jam_log.cpp"

sun.compile.c++ bin/sun/release/tiny_xml.o

"CC" -library=stdcxx4 -xO4 -erroff=%none -KPIC -DBOOST_ALL_NO_LIB=1 -DNDEBUG -D_CRT_SECURE_NO_WARNINGS -I"/home/tester/boostregression20121020/boost" -c -o "bin/sun/release/tiny_xml.o" "../src/detail/tiny_xml.cpp"

common.mkdir /home/tester/boostregression20121020/boost/bin.v2

mkdir -p "/home/tester/boostregression20121020/boost/bin.v2"

common.mkdir /home/tester/boostregression20121020/boost/bin.v2/libs

mkdir -p "/home/tester/boostregression20121020/boost/bin.v2/libs"

common.mkdir /home/tester/boostregression20121020/boost/bin.v2/libs/filesystem

mkdir -p "/home/tester/boostregression20121020/boost/bin.v2/libs/filesystem"

common.mkdir /home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build

mkdir -p "/home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build"

common.mkdir /home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build/sun

mkdir -p "/home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build/sun"

common.mkdir /home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build/sun/release

mkdir -p "/home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build/sun/release"

common.mkdir /home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build/sun/release/link-static

mkdir -p "/home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build/sun/release/link-static"

common.mkdir /home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build/sun/release/link-static/stdlib-sun-stlport

mkdir -p "/home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build/sun/release/link-static/stdlib-sun-stlport"

sun.compile.c++ /home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build/sun/release/link-static/stdlib-sun-stlport/codecvt_error_category.o

"CC" -library=stlport4 -library=stdcxx4 -xO4 -erroff=%none -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"/home/tester/boostregression20121020/boost" -c -o "/home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build/sun/release/link-static/stdlib-sun-stlport/codecvt_error_category.o" "/home/tester/boostregression20121020/boost/libs/filesystem/src/codecvt_error_category.cpp"

CC: -library=stdcxx4 cannot be used with -library=stlport4 ...failed sun.compile.c++ /home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build/sun/release/link-static/stdlib-sun-stlport/codecvt_error_category.o... sun.compile.c++ /home/tester/boostregression20121020/boost/bin.v2/libs/filesystem/build/sun/release/link-static/stdlib-sun-stlport/operations.o

Change History (3)

comment:1 by Gennadiy Rozental, 10 years ago

Component: testbuild
Owner: changed from Gennadiy Rozental to Vladimir Prus

comment:2 by Steven Watanabe, 10 years ago

Jamroot forces <stdlib>sun-stlport. This should probably be removed now.

comment:3 by Steven Watanabe, 10 years ago

Resolution: fixed
Status: newclosed

(In [83631]) Don't force the standard library to be stlport for sun. It interferes with anyone who wants to use stdcxx. Fixes #7613.

Note: See TracTickets for help on using tickets.