Compile install root 6.32.12 problem in macos 15.4

hi,
I wish to compile install the latest root in my MacBook. however, it displays the following output errors :slight_smile:
"CMake Error at /Users/pedanter/root_build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-build-Release.cmake:49 (message):
Command failed: 2

‘/usr/local/bin/gmake’"

and

"
CMake Error at /Users/pedanter/root_build/VDT-prefix/src/VDT-stamp/VDT-configure-Release.cmake:49 (message):
Command failed: 1

‘/Applications/CMake.app/Contents/bin/cmake’ ‘-DSSE=OFF’ ‘-DCMAKE_BUILD_TYPE=Release’ ‘-DCMAKE_C_COMPILER=/usr/bin/cc’ ‘-DCMAKE_CXX_COMPILER=/usr/bin/c++’ ‘-DCMAKE_C_FLAGS= -m64 -pipe -W -Wall -fsigned-char -fno-common -Qunused-arguments -pthread’ '-DCMAKE_CXX_FLAGS= -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++ ’ ‘-DCMAKE_INSTALL_PREFIX=/Users/pedanter/root_build’ ‘-GUnix Makefiles’ ‘-S’ ‘/Users/pedanter/root_build/VDT-prefix/src/VDT’ ‘-B’ ‘/Users/pedanter/root_build/VDT-prefix/src/VDT-build’"

How can I fix it? Thank you!

_ROOT Version: 6.32.12
_Platform:macos 15.4
_Compiler:cmake 3.31.6

Hm, unfortunately that error message doesn’t help much. Is that the only output of cmake?
First off, are you building ROOT with builtin_freetype or not? If not, do you have Freetype installed?
Second, I see you’re using cmake 4 and we’ve seen some related issues in the past days: have you checked this thread with a similar problem?

I have changed the cmake 4 to cmake 3.31.6. However, it still can’t work![ 0%] Performing build step for ‘FREETYPE’
[ 0%] Built target OPENUI5
[ 0%] Built target RENDERCORE
[ 0%] Built target VDT
[ 0%] Built target MATHJAX
[ 1%] Updating etc/gitinfo.txt.
[ 1%] Built target move_header_gui_browsable
– Found Git: /usr/local/bin/git (found version “2.49.0”)
[ 1%] Built target copymodulemap
[ 1%] Built target GLEW
[ 1%] Built target gitinfotxt
[ 1%] Built target move_header_builtins_glew
[ 1%] Performing build step for ‘DAVIX’
[ 1%] Built target move_header_graf3d_rglew
[ 2%] Built target move_header_graf3d_eve
[ 2%] Built target move_header_graf3d_csg
[ 2%] Built target move_header_graf3d_gl
[ 2%] Built target move_header_graf3d_gviz3d
CMake Error at /Users/pedanter/root_build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-build-Release.cmake:49 (message):
Command failed: 2

‘/usr/local/bin/gmake’

See also

/Users/pedanter/root_build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-build-*.log

gmake[2]: *** [CMakeFiles/FREETYPE.dir/build.make:86: FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-build] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:11323: CMakeFiles/FREETYPE.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs…
[ 2%] Built target move_header_graf3d_eve7
CMake Error at /Users/pedanter/root_build/builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-build-Release.cmake:49 (message):
Command failed: 2

‘/usr/local/bin/gmake’

See also

/Users/pedanter/root_build/builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-build-*.log

gmake[2]: *** [builtins/davix/CMakeFiles/DAVIX.dir/build.make:86: builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-build] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:12516: builtins/davix/CMakeFiles/DAVIX.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

Just to be sure: is this a clean build or did you pull over an existing repo and built incrementally? If it’s the latter I’d suggest removing the build dir and trying again.

This is a clean build.

I have clean the build, and input

cmake ../root-6.32.12 -Dbuiltin_glew=ON -Dxrootd=OFF", 

then

cmake --build . -- install -j4

it still can’t work.

