Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong result of cxx_feature_check depends of CMAKE_CXX_FLAGS in top CMakeList.txt file #50

Closed
Gluttton opened this issue Sep 29, 2014 · 7 comments
Assignees

Comments

@Gluttton
Copy link

I have the Project with structure like this:

.
├── CMakeLists.txt
├── externals
│   ├── benchmark
│   └── gmock
├── include
├── src
└── test

My top level CMakeLists.txt has following content:

cmake_minimum_required  (VERSION 2.8)
project                 (MasterProject)

add_subdirectory (src)
add_subdirectory (externals/benchmark)
add_subdirectory (externals/gmock)

My workflow looks like and it works good:

mkdir build
cd build
cmake ..
make

But when I add warning options in the top level CMakeLists.txt:

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wzero-as-null-pointer-constant")

I will get error on configuration stage:

$ cmake ..
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- 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  
-- Performing Test HAVE_FLAG_CXX_14
-- Performing Test HAVE_FLAG_CXX_14 - Failed
-- Performing Test HAVE_FLAG_CXX_11
-- Performing Test HAVE_FLAG_CXX_11 - Success
-- Performing Test HAVE_FLAG_CXX_0X
-- Performing Test HAVE_FLAG_CXX_0X - Success
-- Performing Test HAVE_WALL
-- Performing Test HAVE_WALL - Success
-- Performing Test HAVE_WSHADOW
-- Performing Test HAVE_WSHADOW - Success
-- Performing Test HAVE_WERROR
-- Performing Test HAVE_WERROR - Success
-- Performing Test HAVE_PEDANTIC_ERRORS
-- Performing Test HAVE_PEDANTIC_ERRORS - Success
-- Performing Test HAVE_FNO_STRICT_ALIASING
-- Performing Test HAVE_FNO_STRICT_ALIASING - Success
-- git Version: v0.0.0
-- Version: 0.0.0
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- Failed
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- Failed
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- Failed
CMake Error at externals/benchmark/src/CMakeLists.txt:12 (message):
  Failed to determine the source files for the regular expression backend


-- Configuring incomplete, errors occurred!
See also "/home/gluttton/benchmark/build/CMakeFiles/CMakeOutput.log".
See also "/home/gluttton/benchmark/build/CMakeFiles/CMakeError.log".
@dmah42
Copy link
Member

dmah42 commented Oct 4, 2014

I think this means that our test for regex is failing with zero-as-a-null-pointer-constant. Could you attach the CMakeOutput.log and CMakeError.log files please?

@Gluttton
Copy link
Author

Gluttton commented Oct 5, 2014

I think this means that our test for regex is failing with zero-as-a-null-pointer-constant.

Yes, you are right. It' caused because before launch test for regex CMAKE_CXX_FLAGS from the top project and from the benchmark project had had merged, as result test launched with combinations of flags -Wzero-as-a-null-pointer-constant -Werror. This error can be avoided by just changing sequence of directives in the top CMakeLists.txt, but this isn't obvious solution for users.

cmake_minimum_required  (VERSION 2.8)
project                 (MasterProject)

add_subdirectory (externals/benchmark)

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wzero-as-null-pointer-constant")

add_subdirectory (src)
add_subdirectory (externals/gmock)

Another question is this expected behaviour or some kind of error. As far as intention of test for regex is realizing of support of regex but not compile piece of code, in my opinion this is some kind of error. I believe that it would be better if in the benchmark project -Werror flag added after processing tests.

Could you attach the CMakeOutput.log and CMakeError.log files please?

CMakeError.log:

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3953001650/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3953001650.dir/build.make CMakeFiles/cmTryCompileExec3953001650.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3953001650.dir/CheckSymbolExists.c.o
/usr/bin/cc    -o CMakeFiles/cmTryCompileExec3953001650.dir/CheckSymbolExists.c.o   -c /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec3953001650
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3953001650.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTryCompileExec3953001650.dir/CheckSymbolExists.c.o  -o cmTryCompileExec3953001650 -rdynamic 
CMakeFiles/cmTryCompileExec3953001650.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec3953001650] Error 1
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec3953001650/fast] Error 2

