Hello, I got the following. Probably the make system tries to link 32 bit version against 64 bit lib or something but I have no idea how to correct that myself in the ebuild. Any help would be greatly appreciated. [ 51%] Linking CXX shared library libgbe.so cd /var/tmp/portage/dev-libs/beignet-1.3.2/work/Beignet-1.3.2-Source-abi_x86_32.x86/backend/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/gbe.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-g++ -m32 -fPIC -O2 -pipe -march=native -ggdb -fPIC -std=c++0x -Wno-invalid-offsetof -fno-rtti -I/usr/lib64/llvm/5/include -DLLVM_BUILD_GLOBAL_ISEL -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 -DNDEBUG -DGBE_DEBUG=0 -Wl,-O1 -Wl,--as-needed -Wl,-Bsymbolic -Wl,--no-undefined -L/usr/lib64/llvm/5/lib64 -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/half.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/profiling.cpp.o CMakeFiles/gbe.dir/ir/printf.cpp.o CMakeFiles/gbe.dir/ir/immediate.cpp.o CMakeFiles/gbe.dir/ir/structurizer.cpp.o CMakeFiles/gbe.dir/ir/reloc.cpp.o CMakeFiles/gbe.dir/backend/context.cpp.o CMakeFiles/gbe.dir/backend/program.cpp.o CMakeFiles/gbe.dir/llvm/llvm_sampler_fix.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_profiling.cpp.o CMakeFiles/gbe.dir/llvm/ExpandConstantExpr.cpp.o CMakeFiles/gbe.dir/llvm/ExpandUtils.cpp.o CMakeFiles/gbe.dir/llvm/PromoteIntegers.cpp.o CMakeFiles/gbe.dir/llvm/ExpandLargeIntegers.cpp.o CMakeFiles/gbe.dir/llvm/llvm_device_enqueue.cpp.o CMakeFiles/gbe.dir/llvm/StripAttributes.cpp.o CMakeFiles/gbe.dir/llvm/llvm_to_gen.cpp.o CMakeFiles/gbe.dir/llvm/llvm_loadstore_optimization.cpp.o CMakeFiles/gbe.dir/llvm/llvm_unroll.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_selection_optimize.cpp.o CMakeFiles/gbe.dir/backend/gen_insn_scheduling.cpp.o CMakeFiles/gbe.dir/backend/gen_insn_selection_output.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/gen8_context.cpp.o CMakeFiles/gbe.dir/backend/gen9_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/gen7_encoder.cpp.o CMakeFiles/gbe.dir/backend/gen75_encoder.cpp.o CMakeFiles/gbe.dir/backend/gen8_encoder.cpp.o CMakeFiles/gbe.dir/backend/gen9_encoder.cpp.o -Wl,-rpath,/usr/lib64/llvm/5/lib64: -ldrm_intel -ldrm -ldrm /usr/lib64/llvm/5/lib64/libclangFrontend.so /usr/lib64/llvm/5/lib64/libclangSerialization.so /usr/lib64/llvm/5/lib64/libclangDriver.so /usr/lib64/llvm/5/lib64/libclangCodeGen.so /usr/lib64/llvm/5/lib64/libclangSema.so /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerFrontend.so /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerCheckers.so /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerCore.so /usr/lib64/llvm/5/lib64/libclangAnalysis.so /usr/lib64/llvm/5/lib64/libclangEdit.so /usr/lib64/llvm/5/lib64/libclangAST.so /usr/lib64/llvm/5/lib64/libclangParse.so /usr/lib64/llvm/5/lib64/libclangSema.so /usr/lib64/llvm/5/lib64/libclangLex.so /usr/lib64/llvm/5/lib64/libclangBasic.so -lLLVMLTO -lLLVMPasses -lLLVMObjCARCOpts -lLLVMSymbolize -lLLVMDebugInfoPDB -lLLVMDebugInfoDWARF -lLLVMTableGen -lLLVMDlltoolDriver -lLLVMLineEditor -lLLVMOrcJIT -lLLVMCoverage -lLLVMMIRParser -lLLVMObjectYAML -lLLVMLibDriver -lLLVMOption -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMGlobalISel -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMDebugInfoCodeView -lLLVMDebugInfoMSF -lLLVMX86Desc -lLLVMMCDisassembler -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMMCJIT -lLLVMInterpreter -lLLVMExecutionEngine -lLLVMRuntimeDyld -lLLVMCodeGen -lLLVMTarget -lLLVMCoroutines -lLLVMipo -lLLVMInstrumentation -lLLVMVectorize -lLLVMScalarOpts -lLLVMLinker -lLLVMIRReader -lLLVMAsmParser -lLLVMInstCombine -lLLVMTransformUtils -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMObject -lLLVMMCParser -lLLVMMC -lLLVMBitReader -lLLVMCore -lLLVMBinaryFormat -lLLVMSupport -lLLVMDemangle -lpthread -ldl -ltinfo /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerFrontend.so /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerCheckers.so /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerCore.so /usr/lib64/llvm/5/lib64/libclangAnalysis.so /usr/lib64/llvm/5/lib64/libclangEdit.so /usr/lib64/llvm/5/lib64/libclangAST.so /usr/lib64/llvm/5/lib64/libclangParse.so /usr/lib64/llvm/5/lib64/libclangLex.so /usr/lib64/llvm/5/lib64/libclangBasic.so -lLLVMLTO -lLLVMPasses -lLLVMObjCARCOpts -lLLVMSymbolize -lLLVMDebugInfoPDB -lLLVMDebugInfoDWARF -lLLVMTableGen -lLLVMDlltoolDriver -lLLVMLineEditor -lLLVMOrcJIT -lLLVMCoverage -lLLVMMIRParser -lLLVMObjectYAML -lLLVMLibDriver -lLLVMOption -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMGlobalISel -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMDebugInfoCodeView -lLLVMDebugInfoMSF -lLLVMX86Desc -lLLVMMCDisassembler -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMMCJIT -lLLVMInterpreter -lLLVMExecutionEngine -lLLVMRuntimeDyld -lLLVMCodeGen -lLLVMTarget -lLLVMCoroutines -lLLVMipo -lLLVMInstrumentation -lLLVMVectorize -lLLVMScalarOpts -lLLVMLinker -lLLVMIRReader -lLLVMAsmParser -lLLVMInstCombine -lLLVMTransformUtils -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMObject -lLLVMMCParser -lLLVMMC -lLLVMBitReader -lLLVMCore -lLLVMBinaryFormat -lLLVMSupport -lLLVMDemangle -lpthread -ldl -ltinfo /usr/lib64/llvm/5/lib64/libclangFrontend.so: error adding symbols: File in wrong format collect2: error: ld returned 1 exit status make[2]: *** [backend/src/CMakeFiles/gbe.dir/build.make:1707: backend/src/libgbe.so] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-libs/beignet-1.3.2/work/Beignet-1.3.2-Source-abi_x86_32.x86' make[1]: *** [CMakeFiles/Makefile2:202: backend/src/CMakeFiles/gbe.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/dev-libs/beignet-1.3.2/work/Beignet-1.3.2-Source-abi_x86_32.x86' make: *** [Makefile:152: all] Error 2 # emerge --info '=dev-libs/beignet-1.3.2::gentoo' Portage 2.3.14 (python 3.4.6-final-0, targets/base, gcc-6.4.0, glibc-2.26-r3, 4.12.0 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.12.0-x86_64-Intel-R-_Core-TM-_i5-5300U_CPU_@_2.30GHz-with-gentoo-2.4.1 KiB Mem: 12064160 total, 645600 free KiB Swap: 54525948 total, 48363516 free Head commit of repository gentoo: 0af215613794ce2867c5cbb368f2659dad057a94 Head commit of repository steam-overlay: 356032984149c3ca0bd0cceea6e00f973356d226 sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p2) 2.29.1 app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.26.1-r1::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.6.3-r1::gentoo dev-util/cmake: 3.9.6::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.34.8::gentoo sys-apps/sandbox: 2.12::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.15.1-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo sys-devel/gcc: 6.4.0::gentoo sys-devel/gcc-config: 1.9.0::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: git location: /usr/portage [0/9874] sync-type: git sync-uri: git://git.gentoo.org/repo/gentoo.git priority: -1000 gp-base location: /etc/gp/base masters: gentoo priority: 0 steam-overlay location: /usr/portage/overlays/steam sync-type: git sync-umask: 077 sync-uri: git://github.com/anyc/steam-overlay.git masters: gentoo gp-machine location: /etc/gp/machine masters: gentoo gp-base priority: 1 Installed sets: @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA FraunhoferFDK google-chrome" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/lang uage.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native -ggdb" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--complete-graph --noconfmem --keep-going" FCFLAGS="-O2 -pipe -ggdb" FEATURES="assume-digests binpkg-logs buildsyspkg compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-ow ned sandbox sfperms splitdebug strict unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -ggdb" GENTOO_MIRRORS="http://ftp.vectranet.pl/gentoo/" LANG="en_US.UTF8" LC_ALL="en_US.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclud e=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi aio alsa amd64 audit bash-completion bluetooth branding bzip2 cairo caps cdda cdr cli conntrack cracklib crypt cups cxx dbus dri dts dvd dvdr elogind emboss encode exif expat fam filecaps firefox flac gif glamor gmp gpg http2 hwdb iconv icu idn introspection ipv6 jpeg kipi kmod kwallet lcms libnotify lzma mad mng modules mp3 mp4 mpeg multilib multitarget ncurses nftables nls nptl nptlonly ogg open gl openmp pam pango pcap pcre pdf phonon plasma png policykit ppds readline sctp sdl seccomp semantic-desktop session spell ssl startup-notification svg sysfs tiff truetype udev udisks unicode upower vim-syntax v orbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xscreensaver xv xvid zlib" ABI_X86="64 32" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" INPUT_DEVI CES="evdev synaptics" KERNEL="linux" L10N="en pl" LINGUAS="en pl" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="i965" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Could you please attach the full build log?
Created attachment 504976 [details] build.log
Created attachment 504978 [details] build-abi_x86_32.x86.log
Hi! I am seeing the same problem (linking of 64 bit elf dynamic library in the abi_x86_32 build). Building for 64 bit only works quite nicely. file on /usr/lib64/llvm/5/lib64/libclangFrontend.so.5.0.0 correctly reports: /usr/lib64/llvm/5/lib64/libclangFrontend.so.5.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, stripped
Turns out that at some point in the past I managed to break propagation of ABI_X86 flags from Beignet to its dependencies. Or perhaps it only worked at first (I am sure it did) by accident. Either way, I have just pushed an updated version of the 1.3.2 ebuild which I have confirmed to correctly build both x86_32 and x86_64 libraries - at least with stable LLVM anyway.
I think it's not propagation because I have 32 bit set everywhere (make.conf). Still getting the problem with current portage. And if it's trying to build 32 bit version this: /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerFrontend.so /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerCheckers.so /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerCore.so /usr/lib64/llvm/5/lib64/libclangAnalysis.so /usr/lib64/llvm/5/lib64/libclangEdit.so /usr/lib64/llvm/ 5/lib64/libclangAST.so /usr/lib64/llvm/5/lib64/libclangParse.so /usr/lib64/llvm/5/lib64/libclangLex.so /usr/lib64/llvm/5/lib64/libclangBasic.so in the linker invocation doesn't look right to me. [ 51%] Linking CXX shared library libgbe.so cd /var/tmp/portage/dev-libs/beignet-1.3.2/work/Beignet-1.3.2-Source-abi_x86_32.x86/backend/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/gbe.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-g++ -m32 -fPIC -O2 -pipe -march=native -ggdb -fPIC -std=c++0x -Wno-invalid-offsetof -fno-rtti -I/usr/lib64/llvm/5/include -DLLVM_BUILD_GLOBAL_ISEL -D_GNU_SOURCE -D__STDC_CONSTANT_MA CROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DGBE_DEBUG_MEMORY=0 -DGBE_COMPILER_AVAILABLE=1 -fvisibility=hidden -O2 -DNDEBUG -DGBE_DEBUG=0 -Wl,-O1 -Wl,--as-needed -Wl,-Bsymbolic -Wl,--no-undefined -L/usr/l ib64/llvm/5/lib64 -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 C MakeFiles/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 CMa keFiles/gbe.dir/ir/constant.cpp.o CMakeFiles/gbe.dir/ir/sampler.cpp.o CMakeFiles/gbe.dir/ir/image.cpp.o CMakeFiles/gbe.dir/ir/half.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/profiling.cpp.o CMakeFiles/gbe.dir/ir/print f.cpp.o CMakeFiles/gbe.dir/ir/immediate.cpp.o CMakeFiles/gbe.dir/ir/structurizer.cpp.o CMakeFiles/gbe.dir/ir/reloc.cpp.o CMakeFiles/gbe.dir/backend/context.cpp.o CMakeFiles/gbe.dir/backend/program.cpp.o CMakeFile s/gbe.dir/llvm/llvm_sampler_fix.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_scalariz e.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_profiling.cpp.o CMakeFi les/gbe.dir/llvm/ExpandConstantExpr.cpp.o CMakeFiles/gbe.dir/llvm/ExpandUtils.cpp.o CMakeFiles/gbe.dir/llvm/PromoteIntegers.cpp.o CMakeFiles/gbe.dir/llvm/ExpandLargeIntegers.cpp.o CMakeFiles/gbe.dir/llvm/llvm_dev ice_enqueue.cpp.o CMakeFiles/gbe.dir/llvm/StripAttributes.cpp.o CMakeFiles/gbe.dir/llvm/llvm_to_gen.cpp.o CMakeFiles/gbe.dir/llvm/llvm_loadstore_optimization.cpp.o CMakeFiles/gbe.dir/llvm/llvm_unroll.cpp.o CMakeF iles/gbe.dir/backend/gen/gen_mesa_disasm.c.o CMakeFiles/gbe.dir/backend/gen_insn_selection.cpp.o CMakeFiles/gbe.dir/backend/gen_insn_selection_optimize.cpp.o CMakeFiles/gbe.dir/backend/gen_insn_scheduling.cpp.o C MakeFiles/gbe.dir/backend/gen_insn_selection_output.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/gen8_context.cpp.o CMakeFiles/gbe.dir/backend/gen9_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_enco der.cpp.o CMakeFiles/gbe.dir/backend/gen7_encoder.cpp.o CMakeFiles/gbe.dir/backend/gen75_encoder.cpp.o CMakeFiles/gbe.dir/backend/gen8_encoder.cpp.o CMakeFiles/gbe.dir/backend/gen9_encoder.cpp.o -Wl,-rpath,/usr/l ib64/llvm/5/lib64: -ldrm_intel -ldrm -ldrm /usr/lib64/llvm/5/lib64/libclangFrontend.so /usr/lib64/llvm/5/lib64/libclangSerialization.so /usr/lib64/llvm/5/lib64/libclangDriver.so /usr/lib64/llvm/5/lib64/libclangCo deGen.so /usr/lib64/llvm/5/lib64/libclangSema.so /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerFrontend.so /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerCheckers.so /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerC ore.so /usr/lib64/llvm/5/lib64/libclangAnalysis.so /usr/lib64/llvm/5/lib64/libclangEdit.so /usr/lib64/llvm/5/lib64/libclangAST.so /usr/lib64/llvm/5/lib64/libclangParse.so /usr/lib64/llvm/5/lib64/libclangSema.so / usr/lib64/llvm/5/lib64/libclangLex.so /usr/lib64/llvm/5/lib64/libclangBasic.so -lLLVMLTO -lLLVMPasses -lLLVMObjCARCOpts -lLLVMSymbolize -lLLVMDebugInfoPDB -lLLVMDebugInfoDWARF -lLLVMTableGen -lLLVMDlltoolDriver - lLLVMLineEditor -lLLVMOrcJIT -lLLVMCoverage -lLLVMMIRParser -lLLVMObjectYAML -lLLVMLibDriver -lLLVMOption -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMGlobalISel -lLLVMSelectionDAG -lLLVMAsmPri nter -lLLVMDebugInfoCodeView -lLLVMDebugInfoMSF -lLLVMX86Desc -lLLVMMCDisassembler -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMMCJIT -lLLVMInterpreter -lLLVMExecutionEngine -lLLVMRuntimeDyld -lLLVMCode Gen -lLLVMTarget -lLLVMCoroutines -lLLVMipo -lLLVMInstrumentation -lLLVMVectorize -lLLVMScalarOpts -lLLVMLinker -lLLVMIRReader -lLLVMAsmParser -lLLVMInstCombine -lLLVMTransformUtils -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMObject -lLLVMMCParser -lLLVMMC -lLLVMBitReader -lLLVMCore -lLLVMBinaryFormat -lLLVMSupport -lLLVMDemangle -lpthread -ldl -ltinfo /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerFrontend.so /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerCheckers.so /usr/lib64/llvm/5/lib64/libclangStaticAnalyzerCore.so /usr/lib64/llvm/5/lib64/libclangAnalysis.so /usr/lib64/llvm/5/lib64/libclangEdit.so /usr/lib64/llvm/ 5/lib64/libclangAST.so /usr/lib64/llvm/5/lib64/libclangParse.so /usr/lib64/llvm/5/lib64/libclangLex.so /usr/lib64/llvm/5/lib64/libclangBasic.so -lLLVMLTO -lLLVMPasses -lLLVMObjCARCOpts -lLLVMSymbolize -lLLVMDebug InfoPDB -lLLVMDebugInfoDWARF -lLLVMTableGen -lLLVMDlltoolDriver -lLLVMLineEditor -lLLVMOrcJIT -lLLVMCoverage -lLLVMMIRParser -lLLVMObjectYAML -lLLVMLibDriver -lLLVMOption -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMGlobalISel -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMDebugInfoCodeView -lLLVMDebugInfoMSF -lLLVMX86Desc -lLLVMMCDisassembler -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMMCJIT -lL LVMInterpreter -lLLVMExecutionEngine -lLLVMRuntimeDyld -lLLVMCodeGen -lLLVMTarget -lLLVMCoroutines -lLLVMipo -lLLVMInstrumentation -lLLVMVectorize -lLLVMScalarOpts -lLLVMLinker -lLLVMIRReader -lLLVMAsmParser -lLL VMInstCombine -lLLVMTransformUtils -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMObject -lLLVMMCParser -lLLVMMC -lLLVMBitReader -lLLVMCore -lLLVMBinaryFormat -lLLVMSupport -lLLVMDemangle -lpthread -ldl - ltinfo /usr/lib64/llvm/5/lib64/libclangFrontend.so: error adding symbols: File in wrong format collect2: error: ld returned 1 exit status make[2]: *** [backend/src/CMakeFiles/gbe.dir/build.make:1707: backend/src/libgbe.so] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-libs/beignet-1.3.2/work/Beignet-1.3.2-Source-abi_x86_32.x86' make[1]: *** [CMakeFiles/Makefile2:165: backend/src/CMakeFiles/gbe.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/dev-libs/beignet-1.3.2/work/Beignet-1.3.2-Source-abi_x86_32.x86' make: *** [Makefile:152: all] Error 2 * ERROR: dev-libs/beignet-1.3.2::gentoo failed (compile phase): * emake failed
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61d7e4919bfe1549ede7153efe859fa60ebe9294 commit 61d7e4919bfe1549ede7153efe859fa60ebe9294 Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2017-12-19 14:35:47 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2017-12-19 14:38:24 +0000 dev-libs/beignet: fix multilib libdir detection for LLVM-4+ By default Beignet CMake scripts look for LLVM parameters using llvm-config regardless of target architecture. For multilib builds on amd64 against >=sys-devel/llvm-4.0.0 this resulted in the linker being passed the abi_x86_64 libdir in abi_x86_32 mode, causing "file in wrong format" errors and build failures. We now work around this issue by having Beignet's FindLLVM.cmake look for ${CHOST}-llvm-config instead. Hopefully there will be an official upstream fix for this at some point. Closes: https://bugs.gentoo.org/638078 Package-Manager: Portage-2.3.13, Repoman-2.3.3 dev-libs/beignet/beignet-1.3.2.ebuild | 1 + .../beignet-1.3.2_cmake-llvm-config-multilib.patch | 17 +++++++++++++++++ 2 files changed, 18 insertions(+)