Contradictory rpath errors with MacOS build of 11.3.2

Geant4 Version: 11.3.2
Operating System: macOS Tahoe 26.2
Compiler/Version: Apple clang 17.0.0
CMake Version: 4.2.1


I’m building both G4 11.3.2 and 11.4.0 on my new MacBook Pro (Tahoe 26.2). With 11.3.2, but not 11.4.0, I get the following errors during the various visualization library builds:

[...]
-- Installing: /Applications/GEANT4/geant4.11.3.2/lib/libG4ToolsSG.dylib
-- Installing: /Applications/GEANT4/geant4.11.3.2/lib/libG4OpenGL.dylib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Applications/GEANT4/geant4.11.3.2/lib/libG4visQt3D.dylib (for architecture arm64) option "-add_rpath @loader_path" would duplicate path, file already has LC_RPATH for: @loader_path
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: no LC_RPATH load command with path: /Applications/GEANT4/geant4.11.3.2-bld/BuildProducts/lib found in: /Applications/GEANT4/geant4.11.3.2/lib/libG4visQt3D.dylib (for architecture arm64), required for specified option "-delete_rpath /Applications/GEANT4/geant4.11.3.2-bld/BuildProducts/lib"
-- Installing: /Applications/GEANT4/geant4.11.3.2/include/Geant4/G4GDMLAuxStructType.hh
[...]

They both reference3 libG4visQt3D.dylib, and seem to be rather contradictory: on the one hand, that library apparently “already has LC_RPATH”, but then it also has “no LC_RPATH load command”. Is this something I should be worried about?

I’ve tried locally and not been able to reproduce this locally (albeit on Sequioa). Could you post the complete set of CMake options you used to configure and build please?

Ugh. So I just did a clean rebuild of my 11.3.2, without changing any of the CMake options. This time it worked just fine, with no errors. Presumably, fixing something else somewhere in my Mac environment cleared up a bunch of these problems all at once.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.