Локально собирается отлично, но при сборке рпм-ки валиться на линковке или чем то таком я в сишечке и плюсах не очень.
[ 12s] LLVM-LINK r600--/lib/builtins.link.bc
[ 12s] /usr/bin/llvm-link -o r600--/lib/builtins.link.bc r600--/lib/workitem/get_group_id.ll.bc r600--/lib/workitem/get_local_size.ll.bc r600--/lib/workitem/get_local_id.ll.bc r600--/lib/workitem/get_global_size.ll.bc r600--/lib/convert.cl.bc r600--/lib/geometric/cross.cl.bc r600--/lib/geometric/dot.cl.bc r600--/lib/geometric/length.cl.bc r600--/lib/geometric/normalize.cl.bc r600--/lib/integer/abs.cl.bc r600--/lib/integer/add_sat.cl.bc r600--/lib/integer/add_sat.ll.bc r600--/lib/integer/add_sat_impl.ll.bc r600--/lib/integer/sub_sat.cl.bc r600--/lib/integer/sub_sat.ll.bc r600--/lib/integer/sub_sat_impl.ll.bc r600--/lib/math/hypot.cl.bc r600--/lib/math/mad.cl.bc r600--/lib/relational/any.cl.bc r600--/lib/workitem/get_global_id.cl.bc
[ 13s] OPT r600--/lib/builtins.opt.bc
[ 13s] /usr/bin/opt -O3 -o r600--/lib/builtins.opt.bc r600--/lib/builtins.link.bc
[ 13s] LLVM-CXX utils/prepare-builtins.o
[ 13s] clang++ -MMD -MF utils/prepare-builtins.o.d -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual -fno-exceptions -fno-rtti -c -o utils/prepare-builtins.o ./utils/prepare-builtins.cpp
[ 15s] LINK utils/prepare-builtins
[ 15s] clang++ -o utils/prepare-builtins utils/prepare-builtins.o -L/usr/lib -lpthread -ldl -lm -lLLVMBitWriter -lLLVMBitReader -lLLVMCore -lLLVMSupport
[ 16s] /usr/lib/libLLVMSupport.a(Signals.o): In function `PrintStackTrace(void*)':
[ 16s] Signals.cpp:(.text+0x6d): undefined reference to `dladdr'
[ 16s] Signals.cpp:(.text+0x1e6): undefined reference to `dladdr'
[ 16s] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ 16s] make: *** [utils/prepare-builtins] Error 1
[ 16s] error: Bad exit status from /var/tmp/rpm-tmp.waiv2c (%build)
[ 16s]
[ 16s]
[ 16s] RPM build errors:
[ 16s] Bad exit status from /var/tmp/rpm-tmp.waiv2c (%build)
Локально или из chroot в BUILDROOT собирается нормально, версии шланга одинаковые.
LLVM-LINK r600--/lib/builtins.link.bc
/usr/bin/llvm-link -o r600--/lib/builtins.link.bc r600--/lib/workitem/get_group_id.ll.bc r600--/lib/workitem/get_local_size.ll.bc r600--/lib/workitem/get_local_id.ll.bc r600--/lib/workitem/get_global_size.ll.bc r600--/lib/convert.cl.bc r600--/lib/geometric/cross.cl.bc r600--/lib/geometric/dot.cl.bc r600--/lib/geometric/length.cl.bc r600--/lib/geometric/normalize.cl.bc r600--/lib/integer/abs.cl.bc r600--/lib/integer/add_sat.cl.bc r600--/lib/integer/add_sat.ll.bc r600--/lib/integer/add_sat_impl.ll.bc r600--/lib/integer/sub_sat.cl.bc r600--/lib/integer/sub_sat.ll.bc r600--/lib/integer/sub_sat_impl.ll.bc r600--/lib/math/hypot.cl.bc r600--/lib/math/mad.cl.bc r600--/lib/relational/any.cl.bc r600--/lib/workitem/get_global_id.cl.bc
OPT r600--/lib/builtins.opt.bc
/usr/bin/opt -O3 -o r600--/lib/builtins.opt.bc r600--/lib/builtins.link.bc
LLVM-CXX utils/prepare-builtins.o
clang++ -MMD -MF utils/prepare-builtins.o.d -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual -fno-exceptions -fno-rtti -c -o utils/prepare-builtins.o ./utils/prepare-builtins.cpp
LINK utils/prepare-builtins
clang++ -o utils/prepare-builtins utils/prepare-builtins.o -L/usr/lib -lpthread -ldl -lm -lLLVMBitWriter -lLLVMBitReader -lLLVMCore -lLLVMSupport
PREPARE-BUILTINS built_libs/r600--.bc
utils/prepare-builtins -o built_libs/r600--.bc r600--/lib/builtins.opt.bc