LINUX.ORG.RU

История изменений

Исправление teod0r, (текущая версия) :

попробовал собрать с -D BUILD_SHARED_LIBS=0 -D LLVM_BUILD_LLVM_DYLIB=0 -D LLVM_LINK_LLVM_DYLIB=0 была опять ошибка про attempted static link of dynamic object `/usr/lib/libffi.so', указание -D FFI_LIBRARIES=/usr/lib/libffi.a не помогает:

[1593/1828] Linking CXX executable bin/lli
FAILED: bin/lli 
: && /other/bin/g++ -O2 -march=x86-64 -mmmx -msse -msse2 -mfpmath=sse -mlzcnt -mpopcnt -msahf -mno-sse4 -mno-sse4.1 -mno-shstk    -Wa,-mamd64,-O2,--strip-local-absolute -Wl,--no-omagic,--relax -pthread -pipe -Wall   -fdiagnostics-color=auto -fprofile-correction -fstack-clash-protection -fstack-protector-strong -fstack-protector-all  -fdevirtualize-speculatively  -fipa-cp-clone  -fira-loop-pressure   -floop-interchange  -floop-unroll-and-jam  -fpredictive-commoning  -fsched-spec-load  -fsplit-paths  -fstdarg-opt  -ftree-loop-distribution  -ftree-partial-pre    -fvariable-expansion-in-unroller  -fweb  -D_GLIBCXX_ASSERTIONS -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++1y -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O2 -march=x86-64 -mmmx -msse -msse2 -mfpmath=sse -mlzcnt -mpopcnt -msahf -mno-sse4 -mno-sse4.1 -mno-shstk    -Wa,-mamd64,-O2,--strip-local-absolute -Wl,--no-omagic,--relax -pthread -pipe -Wall   -fdiagnostics-color=auto -fprofile-correction -fstack-clash-protection -fstack-protector-strong -fstack-protector-all  -fdevirtualize-speculatively  -fipa-cp-clone  -fira-loop-pressure   -floop-interchange  -floop-unroll-and-jam  -fpredictive-commoning  -fsched-spec-load  -fsplit-paths  -fstdarg-opt  -ftree-loop-distribution  -ftree-partial-pre    -fvariable-expansion-in-unroller  -fweb  -D_GLIBCXX_ASSERTIONS -O2 -pthread -znoexecstack -znow -zseparate-code -zstart-stop-visibility=hidden -zrelro -static -Wl,-allow-shlib-undefined   -Wl,--export-dynamic  -Wl,-rpath-link,/w/t/src/build/./lib  -Wl,-O3 -Wl,--gc-sections tools/lli/CMakeFiles/lli.dir/lli.cpp.o -o bin/lli  -Wl,-rpath,"\$ORIGIN/../lib"  lib/libLLVMCodeGen.a  lib/libLLVMCore.a  lib/libLLVMExecutionEngine.a  lib/libLLVMIRReader.a  lib/libLLVMInterpreter.a  lib/libLLVMMC.a  lib/libLLVMMCJIT.a  lib/libLLVMObject.a  lib/libLLVMOrcJIT.a  lib/libLLVMRuntimeDyld.a  lib/libLLVMSelectionDAG.a  lib/libLLVMSupport.a  lib/libLLVMTarget.a  lib/libLLVMTransformUtils.a  lib/libLLVMX86CodeGen.a  lib/libLLVMX86AsmParser.a  lib/libLLVMX86AsmPrinter.a  lib/libLLVMX86Desc.a  lib/libLLVMX86Disassembler.a  lib/libLLVMX86Info.a  lib/libLLVMX86Utils.a  lib/libLLVMAsmParser.a  /usr/lib/libffi.so  lib/libLLVMExecutionEngine.a  lib/libLLVMRuntimeDyld.a  lib/libLLVMSelectionDAG.a  lib/libLLVMAsmPrinter.a  lib/libLLVMGlobalISel.a  lib/libLLVMCodeGen.a  lib/libLLVMBitWriter.a  lib/libLLVMScalarOpts.a  lib/libLLVMAggressiveInstCombine.a  lib/libLLVMInstCombine.a  lib/libLLVMTarget.a  lib/libLLVMTransformUtils.a  lib/libLLVMAnalysis.a  lib/libLLVMProfileData.a  lib/libLLVMObject.a  lib/libLLVMBitReader.a  lib/libLLVMCore.a  lib/libLLVMX86AsmPrinter.a  lib/libLLVMX86Utils.a  lib/libLLVMMCParser.a  lib/libLLVMMCDisassembler.a  lib/libLLVMMC.a  lib/libLLVMBinaryFormat.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMDebugInfoMSF.a  lib/libLLVMSupport.a  -lz  -lrt  -ldl  -lncursesw  -lm  lib/libLLVMDemangle.a && :
/usr/bin/ld: attempted static link of dynamic object `/usr/lib/libffi.so'
collect2: error: ld returned 1 exit status

нужно патчить какой-то рецептовый файл (какой?) или ключ должен быть правильный?

