Hi All, I'm trying to get some tools on cpp-netlib for basic acceptance testing. The tools are part of Clang 3.3, and include the analyzer (static checking) and sanitizers (dynamic checking). When I configure as follows:
$ export CC=/usr/local/bin/clang CXX=/usr/local/bin/clang++ $ /usr/local/bin/scan-build/scan-build --use-analyzer=/usr/local/bin/clang++ cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ The build system enters into an endless loop of re-configures (shown below). I also tried the following, which produces the same endless loop. ccc-analyzer is what scan-build uses to interpose compilers: /usr/local/bin/scan-build/scan-build --use-analyzer=/usr/local/bin/clang++ cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/local/bin/scan-build/ccc-analyzer -DCMAKE_CXX_COMPILER=/usr/local/bin/scan-build/c++-analyzer I'm not familiar enough with cmake to know how to avoid its problems. Any ideas how to side step cmake or its problems here? Jeff scan-build: Using '/usr/local/bin/clang' for static analysis -- Boost version: 1.49.0 -- Found the following Boost libraries: -- unit_test_framework -- system -- regex -- date_time -- thread -- filesystem -- program_options -- chrono -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1c") -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Boost version: 1.49.0 -- Found the following Boost libraries: -- unit_test_framework -- Configuring done You have changed variables that require your cache to be deleted. Configure will be re-run and you may have to reset some variables. The following variables have changed: CMAKE_C_COMPILER= clang CMAKE_CXX_COMPILER= clang++ -- Boost version: 1.49.0 -- Found the following Boost libraries: -- unit_test_framework -- system -- regex -- date_time -- thread -- filesystem -- program_options -- chrono -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1c") -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Boost version: 1.49.0 -- Found the following Boost libraries: -- unit_test_framework -- Configuring done You have changed variables that require your cache to be deleted. Configure will be re-run and you may have to reset some variables. The following variables have changed: CMAKE_C_COMPILER= clang CMAKE_CXX_COMPILER= clang++ -- Boost version: 1.49.0 -- Found the following Boost libraries: -- unit_test_framework -- system -- regex -- date_time -- thread -- filesystem -- program_options -- chrono -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1c") -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Boost version: 1.49.0 -- Found the following Boost libraries: -- unit_test_framework -- Configuring done ... ------------------------------------------------------------------------------ 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