File /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec2673471904/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2673471904.dir/build.make CMakeFiles/cmTryCompileExec2673471904.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2673471904.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec2673471904.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec2673471904
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2673471904.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec2673471904.dir/CheckFunctionExists.c.o  -o cmTryCompileExec2673471904 -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec2673471904] Error 1
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2673471904/fast] Error 2


Performing C++ SOURCE FILE Test HAVE_FLAG_CXX_14 failed with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec2307068490/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2307068490.dir/build.make CMakeFiles/cmTryCompileExec2307068490.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2307068490.dir/src.cxx.o
/usr/bin/c++    -Wzero-as-null-pointer-constant -DHAVE_FLAG_CXX_14   --std=c++14 -o CMakeFiles/cmTryCompileExec2307068490.dir/src.cxx.o -c /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option '--std=c++14'
make[1]: *** [CMakeFiles/cmTryCompileExec2307068490.dir/src.cxx.o] Error 1
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2307068490/fast] Error 2

Source file was:
int main() { return 0;}

CMakeOutput.log:

The system is: Linux - 3.13.0-36-generic - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc 
Build flags: 
Id flags: 

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is GNU, found in "/home/gluttton/benchmark/build/CMakeFiles/2.8.12.2/CompilerIdC/a.out"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++ 
Build flags: 
Id flags: 

The output was:
0


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in "/home/gluttton/benchmark/build/CMakeFiles/2.8.12.2/CompilerIdCXX/a.out"

Determining if the C compiler works passed with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec23215403/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec23215403.dir/build.make CMakeFiles/cmTryCompileExec23215403.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec23215403.dir/testCCompiler.c.o
/usr/bin/cc    -o CMakeFiles/cmTryCompileExec23215403.dir/testCCompiler.c.o   -c /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec23215403
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec23215403.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTryCompileExec23215403.dir/testCCompiler.c.o  -o cmTryCompileExec23215403 -rdynamic 
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'


Detecting C compiler ABI info compiled with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec4208331672/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec4208331672.dir/build.make CMakeFiles/cmTryCompileExec4208331672.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec4208331672.dir/CMakeCCompilerABI.c.o
/usr/bin/cc    -o CMakeFiles/cmTryCompileExec4208331672.dir/CMakeCCompilerABI.c.o   -c /usr/share/cmake-2.8/Modules/CMakeCCompilerABI.c
Linking C executable cmTryCompileExec4208331672
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4208331672.dir/link.txt --verbose=1
/usr/bin/cc     -v CMakeFiles/cmTryCompileExec4208331672.dir/CMakeCCompilerABI.c.o  -o cmTryCompileExec4208331672 -rdynamic  
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) 
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec4208331672' '-rdynamic' '-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTryCompileExec4208331672 /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. CMakeFiles/cmTryCompileExec4208331672.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'