Исходная версия teod0r, :

попробовал собрать с -D BUILD_SHARED_LIBS=0 -D LLVM_BUILD_LLVM_DYLIB=0 -D LLVM_LINK_LLVM_DYLIB=0 была опять ошибка про attempted static link of dynamic object `/usr/lib/libffi.so', указание -D FFI_LIBRARIES=/usr/lib/libffi.a не помогает:

[1593/1828] Linking CXX executable bin/lli
FAILED: bin/lli 
: && /other/bin/g++ -O2 -march=x86-64 -mmmx -msse -msse2 -mfpmath=sse -mlzcnt -mpopcnt -msahf -mno-sse4 -mno-sse4.1 -mno-shstk    -Wa,-mamd64,-O2,--strip-local-absolute -Wl,--no-omagic,--relax -pthread -pipe -Wall   -fdiagnostics-color=auto -fprofile-correction -fstack-clash-protection -fstack-protector-strong -fstack-protector-all  -fdevirtualize-speculatively  -fipa-cp-clone  -fira-loop-pressure   -floop-interchange  -floop-unroll-and-jam  -fpredictive-commoning  -fsched-spec-load  -fsplit-paths  -fstdarg-opt  -ftree-loop-distribution  -ftree-partial-pre    -fvariable-expansion-in-unroller  -fweb  -D_GLIBCXX_ASSERTIONS -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++1y -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O2 -march=x86-64 -mmmx -msse -msse2 -mfpmath=sse -mlzcnt -mpopcnt -msahf -mno-sse4 -mno-sse4.1 -mno-shstk    -Wa,-mamd64,-O2,--strip-local-absolute -Wl,--no-omagic,--relax -pthread -pipe -Wall   -fdiagnostics-color=auto -fprofile-correction -fstack-clash-protection -fstack-protector-strong -fstack-protector-all  -fdevirtualize-speculatively  -fipa-cp-clone  -fira-loop-pressure   -floop-interchange  -floop-unroll-and-jam  -fpredictive-commoning  -fsched-spec-load  -fsplit-paths  -fstdarg-opt  -ftree-loop-distribution  -ftree-partial-pre    -fvariable-expansion-in-unroller  -fweb  -D_GLIBCXX_ASSERTIONS -O2 -pthread -znoexecstack -znow -zseparate-code -zstart-stop-visibility=hidden -zrelro -static -Wl,-allow-shlib-undefined   -Wl,--export-dynamic  -Wl,-rpath-link,/w/t/src/build/./lib  -Wl,-O3 -Wl,--gc-sections tools/lli/CMakeFiles/lli.dir/lli.cpp.o -o bin/lli  -Wl,-rpath,"\$ORIGIN/../lib"  lib/libLLVMCodeGen.a  lib/libLLVMCore.a  lib/libLLVMExecutionEngine.a  lib/libLLVMIRReader.a  lib/libLLVMInterpreter.a  lib/libLLVMMC.a  lib/libLLVMMCJIT.a  lib/libLLVMObject.a  lib/libLLVMOrcJIT.a  lib/libLLVMRuntimeDyld.a  lib/libLLVMSelectionDAG.a  lib/libLLVMSupport.a  lib/libLLVMTarget.a  lib/libLLVMTransformUtils.a  lib/libLLVMX86CodeGen.a  lib/libLLVMX86AsmParser.a  lib/libLLVMX86AsmPrinter.a  lib/libLLVMX86Desc.a  lib/libLLVMX86Disassembler.a  lib/libLLVMX86Info.a  lib/libLLVMX86Utils.a  lib/libLLVMAsmParser.a  /usr/lib/libffi.so  lib/libLLVMExecutionEngine.a  lib/libLLVMRuntimeDyld.a  lib/libLLVMSelectionDAG.a  lib/libLLVMAsmPrinter.a  lib/libLLVMGlobalISel.a  lib/libLLVMCodeGen.a  lib/libLLVMBitWriter.a  lib/libLLVMScalarOpts.a  lib/libLLVMAggressiveInstCombine.a  lib/libLLVMInstCombine.a  lib/libLLVMTarget.a  lib/libLLVMTransformUtils.a  lib/libLLVMAnalysis.a  lib/libLLVMProfileData.a  lib/libLLVMObject.a  lib/libLLVMBitReader.a  lib/libLLVMCore.a  lib/libLLVMX86AsmPrinter.a  lib/libLLVMX86Utils.a  lib/libLLVMMCParser.a  lib/libLLVMMCDisassembler.a  lib/libLLVMMC.a  lib/libLLVMBinaryFormat.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMDebugInfoMSF.a  lib/libLLVMSupport.a  -lz  -lrt  -ldl  -lncursesw  -lm  lib/libLLVMDemangle.a && :
/usr/bin/ld: attempted static link of dynamic object `/usr/lib/libffi.so'
collect2: error: ld returned 1 exit status
нужно патчить какой-то рецептовый файл (какой?) или ключ должен быть правильный?