Boost logo

Boost Users :

Subject: [Boost-users] Errors compiling Boost.Log on OS X
From: Rich E (reakinator_at_[hidden])
Date: 2013-04-26 22:58:48


Hi all,

I'm trying to build the recently-added-to-trunk Boost.Log on OS X and
smacking into an error when it includes unsupported.cpp. I've google'd
around a bit and seen from the macports guys that Boost.Context doesn't
currently build for 32-bit architecture, but I can't even get it to build
for just 64-bit. Has anyone had success yet with Boost.Log on OS X, or has
some insight into how to get this working before it makes it into 1.54?

Building with clang against libc++ / C++11, here is the error:

clang-darwin.compile.c++
bin.v2/libs/atomic/build/clang-darwin-osx/release/link-static/threading-multi/lockpool.o

    "xcrun" "clang" "-stdlib=libc++" "-std=c++11" -x c++ -O3 -O3
-finline-functions -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1
-DBOOST_ATOMIC_SOURCE -DNDEBUG -I"." -c -o
"bin.v2/libs/atomic/build/clang-darwin-osx/release/link-static/threading-multi/lockpool.o"
"libs/atomic/src/lockpool.cpp"

RmTemps
bin.v2/libs/atomic/build/clang-darwin-osx/release/link-static/threading-multi/libboost_atomic.a(clean)

    rm -f
"bin.v2/libs/atomic/build/clang-darwin-osx/release/link-static/threading-multi/libboost_atomic.a"

clang-darwin.archive
bin.v2/libs/atomic/build/clang-darwin-osx/release/link-static/threading-multi/libboost_atomic.a

  "ar" rc
"bin.v2/libs/atomic/build/clang-darwin-osx/release/link-static/threading-multi/libboost_atomic.a"
"bin.v2/libs/atomic/build/clang-darwin-osx/release/link-static/threading-multi/lockpool.o"
  "ranlib" -cs
"bin.v2/libs/atomic/build/clang-darwin-osx/release/link-static/threading-multi/libboost_atomic.a"

common.copy stage/lib/libboost_atomic.a

    cp
"bin.v2/libs/atomic/build/clang-darwin-osx/release/link-static/threading-multi/libboost_atomic.a"
 "stage/lib/libboost_atomic.a"

clang-darwin.compile.c++
bin.v2/libs/system/build/clang-darwin-osx/release/link-static/threading-multi/error_code.o

    "xcrun" "clang" "-stdlib=libc++" "-std=c++11" -x c++ -O3 -O3
-finline-functions -Wno-inline -Wall -pedantic -DBOOST_ALL_NO_LIB=1
-DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"." -c -o
"bin.v2/libs/system/build/clang-darwin-osx/release/link-static/threading-multi/error_code.o"
"libs/system/src/error_code.cpp"

RmTemps
bin.v2/libs/system/build/clang-darwin-osx/release/link-static/threading-multi/libboost_system.a(clean)

    rm -f
"bin.v2/libs/system/build/clang-darwin-osx/release/link-static/threading-multi/libboost_system.a"

clang-darwin.archive
bin.v2/libs/system/build/clang-darwin-osx/release/link-static/threading-multi/libboost_system.a

  "ar" rc
"bin.v2/libs/system/build/clang-darwin-osx/release/link-static/threading-multi/libboost_system.a"
"bin.v2/libs/system/build/clang-darwin-osx/release/link-static/threading-multi/error_code.o"
  "ranlib" -cs
"bin.v2/libs/system/build/clang-darwin-osx/release/link-static/threading-multi/libboost_system.a"

common.copy stage/lib/libboost_system.a

    cp
"bin.v2/libs/system/build/clang-darwin-osx/release/link-static/threading-multi/libboost_system.a"
 "stage/lib/libboost_system.a"

clang-darwin.compile.c++
bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/chrono.o

    "xcrun" "clang" "-stdlib=libc++" "-std=c++11" -x c++ -O3 -Wextra
-Wno-long-long -Wno-variadic-macros -pedantic -O3 -finline-functions
-Wno-inline -Wall -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_All_STATIC_LINK=1
-DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"." -c
-o
"bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/chrono.o"
"libs/chrono/src/chrono.cpp"

clang-darwin.compile.c++
bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/thread_clock.o

    "xcrun" "clang" "-stdlib=libc++" "-std=c++11" -x c++ -O3 -Wextra
-Wno-long-long -Wno-variadic-macros -pedantic -O3 -finline-functions
-Wno-inline -Wall -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_All_STATIC_LINK=1
-DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"." -c
-o
"bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/thread_clock.o"
"libs/chrono/src/thread_clock.cpp"

clang-darwin.compile.c++
bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/process_cpu_clocks.o

    "xcrun" "clang" "-stdlib=libc++" "-std=c++11" -x c++ -O3 -Wextra
-Wno-long-long -Wno-variadic-macros -pedantic -O3 -finline-functions
-Wno-inline -Wall -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_All_STATIC_LINK=1
-DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"." -c
-o
"bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/process_cpu_clocks.o"
"libs/chrono/src/process_cpu_clocks.cpp"

RmTemps
bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/libboost_chrono.a(clean)

    rm -f
"bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/libboost_chrono.a"

clang-darwin.archive
bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/libboost_chrono.a

  "ar" rc
"bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/libboost_chrono.a"
"bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/chrono.o"
"bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/thread_clock.o"
"bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/process_cpu_clocks.o"
  "ranlib" -cs
"bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/libboost_chrono.a"

/usr/bin/ranlib: file:
bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/libboost_chrono.a(thread_clock.o)
has no symbols
ranlib: file:
bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/libboost_chrono.a(thread_clock.o)
has no symbols
common.copy stage/lib/libboost_chrono.a

    cp
"bin.v2/libs/chrono/build/clang-darwin-osx/release/link-static/threading-multi/libboost_chrono.a"
 "stage/lib/libboost_chrono.a"

clang-darwin.compile.c++
bin.v2/libs/context/build/clang-darwin-osx/release/link-static/threading-multi/unsupported.o

    "xcrun" "clang" "-stdlib=libc++" "-std=c++11" -x c++ -O3 -O3
-finline-functions -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c
-o
"bin.v2/libs/context/build/clang-darwin-osx/release/link-static/threading-multi/unsupported.o"
"libs/context/src/unsupported.cpp"

libs/context/src/unsupported.cpp:7:2: error: "platform not supported"
#error "platform not supported"
 ^
1 error generated.
...failed updating 1 target...



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