Parsed C implicit link information from above output:
  link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  ignore line: [Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp]
  ignore line: []
  ignore line: [Run Build Command:/usr/bin/make "cmTryCompileExec4208331672/fast"]
  ignore line: [/usr/bin/make -f CMakeFiles/cmTryCompileExec4208331672.dir/build.make CMakeFiles/cmTryCompileExec4208331672.dir/build]
  ignore line: [make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp']
  ignore line: [/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1]
  ignore line: [Building C object CMakeFiles/cmTryCompileExec4208331672.dir/CMakeCCompilerABI.c.o]
  ignore line: [/usr/bin/cc    -o CMakeFiles/cmTryCompileExec4208331672.dir/CMakeCCompilerABI.c.o   -c /usr/share/cmake-2.8/Modules/CMakeCCompilerABI.c]
  ignore line: [Linking C executable cmTryCompileExec4208331672]
  ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4208331672.dir/link.txt --verbose=1]
  ignore line: [/usr/bin/cc     -v CMakeFiles/cmTryCompileExec4208331672.dir/CMakeCCompilerABI.c.o  -o cmTryCompileExec4208331672 -rdynamic  ]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=/usr/bin/cc]
  ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper]
  ignore line: [Target: x86_64-linux-gnu]
  ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu]
  ignore line: [Thread model: posix]
  ignore line: [gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ]
  ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/]
  ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/:/usr/lib/]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec4208331672' '-rdynamic' '-mtune=generic' '-march=x86-64']
  link line: [ /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTryCompileExec4208331672 /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. CMakeFiles/cmTryCompileExec4208331672.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o]
    arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/collect2] ==> ignore
    arg [--sysroot=/] ==> ignore
    arg [--build-id] ==> ignore
    arg [--eh-frame-hdr] ==> ignore
    arg [-m] ==> ignore
    arg [elf_x86_64] ==> ignore
    arg [--hash-style=gnu] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-export-dynamic] ==> ignore
    arg [-dynamic-linker] ==> ignore
    arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
    arg [-zrelro] ==> ignore
    arg [-o] ==> ignore
    arg [cmTryCompileExec4208331672] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o] ==> ignore
    arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8]
    arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu]
    arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib]
    arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu]
    arg [-L/lib/../lib] ==> dir [/lib/../lib]
    arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu]
    arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
    arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../..]
    arg [CMakeFiles/cmTryCompileExec4208331672.dir/CMakeCCompilerABI.c.o] ==> ignore
    arg [-lgcc] ==> lib [gcc]
    arg [--as-needed] ==> ignore
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [--no-as-needed] ==> ignore
    arg [-lc] ==> lib [c]
    arg [-lgcc] ==> lib [gcc]
    arg [--as-needed] ==> ignore
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [--no-as-needed] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o] ==> ignore
  remove lib [gcc]
  remove lib [gcc_s]
  remove lib [gcc]
  remove lib [gcc_s]
  collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8] ==> [/usr/lib/gcc/x86_64-linux-gnu/4.8]
  collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
  collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib] ==> [/usr/lib]
  collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu]
  collapse library dir [/lib/../lib] ==> [/lib]
  collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
  collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
  collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../..] ==> [/usr/lib]
  implicit libs: [c]
  implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/4.8;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib]
  implicit fwks: []


Determining if the CXX compiler works passed with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3828177552/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3828177552.dir/build.make CMakeFiles/cmTryCompileExec3828177552.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3828177552.dir/testCXXCompiler.cxx.o
/usr/bin/c++     -o CMakeFiles/cmTryCompileExec3828177552.dir/testCXXCompiler.cxx.o -c /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTryCompileExec3828177552
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3828177552.dir/link.txt --verbose=1
/usr/bin/c++        CMakeFiles/cmTryCompileExec3828177552.dir/testCXXCompiler.cxx.o  -o cmTryCompileExec3828177552 -rdynamic 
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'


Detecting CXX compiler ABI info compiled with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec1785567019/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1785567019.dir/build.make CMakeFiles/cmTryCompileExec1785567019.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1785567019.dir/CMakeCXXCompilerABI.cpp.o
/usr/bin/c++     -o CMakeFiles/cmTryCompileExec1785567019.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-2.8/Modules/CMakeCXXCompilerABI.cpp
Linking CXX executable cmTryCompileExec1785567019
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1785567019.dir/link.txt --verbose=1
/usr/bin/c++      -v CMakeFiles/cmTryCompileExec1785567019.dir/CMakeCXXCompilerABI.cpp.o  -o cmTryCompileExec1785567019 -rdynamic  
Using built-in specs.
COLLECT_GCC=/usr/bin/c++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) 
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec1785567019' '-rdynamic' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTryCompileExec1785567019 /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. CMakeFiles/cmTryCompileExec1785567019.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'


Parsed CXX implicit link information from above output:
  link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  ignore line: [Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp]
  ignore line: []
  ignore line: [Run Build Command:/usr/bin/make "cmTryCompileExec1785567019/fast"]
  ignore line: [/usr/bin/make -f CMakeFiles/cmTryCompileExec1785567019.dir/build.make CMakeFiles/cmTryCompileExec1785567019.dir/build]
  ignore line: [make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp']
  ignore line: [/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1]
  ignore line: [Building CXX object CMakeFiles/cmTryCompileExec1785567019.dir/CMakeCXXCompilerABI.cpp.o]
  ignore line: [/usr/bin/c++     -o CMakeFiles/cmTryCompileExec1785567019.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-2.8/Modules/CMakeCXXCompilerABI.cpp]
  ignore line: [Linking CXX executable cmTryCompileExec1785567019]
  ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1785567019.dir/link.txt --verbose=1]
  ignore line: [/usr/bin/c++      -v CMakeFiles/cmTryCompileExec1785567019.dir/CMakeCXXCompilerABI.cpp.o  -o cmTryCompileExec1785567019 -rdynamic  ]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=/usr/bin/c++]
  ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper]
  ignore line: [Target: x86_64-linux-gnu]
  ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu]
  ignore line: [Thread model: posix]
  ignore line: [gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ]
  ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/]
  ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/:/usr/lib/]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec1785567019' '-rdynamic' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
  link line: [ /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTryCompileExec1785567019 /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. CMakeFiles/cmTryCompileExec1785567019.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o]
    arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/collect2] ==> ignore
    arg [--sysroot=/] ==> ignore
    arg [--build-id] ==> ignore
    arg [--eh-frame-hdr] ==> ignore
    arg [-m] ==> ignore
    arg [elf_x86_64] ==> ignore
    arg [--hash-style=gnu] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-export-dynamic] ==> ignore
    arg [-dynamic-linker] ==> ignore
    arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
    arg [-zrelro] ==> ignore
    arg [-o] ==> ignore
    arg [cmTryCompileExec1785567019] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o] ==> ignore
    arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8]
    arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu]
    arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib]
    arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu]
    arg [-L/lib/../lib] ==> dir [/lib/../lib]
    arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu]
    arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
    arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../..]
    arg [CMakeFiles/cmTryCompileExec1785567019.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
    arg [-lstdc++] ==> lib [stdc++]
    arg [-lm] ==> lib [m]
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [-lgcc] ==> lib [gcc]
    arg [-lc] ==> lib [c]
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [-lgcc] ==> lib [gcc]
    arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o] ==> ignore
  remove lib [gcc_s]
  remove lib [gcc]
  remove lib [gcc_s]
  remove lib [gcc]
  collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8] ==> [/usr/lib/gcc/x86_64-linux-gnu/4.8]
  collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
  collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib] ==> [/usr/lib]
  collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu]
  collapse library dir [/lib/../lib] ==> [/lib]
  collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
  collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
  collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../..] ==> [/usr/lib]
  implicit libs: [stdc++;m;c]
  implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/4.8;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib]
  implicit fwks: []


Determining if files pthread.h exist passed with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec2131177943/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2131177943.dir/build.make CMakeFiles/cmTryCompileExec2131177943.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2131177943.dir/CheckIncludeFiles.c.o
/usr/bin/cc    -o CMakeFiles/cmTryCompileExec2131177943.dir/CheckIncludeFiles.c.o   -c /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec2131177943
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2131177943.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTryCompileExec2131177943.dir/CheckIncludeFiles.c.o  -o cmTryCompileExec2131177943 -rdynamic 
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'


Determining if the function pthread_create exists in the pthread passed with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3263492280/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3263492280.dir/build.make CMakeFiles/cmTryCompileExec3263492280.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3263492280.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec3263492280.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec3263492280
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3263492280.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec3263492280.dir/CheckFunctionExists.c.o  -o cmTryCompileExec3263492280 -rdynamic -lpthread 
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'


Performing C++ SOURCE FILE Test HAVE_FLAG_CXX_11 succeded with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec60651109/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec60651109.dir/build.make CMakeFiles/cmTryCompileExec60651109.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec60651109.dir/src.cxx.o
/usr/bin/c++    -Wzero-as-null-pointer-constant -DHAVE_FLAG_CXX_11   --std=c++11 -o CMakeFiles/cmTryCompileExec60651109.dir/src.cxx.o -c /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec60651109
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec60651109.dir/link.txt --verbose=1
/usr/bin/c++    -Wzero-as-null-pointer-constant -DHAVE_FLAG_CXX_11    CMakeFiles/cmTryCompileExec60651109.dir/src.cxx.o  -o cmTryCompileExec60651109 -rdynamic 
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'

Source file was:
int main() { return 0;}
Performing C++ SOURCE FILE Test HAVE_FLAG_CXX_0X succeded with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec1987886490/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1987886490.dir/build.make CMakeFiles/cmTryCompileExec1987886490.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1987886490.dir/src.cxx.o
/usr/bin/c++    -Wzero-as-null-pointer-constant -DHAVE_FLAG_CXX_0X   --std=c++0x -o CMakeFiles/cmTryCompileExec1987886490.dir/src.cxx.o -c /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec1987886490
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1987886490.dir/link.txt --verbose=1
/usr/bin/c++    -Wzero-as-null-pointer-constant -DHAVE_FLAG_CXX_0X    CMakeFiles/cmTryCompileExec1987886490.dir/src.cxx.o  -o cmTryCompileExec1987886490 -rdynamic 
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'

Source file was:
int main() { return 0;}
Performing C++ SOURCE FILE Test HAVE_WALL succeded with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec1686999449/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1686999449.dir/build.make CMakeFiles/cmTryCompileExec1686999449.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1686999449.dir/src.cxx.o
/usr/bin/c++    -Wzero-as-null-pointer-constant --std=c++11 -DHAVE_WALL   -Wall -o CMakeFiles/cmTryCompileExec1686999449.dir/src.cxx.o -c /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec1686999449
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1686999449.dir/link.txt --verbose=1
/usr/bin/c++    -Wzero-as-null-pointer-constant --std=c++11 -DHAVE_WALL    CMakeFiles/cmTryCompileExec1686999449.dir/src.cxx.o  -o cmTryCompileExec1686999449 -rdynamic 
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'

Source file was:
int main() { return 0;}
Performing C++ SOURCE FILE Test HAVE_WSHADOW succeded with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec636583574/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec636583574.dir/build.make CMakeFiles/cmTryCompileExec636583574.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec636583574.dir/src.cxx.o
/usr/bin/c++    -Wzero-as-null-pointer-constant --std=c++11 -Wall -DHAVE_WSHADOW   -Wshadow -o CMakeFiles/cmTryCompileExec636583574.dir/src.cxx.o -c /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec636583574
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec636583574.dir/link.txt --verbose=1
/usr/bin/c++    -Wzero-as-null-pointer-constant --std=c++11 -Wall -DHAVE_WSHADOW    CMakeFiles/cmTryCompileExec636583574.dir/src.cxx.o  -o cmTryCompileExec636583574 -rdynamic 
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'

Source file was:
int main() { return 0;}
Performing C++ SOURCE FILE Test HAVE_WERROR succeded with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec1996091765/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1996091765.dir/build.make CMakeFiles/cmTryCompileExec1996091765.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1996091765.dir/src.cxx.o
/usr/bin/c++    -Wzero-as-null-pointer-constant --std=c++11 -Wall -Wshadow -DHAVE_WERROR   -Werror -o CMakeFiles/cmTryCompileExec1996091765.dir/src.cxx.o -c /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec1996091765
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1996091765.dir/link.txt --verbose=1
/usr/bin/c++    -Wzero-as-null-pointer-constant --std=c++11 -Wall -Wshadow -DHAVE_WERROR    CMakeFiles/cmTryCompileExec1996091765.dir/src.cxx.o  -o cmTryCompileExec1996091765 -rdynamic 
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'

