Created
June 28, 2015 18:27
-
-
Save Sumith1896/73b68731ade4b35f7cfc to your computer and use it in GitHub Desktop.
clang cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ git clean -dfx | |
Removing clang/ | |
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ mkdir clang | |
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ cd clang/ | |
sumith@sumith-Lenovo-Z50-70:~/github/csympy/clang$ CXX=clang cmake ../ | |
-- The C compiler identification is GNU 4.8.2 | |
-- The CXX compiler identification is Clang 3.3.0 | |
-- 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: /home/sumith/anaconda/bin/clang | |
-- Check for working CXX compiler: /home/sumith/anaconda/bin/clang -- works | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done | |
-- Found GMP: /usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/local/lib/libgmp.so | |
CMake Error at CMakeLists.txt:59 (message): | |
GMP library being linked is not supported by CMAKE_CXX_COMPILER used. | |
Recompile GMP with C++ support using /home/sumith/anaconda/bin/clang, | |
remove CMakeCache.txt and try again. | |
Error Log : | |
Change Dir: /home/sumith/github/csympy/clang/cxx/CMakeFiles/CMakeTmp | |
Run Build Command:/usr/bin/make "cmTryCompileExec3457162112/fast" | |
/usr/bin/make -f CMakeFiles/cmTryCompileExec3457162112.dir/build.make | |
CMakeFiles/cmTryCompileExec3457162112.dir/build | |
make[1]: Entering directory | |
`/home/sumith/github/csympy/clang/cxx/CMakeFiles/CMakeTmp' | |
/usr/bin/cmake -E cmake_progress_report | |
/home/sumith/github/csympy/clang/cxx/CMakeFiles/CMakeTmp/CMakeFiles 1 | |
Building CXX object | |
CMakeFiles/cmTryCompileExec3457162112.dir/checkgmpxx.cpp.o | |
/home/sumith/anaconda/bin/clang -std=c++11 -Wall -Wextra -fPIC -O3 | |
-march=native -ffast-math -funroll-loops -Wno-unused-parameter -o | |
CMakeFiles/cmTryCompileExec3457162112.dir/checkgmpxx.cpp.o -c | |
/home/sumith/github/csympy/cmake/checkgmpxx.cpp | |
Linking CXX executable cmTryCompileExec3457162112 | |
/usr/bin/cmake -E cmake_link_script | |
CMakeFiles/cmTryCompileExec3457162112.dir/link.txt --verbose=1 | |
/home/sumith/anaconda/bin/clang -std=c++11 -Wall -Wextra -fPIC -O3 | |
-march=native -ffast-math -funroll-loops -Wno-unused-parameter | |
CMakeFiles/cmTryCompileExec3457162112.dir/checkgmpxx.cpp.o -o | |
cmTryCompileExec3457162112 -rdynamic -lgmpxx /usr/local/lib/libgmp.so | |
-Wl,-rpath,/usr/local/lib | |
/usr/bin/ld: CMakeFiles/cmTryCompileExec3457162112.dir/checkgmpxx.cpp.o: | |
undefined reference to symbol '_ZSt9terminatev@@GLIBCXX_3.4' | |
//usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO | |
missing from command line | |
clang: error: linker command failed with exit code 1 (use -v to see | |
invocation) | |
make[1]: *** [cmTryCompileExec3457162112] Error 1 | |
make[1]: Leaving directory | |
`/home/sumith/github/csympy/clang/cxx/CMakeFiles/CMakeTmp' | |
make: *** [cmTryCompileExec3457162112/fast] Error 2 | |
-- Configuring incomplete, errors occurred! | |
See also "/home/sumith/github/csympy/clang/CMakeFiles/CMakeOutput.log". | |
sumith@sumith-Lenovo-Z50-70:~/github/csympy/clang$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment