Hi All,

I'm catching an error I've never seen before using Cmake/Clang
combination. I believe this is due to Cmake because I've never seen
Clang produce the error under make/gmake. Does anyone have any ideas
about it?

Jeff

==========================================

Output from build process:

...
[ 43%] Building CXX object
libs/network/test/http/CMakeFiles/cpp-netlib-http-client_get_different_port_test.dir/client_get_different_port_test.cpp.o
cd /home/jeffrey/Desktop/cpp-netlib-build/libs/network/test/http &&
/usr/local/bin/clang++   -DBOOST_NETWORK_DEBUG
-DBOOST_NETWORK_ENABLE_HTTPS -DBOOST_NETWORK_ENABLE_HTTPS
-fsanitize=address -fsanitize=undefined -fno-sanitize=vptr  -g
-I/usr/local/include -I/home/jeffrey/Desktop/cpp-netlib-0.10.1    -o
CMakeFiles/cpp-netlib-http-client_get_different_port_test.dir/client_get_different_port_test.cpp.o
-c 
/home/jeffrey/Desktop/cpp-netlib-0.10.1/libs/network/test/http/client_get_different_port_test.cpp
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to
see invocation)
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed
source, and associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/client_get_different_port_test-J7UYRZ.cpp
clang: note: diagnostic msg: /tmp/client_get_different_port_test-J7UYRZ.sh
clang: note: diagnostic msg:
********************
make[2]: *** 
[libs/network/test/http/CMakeFiles/cpp-netlib-http-client_get_different_port_test.dir/client_get_different_port_test.cpp.o]
Error 254
make[2]: Leaving directory `/home/jeffrey/Desktop/cpp-netlib-build'
make[1]: *** 
[libs/network/test/http/CMakeFiles/cpp-netlib-http-client_get_different_port_test.dir/all]
Error 2
make[1]: Leaving directory `/home/jeffrey/Desktop/cpp-netlib-build'
make: *** [all] Error 2

==========================================

Recipe to setup cpp-netlib project:

export CC="/usr/local/bin/clang"; export CXX="/usr/local/bin/clang++"
export CFLAGS="-fsanitize=address -fsanitize=undefined"; export
CXXFLAGS="-fsanitize=address -fsanitize=undefined -fno-sanitize=vptr"
export LD_LIBRARY_PATH=/usr/local/lib

# Unpack cpp-netlib
tar -xzf cpp-netlib-0.10.1.tar.gz

# Build in different directory
mkdir cpp-netlib-build
cd cpp-netlib-build

cmake -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_C_COMPILER="/usr/local/bin/clang"
-DCMAKE_CXX_COMPILER="/usr/local/bin/clang++" ../cpp-netlib-0.10.1

make

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel

Reply via email to