Source file was:
int main() { return 0;}
Performing C++ SOURCE FILE Test HAVE_PEDANTIC_ERRORS succeded with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3438811830/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3438811830.dir/build.make CMakeFiles/cmTryCompileExec3438811830.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3438811830.dir/src.cxx.o
/usr/bin/c++    -Wzero-as-null-pointer-constant --std=c++11 -Wall -Wshadow -Werror -DHAVE_PEDANTIC_ERRORS   -pedantic-errors -o CMakeFiles/cmTryCompileExec3438811830.dir/src.cxx.o -c /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec3438811830
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3438811830.dir/link.txt --verbose=1
/usr/bin/c++    -Wzero-as-null-pointer-constant --std=c++11 -Wall -Wshadow -Werror -DHAVE_PEDANTIC_ERRORS    CMakeFiles/cmTryCompileExec3438811830.dir/src.cxx.o  -o cmTryCompileExec3438811830 -rdynamic 
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'

Source file was:
int main() { return 0;}
Performing C++ SOURCE FILE Test HAVE_FNO_STRICT_ALIASING succeded with the following output:
Change Dir: /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec2091003888/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2091003888.dir/build.make CMakeFiles/cmTryCompileExec2091003888.dir/build
make[1]: Entering directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2091003888.dir/src.cxx.o
/usr/bin/c++    -Wzero-as-null-pointer-constant --std=c++11 -Wall -Wshadow -Werror -pedantic-errors -DHAVE_FNO_STRICT_ALIASING   -fno-strict-aliasing -o CMakeFiles/cmTryCompileExec2091003888.dir/src.cxx.o -c /home/gluttton/benchmark/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec2091003888
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2091003888.dir/link.txt --verbose=1
/usr/bin/c++    -Wzero-as-null-pointer-constant --std=c++11 -Wall -Wshadow -Werror -pedantic-errors -DHAVE_FNO_STRICT_ALIASING    CMakeFiles/cmTryCompileExec2091003888.dir/src.cxx.o  -o cmTryCompileExec2091003888 -rdynamic 
make[1]: Leaving directory `/home/gluttton/benchmark/build/CMakeFiles/CMakeTmp'

Source file was:
int main() { return 0;}

@dmah42
Copy link
Member

dmah42 commented Oct 11, 2014

We have to compile the code to test for support. We could add the warning and fix the test to compile successfully under that warning too.

@dmah42
Copy link
Member

dmah42 commented Oct 11, 2014

I just tested this and the tests pass with that warning flag enabled, so something else is going on.

@dmah42
Copy link
Member

dmah42 commented Oct 11, 2014

and i reproduced it now.. using g++-4.8.

@dmah42
Copy link
Member

dmah42 commented Oct 11, 2014

adding more details to the cxx feature check:

-- Version: 0.0.0
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- compiled but failed to run
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- failed to compile

@dmah42 dmah42 self-assigned this Oct 11, 2014
@Gluttton
Copy link
Author

We have to compile the code to test for support.

You try to realise this with answer the question:
Can be some piece of code compiled without warnings?

In my opinion this is wrong, and the right way to realise this with answer the question:
Can be some piece of code compiled?

I just tested this and the tests pass with that warning flag enabled, so something else is going on.

I don't have big expirience with CMake but in my opinion all what you need is just put: add_cxx_compiler_flag(-Werror) in the: CMakeLists.txt after: C++ feature checks block.

@dmah42 dmah42 closed this as completed in e6107a7 Oct 18, 2014
ckennelly added a commit that referenced this issue Oct 18, 2014
Fix #50 by using nullptr and adding stricter warning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants