Skip to content

RPATH does not match linked lib when building ROOT with system Python3 on MacOS(11,12) #9793

@etejedor

Description

@etejedor

An attempt to build ROOT against the system Python3 on MacOS11/12 results in a build with no errors, but with some test failures:

https://lcgapp-services.cern.ch/root-jenkins/job/root-nightly-master/LABEL=mac12,SPEC=soversion,V=master/3084/

The following is the relevant error:

cling::DynamicLibraryManager::loadLibrary(): dlopen(/Users/sftnight/build/jenkins/night/LABEL/mac12/SPEC/soversion/V/master/build/lib/libROOTTPython.6.25.02.so, 0x0009): Library not loaded: @rpath/Python3.framework/Versions/3.8/Python3

According to:

$ otool -l lib/libROOTTPython.so | grep -C2 Python3
          cmd LC_LOAD_DYLIB
      cmdsize 72
         name @rpath/Python3.framework/Versions/3.8/Python3 (offset 24)
   time stamp 2 Thu Jan  1 01:00:02 1970
      current version 3.8.0
--
          cmd LC_RPATH
      cmdsize 104
         path /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib (offset 12)
Load command 20
      cmd LC_FUNCTION_STARTS

RPATH is set, but the dylib load directive doesn't match.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions