juanleite
(usa Ubuntu)
Enviado em 30/06/2016 - 15:18h
Olá pessoal ,
Estou tentando fazer o build do Root cern 6 no Ubuntu 16 e estou recebendo essa mensagem como retorno:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
juan@notebook:~/myroot$ sudo cmake -DCMAKE_CXX_FLAGS=D_GLIBCXX_USE_CXX11_ABI=0 -DCMAKE_C_COMPILER=/usr/bin/gcc-4.8 -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.8 ../Downloads/source/
-- The CXX compiler identification is unknown
-- Check for working CXX compiler: /usr/bin/g++-4.8
-- Check for working CXX compiler: /usr/bin/g++-4.8 -- broken
CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler "/usr/bin/g++-4.8" is not able to compile a simple test
program.
It fails with the following output:
Change Dir: /home/juan/myroot/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_11135/fast"
/usr/bin/make -f CMakeFiles/cmTC_11135.dir/build.make
CMakeFiles/cmTC_11135.dir/build
make[1]: Entering directory '/home/juan/myroot/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_11135.dir/testCXXCompiler.cxx.o
/usr/bin/g++-4.8 D_GLIBCXX_USE_CXX11_ABI=0 -o
CMakeFiles/cmTC_11135.dir/testCXXCompiler.cxx.o -c
/home/juan/myroot/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
g++-4.8: error: D_GLIBCXX_USE_CXX11_ABI=0: No such file or directory
CMakeFiles/cmTC_11135.dir/build.make:65: recipe for target
'CMakeFiles/cmTC_11135.dir/testCXXCompiler.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_11135.dir/testCXXCompiler.cxx.o] Error 1
make[1]: Leaving directory '/home/juan/myroot/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_11135/fast' failed
make: *** [cmTC_11135/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:51 (project)
-- Configuring incomplete, errors occurred!
See also "/home/juan/myroot/CMakeFiles/CMakeOutput.log".
See also "/home/juan/myroot/CMakeFiles/CMakeError.log".
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Ele reconhece o compilador C mais nao o C++.
Uma coisa que reparei é que quando eu faço o g++ -v aparece essa mensagem:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Using built-in specs.
COLLECT_GCC=g++
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.5-4ubuntu2' --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.5 (Ubuntu 4.8.5-4ubuntu2) <------ ( não era para aparecer o g++ version aqui ?)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------