I read everything and i tried everything (gcc 4.9 was installed in /opt/local/bin), changing all the environment variables, but i’m still getting this
[code][17:39:12 root_build ]> cmake …/root
– The C compiler identification is unknown
– The CXX compiler identification is GNU 4.9.3
– Check for working C compiler: /usr/local/bin/gcc-4.7
– Check for working C compiler: /usr/local/bin/gcc-4.7 – broken
CMake Error at /opt/local/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler “/usr/local/bin/gcc-4.7” is not able to compile a simple
test program.
It fails with the following output:
Change Dir: /Users/Nico/root_build/CMakeFiles/CMakeTmp
Run Build Command:"/opt/local/bin/gmake" “cmTC_98bb7/fast”
/opt/local/bin/gmake -f CMakeFiles/cmTC_98bb7.dir/build.make
CMakeFiles/cmTC_98bb7.dir/build
gmake[1]: ingresso nella directory
"/Users/Nico/root_build/CMakeFiles/CMakeTmp"
Building C object CMakeFiles/cmTC_98bb7.dir/testCCompiler.c.o
/usr/local/bin/gcc-4.7 -o CMakeFiles/cmTC_98bb7.dir/testCCompiler.c.o -c
/Users/Nico/root_build/CMakeFiles/CMakeTmp/testCCompiler.c
CMakeFiles/cmTC_98bb7.dir/build.make:65: set di istruzioni per l’obiettivo
"CMakeFiles/cmTC_98bb7.dir/testCCompiler.c.o" non riuscito
gmake[1]: *** [CMakeFiles/cmTC_98bb7.dir/testCCompiler.c.o] Segmentation
fault: 11
gmake[1]: uscita dalla directory
"/Users/Nico/root_build/CMakeFiles/CMakeTmp"
Makefile:126: set di istruzioni per l’obiettivo “cmTC_98bb7/fast” non
riuscito
gmake: *** [cmTC_98bb7/fast] Errore 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:5 (project)
– Configuring incomplete, errors occurred!
See also “/Users/Nico/root_build/CMakeFiles/CMakeOutput.log”.
See also “/Users/Nico/root_build/CMakeFiles/CMakeError.log”.
[17:39:23 root_build ]> [/code]
I really don’t know how to solve this 