[MacPorts] #69725: odin @0.2024.01: Library not loaded: @rpath/libc++.1.dylib; Reason: no LC_RPATH's found

MacPorts noreply at macports.org
Sat Apr 13 01:29:37 UTC 2024


#69725: odin @0.2024.01: Library not loaded: @rpath/libc++.1.dylib; Reason: no
LC_RPATH's found
-----------------------+------------------------
  Reporter:  kwolcott  |      Owner:  mohd-akram
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  odin      |
-----------------------+------------------------

Comment (by kencu):

 yes, it uses LLVM config to link in some LLVM libraries.

 {{{
 :info:build + /usr/bin/clang++ src/main.cpp src/libtommath.cpp -Wno-switch
 -Wno-macro-redefined -Wno-unused-value -I/opt/local/include
 '-DODIN_VERSION_RAW="dev-2024-01"' -Os -stdlib=libc++ -std=c++14
 -I/opt/local/libexec/llvm-17/include -std=c++17 -stdlib=libc++ -fno-
 exceptions -funwind-tables -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
 -D__STDC_LIMIT_MACROS -L/opt/local/libexec/llvm-17/lib
 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -O3
 -L/opt/local/lib -Wl,-headerpad_max_install_names -pthread -lm -lstdc++
 -liconv -ldl -framework System -lLLVMWindowsManifest -lLLVMXRay
 -lLLVMLibDriver -lLLVMDlltoolDriver -lLLVMCoverage -lLLVMLineEditor
 -lLLVMXCoreDisassembler -lLLVMXCoreCodeGen -lLLVMXCoreDesc -lLLVMXCoreInfo
 -lLLVMX86TargetMCA -lLLVMX86Disassembler -lLLVMX86AsmParser
 -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Info -lLLVMWebAssemblyDisassembler
 -lLLVMWebAssemblyAsmParser -lLLVMWebAssemblyCodeGen -lLLVMWebAssemblyUtils
 -lLLVMWebAssemblyDesc -lLLVMWebAssemblyInfo -lLLVMVEDisassembler
 -lLLVMVEAsmParser -lLLVMVECodeGen -lLLVMVEDesc -lLLVMVEInfo
 -lLLVMSystemZDisassembler -lLLVMSystemZAsmParser -lLLVMSystemZCodeGen
 -lLLVMSystemZDesc -lLLVMSystemZInfo -lLLVMSparcDisassembler
 -lLLVMSparcAsmParser -lLLVMSparcCodeGen -lLLVMSparcDesc -lLLVMSparcInfo
 -lLLVMRISCVTargetMCA -lLLVMRISCVDisassembler -lLLVMRISCVAsmParser
 -lLLVMRISCVCodeGen -lLLVMRISCVDesc -lLLVMRISCVInfo
 -lLLVMPowerPCDisassembler -lLLVMPowerPCAsmParser -lLLVMPowerPCCodeGen
 -lLLVMPowerPCDesc -lLLVMPowerPCInfo -lLLVMNVPTXCodeGen -lLLVMNVPTXDesc
 -lLLVMNVPTXInfo -lLLVMMSP430Disassembler -lLLVMMSP430AsmParser
 -lLLVMMSP430CodeGen -lLLVMMSP430Desc -lLLVMMSP430Info
 -lLLVMMipsDisassembler -lLLVMMipsAsmParser -lLLVMMipsCodeGen
 -lLLVMMipsDesc -lLLVMMipsInfo -lLLVMLoongArchDisassembler
 -lLLVMLoongArchAsmParser -lLLVMLoongArchCodeGen -lLLVMLoongArchDesc
 -lLLVMLoongArchInfo -lLLVMLanaiDisassembler -lLLVMLanaiCodeGen
 -lLLVMLanaiAsmParser -lLLVMLanaiDesc -lLLVMLanaiInfo
 -lLLVMHexagonDisassembler -lLLVMHexagonCodeGen -lLLVMHexagonAsmParser
 -lLLVMHexagonDesc -lLLVMHexagonInfo -lLLVMBPFDisassembler
 -lLLVMBPFAsmParser -lLLVMBPFCodeGen -lLLVMBPFDesc -lLLVMBPFInfo
 -lLLVMAVRDisassembler -lLLVMAVRAsmParser -lLLVMAVRCodeGen -lLLVMAVRDesc
 -lLLVMAVRInfo -lLLVMARMDisassembler -lLLVMARMAsmParser -lLLVMARMCodeGen
 -lLLVMARMDesc -lLLVMARMUtils -lLLVMARMInfo -lLLVMAMDGPUTargetMCA
 -lLLVMAMDGPUDisassembler -lLLVMAMDGPUAsmParser -lLLVMAMDGPUCodeGen
 -lLLVMAMDGPUDesc -lLLVMAMDGPUUtils -lLLVMAMDGPUInfo
 -lLLVMAArch64Disassembler -lLLVMAArch64AsmParser -lLLVMAArch64CodeGen
 -lLLVMAArch64Desc -lLLVMAArch64Utils -lLLVMAArch64Info -lLLVMOrcJIT
 -lLLVMWindowsDriver -lLLVMMCJIT -lLLVMJITLink -lLLVMInterpreter
 -lLLVMExecutionEngine -lLLVMRuntimeDyld -lLLVMOrcTargetProcess
 -lLLVMOrcShared -lLLVMDWP -lLLVMDebugInfoLogicalView -lLLVMDebugInfoGSYM
 -lLLVMOption -lLLVMObjectYAML -lLLVMObjCopy -lLLVMMCA -lLLVMMCDisassembler
 -lLLVMLTO -lLLVMCFGuard -lLLVMFrontendOpenACC -lLLVMFrontendHLSL
 -lLLVMExtensions -lPolly -lPollyISL -lLLVMPasses -lLLVMCoroutines
 -lLLVMipo -lLLVMInstrumentation -lLLVMVectorize -lLLVMLinker
 -lLLVMFrontendOpenMP -lLLVMDWARFLinkerParallel -lLLVMDWARFLinker
 -lLLVMGlobalISel -lLLVMMIRParser -lLLVMAsmPrinter -lLLVMSelectionDAG
 -lLLVMCodeGen -lLLVMTarget -lLLVMObjCARCOpts -lLLVMCodeGenTypes
 -lLLVMIRPrinter -lLLVMInterfaceStub -lLLVMFileCheck -lLLVMFuzzMutate
 -lLLVMScalarOpts -lLLVMInstCombine -lLLVMAggressiveInstCombine
 -lLLVMTransformUtils -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData
 -lLLVMSymbolize -lLLVMDebugInfoBTF -lLLVMDebugInfoPDB -lLLVMDebugInfoMSF
 -lLLVMDebugInfoDWARF -lLLVMObject -lLLVMTextAPI -lLLVMMCParser
 -lLLVMIRReader -lLLVMAsmParser -lLLVMMC -lLLVMDebugInfoCodeView
 -lLLVMBitReader -lLLVMFuzzerCLI -lLLVMCore -lLLVMRemarks
 -lLLVMBitstreamReader -lLLVMBinaryFormat -lLLVMTargetParser -lLLVMTableGen
 -lLLVMSupport -lLLVMDemangle -lm -lz -lzstd -lcurses -lxml2 -o odin

 }}}

 so this is exactly the situation that homebrew ran into.

 The only good solution is to move libcxx to another place, like a subdir
 of {{{ /opt/local/libexec/llvm-17/lib}}}

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


More information about the macports-tickets mailing list