Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 663534 - media-libs/mesa-18.2.0_rc2 - ../mesa-18.2.0-rc2/src/egl/drivers/dri2/platform_x11.c:48:10: fatal error: loader.h: No such file or directory
Summary: media-libs/mesa-18.2.0_rc2 - ../mesa-18.2.0-rc2/src/egl/drivers/dri2/platform...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-13 19:22 UTC by Karl Lindén
Modified: 2018-08-22 16:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,21.89 KB, text/plain)
2018-08-13 19:26 UTC, Karl Lindén
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Lindén 2018-08-13 19:22:35 UTC
When emerging media-libs/mesa-18.2.0_rc2 the compilation fails with the following error:

[629/1032] x86_64-pc-linux-gnu-gcc -m32 -Isrc/egl/src@egl@@EGL@sha -Isrc/egl -I../mesa-18.2.0-rc2/src/egl -Iinclude -I../mesa-18.2.0-rc2/include -I../mesa-18.2.0-rc2/include/drm-uapi -Isrc -I../mesa-18.2.0-rc2/src -I../mesa-18.2.0-rc2/src/egl/main -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c99 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DVERSION="18.2.0-rc2"' -DPACKAGE_VERSION=VERSION '-DPACKAGE_BUGREPORT="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa"' -DGLX_USE_TLS -DHAVE_ST_VDPAU -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_SURFACELESS_PLATFORM -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DMAJOR_IN_SYSMACROS -DHAVE_SYS_SYSCTL_H -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_POSIX_MEMALIGN -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_PTHREAD -DHAVE_LIBDRM -Wall -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-math-errno -fno-trapping-math -Wno-missing-field-initializers -fPIC -pthread -fvisibility=hidden '-DDEFAULT_DRIVER_DIR="/usr/lib32/dri"' -D_EGL_BUILT_IN_DRIVER_DRI2 -DHAVE_MINCORE -D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_X11 -O2 -fomit-frame-pointer -pipe -fno-stack-protector -march=amdfam10 -MD -MQ 'src/egl/src@egl@@EGL@sha/drivers_dri2_platform_x11.c.o' -MF 'src/egl/src@egl@@EGL@sha/drivers_dri2_platform_x11.c.o.d' -o 'src/egl/src@egl@@EGL@sha/drivers_dri2_platform_x11.c.o' -c ../mesa-18.2.0-rc2/src/egl/drivers/dri2/platform_x11.c
FAILED: src/egl/src@egl@@EGL@sha/drivers_dri2_platform_x11.c.o 
x86_64-pc-linux-gnu-gcc -m32 -Isrc/egl/src@egl@@EGL@sha -Isrc/egl -I../mesa-18.2.0-rc2/src/egl -Iinclude -I../mesa-18.2.0-rc2/include -I../mesa-18.2.0-rc2/include/drm-uapi -Isrc -I../mesa-18.2.0-rc2/src -I../mesa-18.2.0-rc2/src/egl/main -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c99 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DVERSION="18.2.0-rc2"' -DPACKAGE_VERSION=VERSION '-DPACKAGE_BUGREPORT="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa"' -DGLX_USE_TLS -DHAVE_ST_VDPAU -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_SURFACELESS_PLATFORM -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DMAJOR_IN_SYSMACROS -DHAVE_SYS_SYSCTL_H -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_POSIX_MEMALIGN -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_PTHREAD -DHAVE_LIBDRM -Wall -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-math-errno -fno-trapping-math -Wno-missing-field-initializers -fPIC -pthread -fvisibility=hidden '-DDEFAULT_DRIVER_DIR="/usr/lib32/dri"' -D_EGL_BUILT_IN_DRIVER_DRI2 -DHAVE_MINCORE -D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_X11 -O2 -fomit-frame-pointer -pipe -fno-stack-protector -march=amdfam10 -MD -MQ 'src/egl/src@egl@@EGL@sha/drivers_dri2_platform_x11.c.o' -MF 'src/egl/src@egl@@EGL@sha/drivers_dri2_platform_x11.c.o.d' -o 'src/egl/src@egl@@EGL@sha/drivers_dri2_platform_x11.c.o' -c ../mesa-18.2.0-rc2/src/egl/drivers/dri2/platform_x11.c
../mesa-18.2.0-rc2/src/egl/drivers/dri2/platform_x11.c:48:10: fatal error: loader.h: No such file or directory
 #include "loader.h"
          ^~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

