Boost logo

Boost Testing :

Subject: [Boost-testing] Clang with -stdlib=libc++ on linux
From: Belcourt, Kenneth (kbelco_at_[hidden])
Date: 2012-07-07 13:59:22


Hi,

Most of the nightly tests for Clang trunk with c++11 and libc++ are failing with this error message.

-bash-4.1$ "/scratch/kbelco/llvm_linux/build/Release+Asserts/bin/clang++" -c -x c++ -O0 -g -std=c++11 -stdlib=libc++ -fno-inline -Wall -pedantic -g -fPIC -std=c++11 -stdlib=libc++ -DBOOST_ALL_NO_LIB=1 -DBOOST_REGEX_DYN_LINK=1 -I"../boost" -o "/scratch/kbelco/boost/results/boost/bin.v2/libs/regex/build/clang-linux-trunk/debug/c_regex_traits.o" "../boost/libs/regex/build/../src/c_regex_traits.cpp"

In file included from ../boost/libs/regex/build/../src/c_regex_traits.cpp:22:
In file included from ../boost/boost/config.hpp:40:
../boost/boost/config/select_stdlib_config.hpp:18:12: fatal error: 'cstddef' file not found
# include <cstddef>
           ^
1 error generated.

Here's more detail about what clang is doing.

-bash-4.1$ "/scratch/kbelco/llvm_linux/build/Release+Asserts/bin/clang++" -### -c -x c++ -O0 -g -std=c++11 -stdlib=libc++ -fno-inline -Wall -pedantic -g -fPIC -std=c++11 -stdlib=libc++ -DBOOST_ALL_NO_LIB=1 -DBOOST_REGEX_DYN_LINK=1 -I"../boost" -o "/scratch/kbelco/boost/results/boost/bin.v2/libs/regex/build/clang-linux-trunk/debug/c_regex_traits.o" "../boost/libs/regex/build/../src/c_regex_traits.cpp"

clang version 3.2 (trunk)
Target: x86_64-unknown-linux-gnu
Thread model: posix
 "/scratch/kbelco/llvm_linux/build/Release+Asserts/bin/clang" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-obj" "-mrelax-all" "-disable-free" "-main-file-name" "c_regex_traits.cpp" "-pic-level" "2" "-mdisable-fp-elim" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-target-linker-version" "2.20.51.0.2" "-momit-leaf-frame-pointer" "-g" "-coverage-file" "/scratch/kbelco/boost/results/boost/bin.v2/libs/regex/build/clang-linux-trunk/debug/c_regex_traits.o" "-resource-dir" "/scratch/kbelco/llvm_linux/build/Release+Asserts/bin/../lib/clang/3.2" "-D" "BOOST_ALL_NO_LIB=1" "-D" "BOOST_REGEX_DYN_LINK=1" "-I" "../boost" "-fmodule-cache-path" "/var/tmp/clang-module-cache" "-internal-isystem" "/usr/include/c++/v1" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/scratch/kbelco/llvm_linux/build/Release+Asserts/bin/../lib/clang/3.2/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-O0" "-Wall" "-pedantic" "-std=c++11" "-fdeprecated-macro" "-fdebug-compilation-dir" "/scratch/kbelco/boost/results" "-ferror-limit" "19" "-fmessage-length" "153" "-mstackrealign" "-fno-inline" "-fobjc-runtime=gcc" "-fcxx-exceptions" "-fexceptions" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-o" "/scratch/kbelco/boost/results/boost/bin.v2/libs/regex/build/clang-linux-trunk/debug/c_regex_traits.o" "-x" "c++" "../boost/libs/regex/build/../src/c_regex_traits.cpp"

Anyone come across this problem before, know how to fix it?

-- Noel


Boost-testing list run by mbergal at meta-comm.com