/usr/bin/clang++ -stdlib=libc++ -I/usr/local/include/c++/v1/tr1
-L/usr/local/lib/c++ -v
CMakeFiles/cmTryCompileExec2359982921.dir/testCXXCompiler.cxx.o -o
cmTryCompileExec2359982921
"/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o cmTryCompileExec2359982921 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/local/lib/c++ -L/usr/lib CMakeFiles/cmTryCompileExec2359982921.dir/testCXXCompiler.cxx.o -lc++ -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o
/usr/bin/ld: cannot find -lc++root@BSD-san-2:/home/Project-OSRM/build # uname -a
FreeBSD BSD-san-2 9.3-RELEASE FreeBSD 9.3-RELEASE #0 r268512: Thu Jul 10 23:44:39 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
root@BSD-san-2:/home/Project-OSRM/build # clang++ -v
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd9.3
Thread model: posix
Selected GCC installation:
root@BSD-san-2:/home/Project-OSRM/build # pkg info libc++
libc++-208080
Name : libc++
Version : 208080
Installed on : Thu Jul 2 12:01:57 OMST 2015
Origin : devel/libc++
Architecture : freebsd:9:x86:64
Prefix : /usr/local
Categories : devel
Licenses :
Maintainer : dim@FreeBSD.org
WWW : http://libcxx.llvm.org/
Comment : LLVM C++ standard library with c++11 support
Shared Libs required:
libcxxrt.so
Shared Libs provided:
libc++.so.1
Annotations :
Flat size : 7.56MiB
Description :
libc++ is a new implementation of the C++ standard library made by the
llvm project targeting C++11.
WWW: http://libcxx.llvm.org/cmake .. -DCMAKE_CXX_COMPILER_ID=Clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_FLAGS='-stdlib=libc++ -I/usr/local/include/c++/v1/tr1 -L/usr/local/lib/c++ -v' "/usr/bin/clang++" -cc1 -triple x86_64-unknown-freebsd9.3 -emit-obj -disable-free -main-file-name src.cxx -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -v -coverage-file /usr/home/Project-OSRM/build/CMakeFiles/CMakeTmp/CMakeFiles/cmTryCompileExec3637790593.dir/src.cxx.o -resource-dir /usr/bin/../lib/clang/3.4.1 -D LUABIND51_WORKS -D NDEBUG -I
/usr/local/include/c++/v1/tr1 -I /usr/local/include -I /usr/local/include/luabind -I /usr/local/include/lua51 -internal-isystem /usr/include/c++/4.2 -internal-isystem /usr/include/c++/4.2/backward -O3 -Wall -Wun
reachable-code -pedantic -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /usr/home/Project-OSRM/build/CMakeFiles/CMakeTmp -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gnustep -fcxx-exce
ptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o CMakeFiles/cmTryCompileExec3637790593.dir/src.cxx.o -x c++ /home/Project-OSRM/build/CMakeFiles/CMakeTmp/src.cxx
clang -cc1 version 3.4.1 based upon LLVM 3.4.1 default target x86_64-unknown-freebsd9.3
ignoring nonexistent directory "/usr/bin/../lib/clang/3.4.1/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include/c++/v1/tr1
/usr/local/include
/usr/local/include/luabind
/usr/local/include/lua51
/usr/include/c++/4.2
/usr/include/c++/4.2/backward
/usr/include/clang/3.4.1
/usr/include
End of search list.
In file included from /home/Project-OSRM/build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /usr/local/include/luabind/luabind.hpp:28:
In file included from /usr/local/include/luabind/class.hpp:93:
In file included from /usr/local/include/luabind/back_reference.hpp:27:
In file included from /usr/local/include/luabind/wrapper_base.hpp:31:
In file included from /usr/local/include/luabind/detail/call_member.hpp:30:
In file included from /usr/local/include/luabind/detail/convert_to_lua.hpp:28:
In file included from /usr/local/include/luabind/detail/policy.hpp:51:
/usr/local/include/luabind/detail/object_rep.hpp:77:11: error: no member named 'malloc' in namespace 'std'; did you mean 'valloc'?
return std::malloc(size);
^~~~~~~~~~~
valloc
/usr/include/unistd.h:581:7: note: 'valloc' declared here
void *valloc(size_t); /* obsoleted by malloc() */
^
In file included from /home/Project-OSRM/build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /usr/local/include/luabind/luabind.hpp:28:
In file included from /usr/local/include/luabind/class.hpp:93:
In file included from /usr/local/include/luabind/back_reference.hpp:27:
In file included from /usr/local/include/luabind/wrapper_base.hpp:31:
In file included from /usr/local/include/luabind/detail/call_member.hpp:30:
In file included from /usr/local/include/luabind/detail/convert_to_lua.hpp:28:
In file included from /usr/local/include/luabind/detail/policy.hpp:51:
/usr/local/include/luabind/detail/object_rep.hpp:84:9: error: no type named 'free' in namespace 'std'
std::free(storage);
~~~~~^"/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o cmTryCompileExec3848589959 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib CMakeFiles/cmTryCompileExec3848589959.dir/testCXXCompiler.cxx.o -lc++ -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o
/usr/bin/ld: cannot find -lc++ cmake .. -DCMAKE_CXX_COMPILER_ID=Clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_FLAGS='-stdlib=libc++ -I/usr/local/include/c++/v1/tr1 -v'cmake .. -DCMAKE_CXX_COMPILER_ID=Clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_FLAGS='-I/usr/local/include/c++/v1/tr1 -v'/usr/local/include/luabind/detail/object_rep.hpp:84:9: error: no type named 'free' in namespace 'std'
std::free(storage);
~~~~~^