[Beignet] Some linkage problem

He Junyan junyan.he at inbox.com
Mon Sep 15 01:11:03 PDT 2014


Hi:

I found after apply the patch
4a61eef93401c247eb9d2819da9fa9d7106d5eba

Enable ICC and CLANG compiler for beignet
the 'COMPILER' is to choose the detail compiler,the default is GCC.
Signed-off-by: Lv Meng <meng.lv at intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong at linux.intel.com> 


some linkage problems occur.

I do not install my clang/llvm libs in the system dirs,
may cause some difference




Linking CXX shared library libgbe.so
cd /home/robinhe/CL/beignet/backend/src && /usr/bin/cmake -E
cmake_link_script CMakeFiles/gbe.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC  -funroll-loops -fstrict-aliasing -msse2 -msse3
-mssse3 -msse4.1 -fPIC -Wall -mfpmath=sse -Wcast-align -Wl,-E -std=c++0x
-Wno-invalid-offsetof -fno-rtti -I/home/robinhe/CL/build/include
-D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -DGBE_DEBUG_MEMORY=0  -DGBE_COMPILER_AVAILABLE=1
-fvisibility=hidden -O2 -g -DGBE_DEBUG=1 -Wl,--no-undefined  -shared
-Wl,-soname,libgbe.so -o libgbe.so
CMakeFiles/gbe.dir/sys/intrusive_list.cpp.o
CMakeFiles/gbe.dir/sys/assert.cpp.o CMakeFiles/gbe.dir/sys/alloc.cpp.o
CMakeFiles/gbe.dir/sys/mutex.cpp.o CMakeFiles/gbe.dir/sys/platform.cpp.o
CMakeFiles/gbe.dir/sys/cvar.cpp.o CMakeFiles/gbe.dir/ir/context.cpp.o
CMakeFiles/gbe.dir/ir/profile.cpp.o CMakeFiles/gbe.dir/ir/type.cpp.o
CMakeFiles/gbe.dir/ir/unit.cpp.o CMakeFiles/gbe.dir/ir/constant.cpp.o
CMakeFiles/gbe.dir/ir/sampler.cpp.o CMakeFiles/gbe.dir/ir/image.cpp.o
CMakeFiles/gbe.dir/ir/instruction.cpp.o
CMakeFiles/gbe.dir/ir/liveness.cpp.o
CMakeFiles/gbe.dir/ir/register.cpp.o
CMakeFiles/gbe.dir/ir/function.cpp.o CMakeFiles/gbe.dir/ir/value.cpp.o
CMakeFiles/gbe.dir/ir/lowering.cpp.o CMakeFiles/gbe.dir/ir/printf.cpp.o
CMakeFiles/gbe.dir/ir/structural_analysis.cpp.o
CMakeFiles/gbe.dir/ir/immediate.cpp.o
CMakeFiles/gbe.dir/backend/context.cpp.o
CMakeFiles/gbe.dir/backend/program.cpp.o
CMakeFiles/gbe.dir/llvm/llvm_bitcode_link.cpp.o
CMakeFiles/gbe.dir/llvm/llvm_gen_backend.cpp.o
CMakeFiles/gbe.dir/llvm/llvm_passes.cpp.o
CMakeFiles/gbe.dir/llvm/llvm_scalarize.cpp.o
CMakeFiles/gbe.dir/llvm/llvm_intrinsic_lowering.cpp.o
CMakeFiles/gbe.dir/llvm/llvm_barrier_nodup.cpp.o
CMakeFiles/gbe.dir/llvm/llvm_printf_parser.cpp.o
CMakeFiles/gbe.dir/llvm/llvm_to_gen.cpp.o
CMakeFiles/gbe.dir/llvm/llvm_loadstore_optimization.cpp.o
CMakeFiles/gbe.dir/backend/gen/gen_mesa_disasm.c.o
CMakeFiles/gbe.dir/backend/gen_insn_selection.cpp.o
CMakeFiles/gbe.dir/backend/gen_insn_scheduling.cpp.o
CMakeFiles/gbe.dir/backend/gen_reg_allocation.cpp.o
CMakeFiles/gbe.dir/backend/gen_context.cpp.o
CMakeFiles/gbe.dir/backend/gen75_context.cpp.o
CMakeFiles/gbe.dir/backend/gen_program.cpp.o
CMakeFiles/gbe.dir/backend/gen_insn_compact.cpp.o
CMakeFiles/gbe.dir/backend/gen_encoder.cpp.o
CMakeFiles/gbe.dir/backend/gen75_encoder.cpp.o -ldrm_intel -ldrm
-ldrm /home/robinhe/CL/build/lib/libclangFrontend.a /home/robinhe/CL/build/lib/libclangSerialization.a /home/robinhe/CL/build/lib/libclangDriver.a /home/robinhe/CL/build/lib/libclangCodeGen.a /home/robinhe/CL/build/lib/libclangSema.a /home/robinhe/CL/build/lib/libclangStaticAnalyzerFrontend.a /home/robinhe/CL/build/lib/libclangStaticAnalyzerCheckers.a /home/robinhe/CL/build/lib/libclangStaticAnalyzerCore.a /home/robinhe/CL/build/lib/libclangAnalysis.a /home/robinhe/CL/build/lib/libclangEdit.a /home/robinhe/CL/build/lib/libclangAST.a /home/robinhe/CL/build/lib/libclangParse.a /home/robinhe/CL/build/lib/libclangSema.a /home/robinhe/CL/build/lib/libclangLex.a /home/robinhe/CL/build/lib/libclangBasic.a -lLLVMInstrumentation -lLLVMArchive -lLLVMLinker -lLLVMIRReader -lLLVMBitReader -lLLVMAsmParser -lLLVMDebugInfo -lLLVMOption -lLLVMipo -lLLVMVectorize -lLLVMBitWriter -lLLVMTableGen -lLLVMSystemZCodeGen -lLLVMSystemZAsmParser -lLLVMSystemZDesc -lLLVMSystemZInfo -lLLVMSystemZAsmPrinter -lLLVMHexagonCodeGen -lLLVMHexagonAsmPrinter -lLLVMHexagonDesc -lLLVMHexagonInfo -lLLVMNVPTXCodeGen -lLLVMNVPTXDesc -lLLVMNVPTXInfo -lLLVMNVPTXAsmPrinter -lLLVMMBlazeDisassembler -lLLVMMBlazeCodeGen -lLLVMMBlazeDesc -lLLVMMBlazeAsmPrinter -lLLVMMBlazeAsmParser -lLLVMMBlazeInfo -lLLVMCppBackendCodeGen -lLLVMCppBackendInfo -lLLVMMSP430CodeGen -lLLVMMSP430Desc -lLLVMMSP430Info -lLLVMMSP430AsmPrinter -lLLVMXCoreDisassembler -lLLVMXCoreCodeGen -lLLVMXCoreDesc -lLLVMXCoreInfo -lLLVMXCoreAsmPrinter -lLLVMMipsDisassembler -lLLVMMipsCodeGen -lLLVMMipsAsmParser -lLLVMMipsDesc -lLLVMMipsInfo -lLLVMMipsAsmPrinter -lLLVMARMDisassembler -lLLVMARMCodeGen -lLLVMARMAsmParser -lLLVMARMDesc -lLLVMARMInfo -lLLVMARMAsmPrinter -lLLVMAArch64Disassembler -lLLVMAArch64CodeGen -lLLVMAArch64AsmParser -lLLVMAArch64Desc -lLLVMAArch64Info -lLLVMAArch64AsmPrinter -lLLVMAArch64Utils -lLLVMPowerPCCodeGen -lLLVMPowerPCDesc -lLLVMPowerPCAsmPrinter -lLLVMPowerPCAsmParser -lLLVMPowerPCInfo -lLLVMSparcCodeGen -lLLVMSparcDesc -lLLVMSparcInfo -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMMCDisassembler -lLLVMMCParser -lLLVMInterpreter -lLLVMMCJIT -lLLVMJIT -lLLVMCodeGen -lLLVMObjCARCOpts -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport -lpthread -ldl /home/robinhe/CL/build/lib/libclangStaticAnalyzerFrontend.a /home/robinhe/CL/build/lib/libclangStaticAnalyzerCheckers.a /home/robinhe/CL/build/lib/libclangStaticAnalyzerCore.a /home/robinhe/CL/build/lib/libclangAnalysis.a /home/robinhe/CL/build/lib/libclangEdit.a /home/robinhe/CL/build/lib/libclangAST.a /home/robinhe/CL/build/lib/libclangParse.a /home/robinhe/CL/build/lib/libclangLex.a /home/robinhe/CL/build/lib/libclangBasic.a -lLLVMInstrumentation -lLLVMArchive -lLLVMLinker -lLLVMIRReader -lLLVMBitReader -lLLVMAsmParser -lLLVMDebugInfo -lLLVMOption -lLLVMipo -lLLVMVectorize -lLLVMBitWriter -lLLVMTableGen -lLLVMSystemZCodeGen -lLLVMSystemZAsmParser -lLLVMSystemZDesc -lLLVMSystemZInfo -lLLVMSystemZAsmPrinter -lLLVMHexagonCodeGen -lLLVMHexagonAsmPrinter -lLLVMHexagonDesc -lLLVMHexagonInfo -lLLVMNVPTXCodeGen -lLLVMNVPTXDesc -lLLVMNVPTXInfo -lLLVMNVPTXAsmPrinter -lLLVMMBlazeDisassembler -lLLVMMBlazeCodeGen -lLLVMMBlazeDesc -lLLVMMBlazeAsmPrinter -lLLVMMBlazeAsmParser -lLLVMMBlazeInfo -lLLVMCppBackendCodeGen -lLLVMCppBackendInfo -lLLVMMSP430CodeGen -lLLVMMSP430Desc -lLLVMMSP430Info -lLLVMMSP430AsmPrinter -lLLVMXCoreDisassembler -lLLVMXCoreCodeGen -lLLVMXCoreDesc -lLLVMXCoreInfo -lLLVMXCoreAsmPrinter -lLLVMMipsDisassembler -lLLVMMipsCodeGen -lLLVMMipsAsmParser -lLLVMMipsDesc -lLLVMMipsInfo -lLLVMMipsAsmPrinter -lLLVMARMDisassembler -lLLVMARMCodeGen -lLLVMARMAsmParser -lLLVMARMDesc -lLLVMARMInfo -lLLVMARMAsmPrinter -lLLVMAArch64Disassembler -lLLVMAArch64CodeGen -lLLVMAArch64AsmParser -lLLVMAArch64Desc -lLLVMAArch64Info -lLLVMAArch64AsmPrinter -lLLVMAArch64Utils -lLLVMPowerPCCodeGen -lLLVMPowerPCDesc -lLLVMPowerPCAsmPrinter -lLLVMPowerPCAsmParser -lLLVMPowerPCInfo -lLLVMSparcCodeGen -lLLVMSparcDesc -lLLVMSparcInfo -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMMCDisassembler -lLLVMMCParser -lLLVMInterpreter -lLLVMMCJIT -lLLVMJIT -lLLVMCodeGen -lLLVMObjCARCOpts -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport -lpthread -ldl 
/usr/bin/ld: cannot find -lLLVMInstrumentation
/usr/bin/ld: cannot find -lLLVMArchive
/usr/bin/ld: cannot find -lLLVMLinker
/usr/bin/ld: cannot find -lLLVMIRReader
/usr/bin/ld: cannot find -lLLVMBitReader
/usr/bin/ld: cannot find -lLLVMAsmParser
/usr/bin/ld: cannot find -lLLVMDebugInfo
/usr/bin/ld: cannot find -lLLVMOption
/usr/bin/ld: cannot find -lLLVMipo
/usr/bin/ld: cannot find -lLLVMVectorize
/usr/bin/ld: cannot find -lLLVMBitWriter
/usr/bin/ld: cannot find -lLLVMTableGen
/usr/bin/ld: cannot find -lLLVMSystemZCodeGen
/usr/bin/ld: cannot find -lLLVMSystemZAsmParser





More information about the Beignet mailing list