# cat /var/tmp/portage/media-libs/mesa-18.2.3/temp/build.log  * Package: media-libs/mesa-18.2.3  * Repository: gentoo  * Maintainer: x11@gentoo.org  * USE: abi_x86_32 abi_x86_64 amd64 classic d3d9 dri3 egl elibc_glibc gallium gbm gles2 kernel_linux llvm lm_sensors opencl osmesa userland_GNU vaapi vdpau video_cards_radeonsi video_cards_virgl vulkan wayland xa xvmc  * FEATURES: preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking mesa-18.2.3.tar.xz to /var/tmp/portage/media-libs/mesa-18.2.3/work >>> Source unpacked in /var/tmp/portage/media-libs/mesa-18.2.3/work >>> Preparing source in /var/tmp/portage/media-libs/mesa-18.2.3/work/mesa-18.2.3 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/media-libs/mesa-18.2.3/work/mesa-18.2.3 ... * abi_x86_32.x86: running multilib-minimal_abi_src_configure meson --buildtype plain --libdir lib32 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --cross-file /var/tmp/portage/media-libs/mesa-18.2.3/temp/meson.i686-pc-linux-gnu.x86 -Dplatforms=x11,surfaceless,wayland,drm -Dllvm=true -Dlmsensors=true -Dlibunwind=false -Dgallium-nine=true -Dgallium-va=true -Dva-libs-path=/usr/lib32/va/drivers -Dgallium-vdpau=true -Dgallium-xa=false -Dgallium-xvmc=false -Dgallium-opencl=icd -Dglx-read-only-text=false -Dosmesa=gallium -Dbuild-tests=false -Dglx=dri -Dshared-glapi=true -Ddri3=true -Degl=true -Dgbm=true -Dgles1=false -Dgles2=true -Dselinux=false -Dvalgrind=false -Ddri-drivers= -Dgallium-drivers=radeonsi,swrast,virgl -Dvulkan-drivers=amd --buildtype plain -Db_ndebug=true /var/tmp/portage/media-libs/mesa-18.2.3/work/mesa-18.2.3 /var/tmp/portage/media-libs/mesa-18.2.3/work/mesa-18.2.3-abi_x86_32.x86 The Meson build system Version: 0.47.1 Source dir: /var/tmp/portage/media-libs/mesa-18.2.3/work/mesa-18.2.3 Build dir: /var/tmp/portage/media-libs/mesa-18.2.3/work/mesa-18.2.3-abi_x86_32.x86 Build type: cross build Program python found: YES (/var/tmp/portage/media-libs/mesa-18.2.3/temp/python2.7/bin/python) Project name: mesa Project version: 18.2.3 Appending CFLAGS from environment: '-O2 -march=znver1' Appending LDFLAGS from environment: '-Wl,-O1 -Wl,--as-needed' Appending CFLAGS from environment: '-O2 -march=znver1' Appending LDFLAGS from environment: '-Wl,-O1 -Wl,--as-needed' Native C compiler: x86_64-pc-linux-gnu-gcc -m32 (gcc 7.3.0 "x86_64-pc-linux-gnu-gcc (Gentoo 7.3.0-r3 p1.4) 7.3.0") Cross C compiler: x86_64-pc-linux-gnu-gcc -m32 (gcc 7.3.0) Appending CXXFLAGS from environment: '-O2 -march=znver1' Appending LDFLAGS from environment: '-Wl,-O1 -Wl,--as-needed' Appending CXXFLAGS from environment: '-O2 -march=znver1' Appending LDFLAGS from environment: '-Wl,-O1 -Wl,--as-needed' Native C++ compiler: x86_64-pc-linux-gnu-g++ -m32 (gcc 7.3.0 "x86_64-pc-linux-gnu-g++ (Gentoo 7.3.0-r3 p1.4) 7.3.0") Cross C++ compiler: x86_64-pc-linux-gnu-g++ -m32 (gcc 7.3.0) Host machine cpu family: x86 Host machine cpu: i686 Target machine cpu family: x86 Target machine cpu: i686 Build machine cpu family: x86 Build machine cpu: i686 Program pkg-config found: YES (/usr/bin/pkg-config) Cross dependency vdpau found: YES 1.1.1 Dependency libomxil-bellagio found: NO Dependency libtizonia found: NO Dependency libtizplatform found: NO Dependency tizilheaders found: NO Cross dependency libva found: YES 0.39.4 Cross dependency libclc found: YES 0.2.0 Program python2 found: YES (/var/tmp/portage/media-libs/mesa-18.2.3/temp/python2.7/bin/python2) Checking for function "bswap32" : YES Checking for function "bswap64" : YES Checking for function "clz" : YES Checking for function "clzll" : YES Checking for function "ctz" : YES Checking for function "expect" : YES Checking for function "ffs" : YES Checking for function "ffsll" : YES Checking for function "popcount" : YES Checking for function "popcountll" : YES Checking for function "unreachable" : YES Checking if "__attribute__((const))" compiles: YES Checking if "__attribute__((flatten))" compiles: YES Checking if "__attribute__((malloc))" compiles: YES Checking if "__attribute__((pure))" compiles: YES Checking if "__attribute__((unused))" compiles: YES Checking if "__attribute__((warn_unused_result))" compiles: YES Checking if "__attribute__((weak))" compiles: YES Checking if "__attribute__((format(...)))" compiles: YES Checking if "__attribute__((packed))" compiles: YES Checking if "__attribute__((returns_nonnull))" compiles: YES Checking if "__attribute__((visibility(...)))" compiles: YES Checking if "__attribute__((alias(...)))" compiles: YES Checking if "__attribute__((__noreturn__))" compiles: YES Compiler for C supports arguments -Wall: YES Compiler for C supports arguments -Werror=implicit-function-declaration: YES Compiler for C supports arguments -Werror=missing-prototypes: YES Compiler for C supports arguments -fno-math-errno: YES Compiler for C supports arguments -fno-trapping-math: YES Compiler for C supports arguments -Qunused-arguments: NO Compiler for C supports arguments -Wmissing-field-initializers: YES Compiler for C supports arguments -fvisibility=hidden: YES Compiler for C++ supports arguments -Wall: YES Compiler for C++ supports arguments -fno-math-errno: YES Compiler for C++ supports arguments -fno-trapping-math: YES Compiler for C++ supports arguments -Qunused-arguments: NO Compiler for C++ supports arguments -Wnon-virtual-dtor: YES Compiler for C++ supports arguments -Wmissing-field-initializers: YES Compiler for C supports arguments -Woverride-init: YES Compiler for C supports arguments -Winitializer-overrides: NO Compiler for C++ supports arguments -fvisibility=hidden: YES Compiler for C supports arguments -Werror=pointer-arith: YES Compiler for C++ supports arguments -Werror=pointer-arith: YES Compiler for C supports arguments -Werror=vla: YES Compiler for C++ supports arguments -Werror=vla: YES Checking if "GCC atomic builtins" compiles: YES Checking if "GCC atomic builtins required -latomic" links: YES Checking if "GCC 64bit atomics" links: YES Header has symbol "major": YES Checking if "xlocale.h" compiles: NO Checking if "sys/sysctl.h" compiles: YES Checking if "linux/futex.h" compiles: YES Checking if "endian.h" compiles: YES Checking if "dlfcn.h" compiles: YES Checking for function "strtof" : YES Checking for function "mkostemp" : YES Checking for function "posix_memalign" : YES Checking for function "timespec_get" : YES Checking for function "memfd_create" : NO Checking if "strtod has locale support" links: YES Checking if "Bsymbolic" links: YES Checking if "gc-sections" links: YES Checking if "version-script" links: YES Checking if "dynamic-list" links: YES Checking for function "dlopen" : NO Library dl found: YES Checking for function "dladdr" : YES Checking for function "dl_iterate_phdr" : YES Checking for function "clock_gettime" : YES Cross dependency zlib found: YES 1.2.11 Dependency threads found: YES Cross dependency libelf found: YES 0.170 Cross dependency expat found: YES 2.2.5 Library m found: YES Message: libdrm 2.4.91 needed because amdgpu has the highest requirement Cross dependency libdrm_amdgpu found: YES 2.4.96 Cross dependency libdrm_radeon found: YES 2.4.96 Cross dependency libdrm found: YES 2.4.96 Found llvm-config: /usr/lib/llvm/7/bin/i686-pc-linux-gnu-llvm-config (7.0.0) Dependency LLVM found: YES LLVM module all-targets found: YES LLVM module amdgpu found: YES LLVM module bitreader found: YES LLVM module bitwriter found: YES LLVM module coverage found: YES LLVM module engine found: YES LLVM module instrumentation found: YES LLVM module ipo found: YES LLVM module irreader found: YES LLVM module linker found: YES LLVM module lto found: YES LLVM module mcdisassembler found: YES LLVM module mcjit found: YES LLVM module objcarcopts found: YES LLVM module option found: YES LLVM module profiledata found: YES LLVM module coroutines found: YES LLVM module opencl found: NO (optional) Program bison found: YES (/usr/bin/bison) Program flex found: YES (/usr/bin/flex) Program wayland-scanner found: YES (/usr/bin/wayland-scanner) Cross dependency wayland-protocols found: YES 1.16 Cross dependency wayland-client found: YES 1.15.0 Cross dependency wayland-server found: YES 1.15.0 Cross dependency wayland-egl-backend found: YES 3 Cross dependency x11 found: YES 1.6.6 Cross dependency xext found: YES 1.3.3 Cross dependency xdamage found: YES 1.1.4 Cross dependency xfixes found: YES 5.0.3 Cross dependency xcb-glx found: YES 1.13.1 Cross dependency xxf86vm found: YES 1.1.4 Cross dependency xcb found: YES 1.13.1 Cross dependency x11-xcb found: YES 1.6.6 Cross dependency xcb-dri2 found: YES 1.13.1 Cross dependency xcb-dri3 found: YES 1.13.1 Cross dependency xcb-present found: YES 1.13.1 Cross dependency xcb-sync found: YES 1.13.1 Cross dependency xshmfence found: YES 1.3 Cross dependency dri2proto found: YES 2.8 Cross dependency glproto found: YES 1.4.17 Cross dependency xcb-xfixes found: YES 1.13.1 Cross dependency xcb-randr found: YES 1.13.1 Cross dependency xrandr found: YES 1.5.1 Library libsensors found: YES Program nm found: YES (/usr/bin/nm) DEPRECATION: build_always is deprecated. Combine build_by_default and build_always_stale instead. Checking for function "mincore" : YES src/gallium/targets/opencl/meson.build:36:0: ERROR: C++ library 'clangCodeGen' not found A full log can be found at /var/tmp/portage/media-libs/mesa-18.2.3/work/mesa-18.2.3-abi_x86_32.x86/meson-logs/meson-log.txt * ERROR: media-libs/mesa-18.2.3::gentoo failed (configure phase): * (no error message) * * Call stack: * ebuild.sh, line 124: Called src_configure * environment, line 3294: Called multilib-minimal_src_configure * environment, line 1802: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure' * environment, line 2017: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 1732: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 1730: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure' * environment, line 775: Called multilib-minimal_abi_src_configure * environment, line 1796: Called multilib_src_configure * environment, line 2322: Called meson_src_configure * environment, line 1669: Called die * The specific snippet of code: * tc-env_build "$@" || die * * If you need support, post the output of `emerge --info '=media-libs/mesa-18.2.3::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-libs/mesa-18.2.3::gentoo'`. * The complete build log is located at '/var/tmp/portage/media-libs/mesa-18.2.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/mesa-18.2.3/temp/environment'. * Working directory: '/var/tmp/portage/media-libs/mesa-18.2.3/work/mesa-18.2.3-abi_x86_32.x86' * S: '/var/tmp/portage/media-libs/mesa-18.2.3/work/mesa-18.2.3'