[MacPorts] #70404: llvm-18: libLLVM.dylib not loaded at runtime

MacPorts noreply at macports.org
Fri Jul 19 21:43:28 UTC 2024


#70404: llvm-18: libLLVM.dylib not loaded at runtime
---------------------------------+--------------------
  Reporter:  sletz               |      Owner:  (none)
      Type:  defect              |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:
Resolution:                      |   Keywords:
      Port:  llvm-18 llvm-devel  |
---------------------------------+--------------------

Comment (by cjones051073):

 b.t.w. Could you please also post the *complete* output of *everything*
 you get when you run `make developer`. I mean everything. I specifically
 want to see how faust configures itself.

 when I do it I get this

 {{{
 Larissa ~/Projects/faust > make developer
 if test -d .git; then git submodule update --init --recursive; fi
 Submodule 'architecture/android/app/oboe' (https://github.com/google/oboe)
 registered for path 'architecture/android/app/oboe'
 Submodule 'architecture/max-msp/py2max'
 (https://github.com/shakfu/py2max.git) registered for path 'architecture
 /max-msp/py2max'
 Submodule 'architecture/smartKeyboard/android/app/oboe'
 (https://github.com/google/oboe) registered for path
 'architecture/smartKeyboard/android/app/oboe'
 Submodule 'libraries' (https://github.com/grame-cncm/faustlibraries.git)
 registered for path 'libraries'
 Submodule 'tools/faust2ck' (https://github.com/ccrma/faust2ck) registered
 for path 'tools/faust2ck'
 Submodule 'tools/physicalModeling/mesh2faust/spectra'
 (https://github.com/yixuan/spectra.git) registered for path
 'tools/physicalModeling/mesh2faust/spectra'
 Cloning into
 '/Users/chris/Projects/faust/architecture/android/app/oboe'...
 Cloning into '/Users/chris/Projects/faust/architecture/max-msp/py2max'...
 Cloning into
 '/Users/chris/Projects/faust/architecture/smartKeyboard/android/app/oboe'...
 Cloning into '/Users/chris/Projects/faust/libraries'...
 Cloning into '/Users/chris/Projects/faust/tools/faust2ck'...
 Cloning into
 '/Users/chris/Projects/faust/tools/physicalModeling/mesh2faust/spectra'...
 Submodule path 'architecture/android/app/oboe': checked out
 '7146098e03573eeaf6ad48176ab12b37fec18237'
 Submodule path 'architecture/max-msp/py2max': checked out
 '3aaa8cad3f2d777a5e586c8a3b8063e1e9092c5b'
 Submodule path 'architecture/smartKeyboard/android/app/oboe': checked out
 '7146098e03573eeaf6ad48176ab12b37fec18237'
 Submodule path 'libraries': checked out
 '58f6796286bef9dfbf3d5cc976f7d46a5ed2ab70'
 Submodule path 'tools/faust2ck': checked out
 'db879cb88158a2c708f0d1159cddc376ce65b9bd'
 Submodule path 'tools/physicalModeling/mesh2faust/spectra': checked out
 '8c7242e08f0fb7f6a0022cfe232e3dc5b5bd4eb4'
 /Applications/Xcode.app/Contents/Developer/usr/bin/make -C build cmake
 BACKENDS=all.cmake TARGETS=developer.cmake
 mkdir faustdir
 cd faustdir && /opt/local/bin/cmake -C ../backends/all.cmake -C
 ../targets/developer.cmake -DCMAKE_BUILD_TYPE=Release "-DWORKLET=off"
 -DINCLUDE_LLVM=OFF -DUSE_LLVM_CONFIG=ON -DLLVM_PACKAGE_VERSION=
 -DLLVM_LIBS="" -DLLVM_LIB_DIR="" -DLLVM_INCLUDE_DIRS=""
 -DLLVM_DEFINITIONS="" -DLLVM_LD_FLAGS=""  -DLIBSDIR=lib
 -DBUILD_HTTP_STATIC=OFF -G 'Unix Makefiles' ..
 loading initial cache file ../backends/all.cmake
 loading initial cache file ../targets/developer.cmake
 -- The C compiler identification is AppleClang 15.0.0.15000309
 -- The CXX compiler identification is AppleClang 15.0.0.15000309
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Check for working C compiler:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
 - skipped
 -- Detecting C compile features
 -- Detecting C compile features - done
 -- Detecting CXX compiler ABI info
 -- Detecting CXX compiler ABI info - done
 -- Check for working CXX compiler:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
 - skipped
 -- Detecting CXX compile features
 -- Detecting CXX compile features - done
 -- Configuring version 2.74.9
 CMake Error at misc/llvm.cmake:103 (message):
   Cannot find program llvm-config (llvm-config or derived expected)
 Call Stack (most recent call first):
   CMakeLists.txt:93 (llvm_config)


 -- Configuring incomplete, errors occurred!
 make[1]: *** [cmake] Error 1
 make: *** [developer] Error 2

 }}}

 which is expected as we do not provide by default a `llvm-config` command
 in the default PATH in MacPorts. These are the versions that each of the
 llvm versions provides

 {{{
 Larissa ~/Projects/MacPorts/ports > port contents llvm-18 | grep llvm-
 config
   /opt/local/bin/llvm-config-mp-18
   /opt/local/libexec/llvm-18/bin/llvm-config
   /opt/local/libexec/llvm-18/include/llvm/Config/llvm-config.h
 Larissa ~/Projects/MacPorts/ports > port contents llvm-17 | grep llvm-
 config
   /opt/local/bin/llvm-config-mp-17
   /opt/local/libexec/llvm-17/bin/llvm-config
   /opt/local/libexec/llvm-17/include/llvm/Config/llvm-config.h
 }}}

 It is up to users to decide which they wish to use and configure their
 builds appropriately to use the correct version.

 My bet is whatever llvm-config your build is finding, it probably isn't
 one from MacPorts, and also quite likely not the correct version for LLVM
 17 or 18.

-- 
Ticket URL: <https://trac.macports.org/ticket/70404#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list