Paste number 141541: darwin11 mis-linked binaries?

Index of paste annotations: 1 | 2

Paste number 141541: darwin11 mis-linked binaries?
Pasted by: fangism
When:5 years, 9 months ago
Share:Tweet this! | http://paste.lisp.org/+317P
Channel:None
Paste contents:
Raw Source | XML | Display As
[  7%] Building Intrinsics.gen...
dyld: Library not loaded: @rpath/libLLVMSupport.dylib
  Referenced from: /Users/fang/local/src/LLVM/build/include/llvm/IR/../../../bin/llvm-tblgen
  Reason: image not found
/bin/sh: line 1: 78410 Trace/BPT trap: 5       ../../../bin/llvm-tblgen -gen-intrinsic -I /Users/fang/local/src/LLVM/llvm.git/include/llvm/IR -I /Users/fang/local/src/LLVM/llvm.git/lib/Target -I /Users/fang/local/src/LLVM/llvm.git/include /Users/fang/local/src/LLVM/llvm.git/include/llvm/IR/Intrinsics.td -o /Users/fang/local/src/LLVM/build/include/llvm/IR/Intrinsics.gen.tmp
make[2]: *** [include/llvm/IR/Intrinsics.gen.tmp] Error 133
make[1]: *** [include/llvm/IR/CMakeFiles/intrinsics_gen.dir/all] Error 2
make: *** [all] Error 2

% otool -L bin/llvm-tblgen
bin/llvm-tblgen:
        @rpath/libLLVMSupport.dylib (compatibility version 0.0.0, current version 0.0.0)
        @rpath/libLLVMTableGen.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
        /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 28.4.0)

and otool -l shows no LC_RPATH

Annotations for this paste:

Annotation number 1: utils/TableGen link
Pasted by: fangism
When:5 years, 9 months ago
Share:Tweet this! | http://paste.lisp.org/+317P/1
Paste contents:
Raw Source | Display As
Linking CXX executable ../../bin/llvm-tblgen
cd /Users/fang/local/src/LLVM/build/utils/TableGen && /sw/bin/cmake -E cmake_link_script CMakeFiles/llvm-tblgen.dir/link.txt --verbose=1
/usr/bin/c++   -std=c++11 -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -std=c++11 -Wl,-search_paths_first -Wl,-headerpad_max_install_names    -Wl,-dead_strip CMakeFiles/llvm-tblgen.dir/AsmMatcherEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/AsmWriterEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/AsmWriterInst.cpp.o CMakeFiles/llvm-tblgen.dir/CallingConvEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/CodeEmitterGen.cpp.o CMakeFiles/llvm-tblgen.dir/CodeGenDAGPatterns.cpp.o CMakeFiles/llvm-tblgen.dir/CodeGenInstruction.cpp.o CMakeFiles/llvm-tblgen.dir/CodeGenMapTable.cpp.o CMakeFiles/llvm-tblgen.dir/CodeGenRegisters.cpp.o CMakeFiles/llvm-tblgen.dir/CodeGenSchedule.cpp.o CMakeFiles/llvm-tblgen.dir/CodeGenTarget.cpp.o CMakeFiles/llvm-tblgen.dir/DAGISelEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/DAGISelMatcherEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/DAGISelMatcherGen.cpp.o CMakeFiles/llvm-tblgen.dir/DAGISelMatcherOpt.cpp.o CMakeFiles/llvm-tblgen.dir/DAGISelMatcher.cpp.o CMakeFiles/llvm-tblgen.dir/DFAPacketizerEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/DisassemblerEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/FastISelEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/FixedLenDecoderEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/InstrInfoEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/IntrinsicEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/OptParserEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/PseudoLoweringEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/RegisterInfoEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/SetTheory.cpp.o CMakeFiles/llvm-tblgen.dir/SubtargetEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/TableGen.cpp.o CMakeFiles/llvm-tblgen.dir/X86DisassemblerTables.cpp.o CMakeFiles/llvm-tblgen.dir/X86ModRMFilters.cpp.o CMakeFiles/llvm-tblgen.dir/X86RecognizableInstr.cpp.o CMakeFiles/llvm-tblgen.dir/CTagsEmitter.cpp.o  -o ../../bin/llvm-tblgen  ../../lib/libLLVMSupport.dylib ../../lib/libLLVMTableGen.dylib ../../lib/libLLVMSupport.dylib -lcurses -lpthread -lz 

Annotation number 2: CMakeCache.txt grep
Pasted by: fangism
When:5 years, 9 months ago
Share:Tweet this! | http://paste.lisp.org/+317P/2
Paste contents:
Raw Source | Display As
% grep RPATH CMakeCache.txt 
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
CMAKE_SKIP_RPATH:BOOL=NO
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH

% grep INSTALL CMakeCache.txt
CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool
CMAKE_INSTALL_PREFIX:PATH=/usr/local
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
GCC_INSTALL_PREFIX:PATH=
LLVM_INSTALL_TOOLCHAIN_ONLY:BOOL=OFF
//ADVANCED property for variable: CMAKE_INSTALL_NAME_TOOL
CMAKE_INSTALL_NAME_TOOL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.