CMake Error at /Users/pedanter/root_build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-build-Release.cmake:49 (message):
  Command failed: 2

   '/usr/local/bin/gmake'

  See also

    /Users/pedanter/root_build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-build-*.log

If I do:

git clone https://github.com/root-project/root.git
mkdir build
cd build
cmake ../root
make -j8

I works for me on my MacOS 15.4 machine

My MacBook is X86_64. Your mac is same?

wait I see an error in the cmake step on my Intel mac now… (not the same I yours, I am investigating)

@couet I assume you also checked out v6-32-12?

I did:

% git clone https://github.com/root-project/root.git
Cloning into 'root'...
...
% cd root

then get root version 6.32

% git checkout v6-32-00-patches
...
% git status
On branch v6-32-00-patches
Your branch is up to date with 'origin/v6-32-00-patches'.

then performed cmake:

% cd ..
% mkdir build
% cd build
% cmake ../root
...
-- Configuring done (70.7s)

then build root:

% make -j10
[  0%] Copying header ...
...
[100%] Generating lib/modules.idx

[100%] Built target modules_idx
[100%] Generating tutorials/hsimple.root

Processing hsimple.C...
hsimple   : Real Time =   0.40 seconds Cpu Time =   0.08 seconds
(TFile *) 0x7fe9d91bf570
[100%] Built target hsimple
% 

I am running a macOS 15.4 on Mac book pro from 2019 with an Intel CPU

clang version is:

% clang --version
Apple clang version 17.0.0 (clang-1700.0.13.3)

cmake version is:

% cmake --version
cmake version 3.31.6

So it is working for me.

As hinted above, you need to downgrade the version of CMake you use to 3.31.6 or older to be able to build that version of ROOT.

My CMake have been 3.31.6. However the error is same.

My Cmake version is 3.31.6, and clang version is 17.0.0. The error is same.

You get also the error if you do the exact same steps I described ?

yes, I have done the same steps. The output:

‘’‘’
[ 0%] Performing build step for ‘FREETYPE’
CMake Error at /Users/pedanter/root_build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-build-Release.cmake:49 (message):
Command failed: 2

‘make’

See also

/Users/pedanter/root_build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-build-*.log

make[2]: *** [CMakeFiles/FREETYPE.dir/build.make:86: FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-build] Error 1
make[1]: *** [CMakeFiles/Makefile2:11243: CMakeFiles/FREETYPE.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

‘’‘’

I don’t want to spam the thread, but in my case I cannot go past the cmake



-- The ASM compiler identification is AppleClang
-- Found assembler: /Library/Developer/CommandLineTools/usr/bin/cc
-- bolt project is disabled
-- clang project is enabled
-- clang-tools-extra project is disabled
-- compiler-rt project is disabled
-- cross-project-tests project is disabled
-- libc project is disabled
-- libclc project is disabled
-- lld project is disabled
-- lldb project is disabled
-- mlir project is disabled
-- openmp project is disabled
-- polly project is disabled
-- pstl project is disabled
-- flang project is disabled
-- Found libtool - /Library/Developer/CommandLineTools/usr/bin/libtool
-- Found Python3: /opt/homebrew/Caskroom/miniconda/base/bin/python3.12 (found suitable version "3.12.9", minimum required is "3.0") found components: Interpreter
-- Found LibEdit: /Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include (found version "2.11")
-- Found Terminfo: /Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/lib/libcurses.tbd
-- The xar file format has been deprecated: LLVM_HAVE_LIBXAR might be removed in the future.
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include
CMake Error at interpreter/llvm-project/llvm/cmake/modules/CheckAtomic.cmake:59 (message):
  Host compiler appears to require libatomic, but cannot find it.
Call Stack (most recent call first):
  interpreter/llvm-project/llvm/cmake/config-ix.cmake:407 (include)
  interpreter/llvm-project/llvm/CMakeLists.txt:841 (include)


-- Configuring incomplete, errors occurred!

Nobody can’t help me?