# emerge -pqv '=media-libs/mesa-18.2.0_rc2::gentoo'
receiving incremental file list
Packages
      1,033,292 100%   20.97MB/s    0:00:00 (xfr#1, to-chk=0/1)

sent 43 bytes  received 1,033,626 bytes  2,067,338.00 bytes/sec
total size is 1,033,292  speedup is 1.00
[ebuild     U ] media-libs/mesa-18.2.0_rc2 [18.1.5] USE="egl gallium vaapi vdpau -classic -d3d9 -debug -dri3 -gbm -gles1 -gles2 -llvm -lm_sensors% -opencl -openmax -osmesa -pax_kernel -pic (-selinux) -test% -unwind -valgrind -vulkan -wayland -xa -xvmc (-bindist%) (-nptl%*)" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="nouveau (-freedreno) -i915 -i965 (-imx) -intel -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) -virgl (-vivante) -vmware"
Comment 1 Karl Lindén 2018-08-13 19:23:04 UTC
# emerge --info '=media-libs/mesa-18.2.0_rc2::gentoo'
Portage 2.3.46 (python 3.6.6-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.27-r6, 4.16.18-rt-rt12 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.16.18-rt-rt12-x86_64-AMD_Athlon-tm-_II_X4_640_Processor-with-gentoo-2.6
KiB Mem:     8170840 total,   4085420 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Mon, 13 Aug 2018 18:23:18 +0000
Head commit of repository gentoo: e43243b7477e2bfc597b65c98b04eac1e4e1fda8

Timestamp of repository eclipse: Thu, 09 Aug 2018 14:53:09 +0000
Head commit of repository eclipse: f5856641622e280f306485d380bd1de6eaf23232

Head commit of repository ring-overlay: f8c36757eea8786f3ea5bb85160bc49554bfade7

Timestamp of repository wine: Thu, 09 Aug 2018 14:53:21 +0000
Head commit of repository wine: 3d0cc7b13ef0273aecd410058c6f0d1255bf6d8b

sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p1) 2.31.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo
dev-util/cmake:           3.12.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git@github.com:lilrc/gentoo.git
    priority: -1000

eclipse
    location: /var/db/repos/eclipse
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/eclipse.git
    masters: gentoo

kli
    location: /home/kalle/kli-overlay
    masters: gentoo
    priority: 0

ring-overlay
    location: /usr/local/portage/ring-overlay
    sync-type: git
    sync-uri: https://github.com/stefan-langenmaier/ring-overlay.git
    masters: gentoo

wine
    location: /var/db/repos/wine
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/wine.git
    masters: gentoo

proaudio
    location: /home/kalle/proaudio
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @MISC-FREE freedist"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -fomit-frame-pointer -pipe -fno-stack-protector -march=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -fomit-frame-pointer -pipe -fno-stack-protector -march=amdfam10"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --getbinpkg=y                      --binpkg-changed-deps=y --binpkg-respect-use=y                      --buildpkg-exclude app-admin/lilrc-update                      --buildpkg-exclude app-emulation/virtualbox-modules                      --buildpkg-exclude sys-fs/vhba                      --buildpkg-exclude virtual/*"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs binpkg-multi-instance buildpkg buildsyspkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://ftp.df.lth.se/pub/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ http://mirror.mdfnet.se/gentoo"
INSTALL_MASK="/etc/systemd /usr/lib/systemd"
LANG="sv_SE.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="sv sv_SE"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="rsync://127.0.0.1/gentoo-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 --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac alsa amd64 aspell cairo cd cdda cddb cdr cracklib crypt cups curl djvu dri drm dssi dvd dvdr dvi exif ffmpeg fftw flac fltk gallium gif gimp glib gmp gnuplot gnutls gstreamer gtk gtk2 gtkstyle gudev hwdb imap inotify jack javascript jit jpeg keymap ladspa lame lapack libkms libnotify libsamplerate mad matplotlib mp3 mpeg netifrc nls nptl octave ogg opengl openmp openrc orc pam pdf png postscript qt4 qt5 readline sndfile spell ssl startup-notification subversion svg svn system-harfbuzz system-jpeg system-libevent system-libvpx system-sqlite theora threads thunar tiff truetype udev udisks unicode usb v4l vaapi vdpau vlc vorbis webgl x264 xcb xcomposite xorg xscreensaver zlib" ABI_X86="64" ALSA_CARDS="hda-intel" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="gnutls" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="sv sv-SE" LLVM_TARGETS="X86" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby25" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="nouveau"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Karl Lindén 2018-08-13 19:26:43 UTC
Created attachment 543326 [details]
build.log.xz
Comment 3 Alexander Tsoy 2018-08-14 22:01:56 UTC
I can reproduce this with USE="-gbm -dri3". The compile command is missing "-Isrc/loader -I../mesa-18.2.0-rc2/src/loader".
Comment 5 Matt Turner gentoo-dev 2018-08-15 23:39:43 UTC
Pushed as 9a96bf0ecd071219cb975fbd64f5c68849fd5697 upstream.
Comment 6 Matt Turner gentoo-dev 2018-08-22 16:12:49 UTC
Fixed in 18.2.0_rc4.