Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 647330 - media-libs/mesa-18.0.0_rc4 libOpenCL.la error
Summary: media-libs/mesa-18.0.0_rc4 libOpenCL.la error
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-11 19:55 UTC by Fabio Coatti
Modified: 2018-11-02 18:16 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Coatti 2018-02-11 19:55:49 UTC
when emerging media-libs/mesa-18.0.0_rc4, I get this error, that was not happening with media-libs/mesa-18.0.0_rc3:
libtool: link: x86_64-pc-linux-gnu-g++ -m32  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/32/crtbeginS.o  -Wl,--whole-archive ../../../../src/gallium/auxiliary/pipe-loader/.libs/libpipe_loader_dynamic.a ../../../../src/gallium/state_trackers/clover/.libs/libclover.a ../../../../src/gallium/auxiliary/.libs/libgallium.a ../../../../src/util/.libs/libmesautil.a -Wl,--no-whole-archive  -L/usr/lib/llvm/5/lib -L/usr/lib -ldrm -lz -lexpat -lelf -ldl -lclangFrontendTool -lclangFrontend -lclangDriver -lclangSerialization -lclangCodeGen -lclangParse -lclangSema -lclangAnalysis -lclangAST -lclangEdit -lclangLex -lclangBasic -lLLVMCoroutines -lLLVMOption -lLLVMLTO -lLLVMPasses -lLLVMObjCARCOpts -lLLVMCoverage -lLLVMNVPTXCodeGen -lLLVMNVPTXDesc -lLLVMNVPTXInfo -lLLVMNVPTXAsmPrinter -lLLVMBPFDisassembler -lLLVMBPFCodeGen -lLLVMBPFDesc -lLLVMBPFInfo -lLLVMBPFAsmPrinter -lLLVMAMDGPUDisassembler -lLLVMAMDGPUCodeGen -lLLVMipo -lLLVMInstrumentation -lLLVMVectorize -lLLVMLinker -lLLVMIRReader -lLLVMAsmParser -lLLVMAMDGPUAsmParser -lLLVMAMDGPUDesc -lLLVMAMDGPUInfo -lLLVMAMDGPUAsmPrinter -lLLVMAMDGPUUtils -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMGlobalISel -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMDebugInfoCodeView -lLLVMDebugInfoMSF -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMX86Desc -lLLVMMCDisassembler -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMMCJIT -lLLVMExecutionEngine -lLLVMTarget -lLLVMRuntimeDyld -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMObject -lLLVMMCParser -lLLVMMC -lLLVMBitReader -lLLVMCore -lLLVMBinaryFormat -lLLVMSupport -lLLVMDemangle -lpthread -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/32 -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/32/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crtn.o  -m32 -O2 -march=native -fstack-protector-strong -flto=4 -fuse-linker-plugin -fuse-linker-plugin -Wl,--gc-sections -Wl,--no-undefined -Wl,--version-script=/var/tmp/portage/media-libs/mesa-18.0.0_rc4/work/mesa-18.0.0-rc4/src/gallium/targets/opencl/opencl.sym -O2 -march=native -fstack-protector-strong -flto=4 -Wl,--no-as-needed -pthread   -pthread -Wl,-soname -Wl,libOpenCL.so.1 -o .libs/libOpenCL.so.1.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangFrontendTool
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangFrontend
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangDriver
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangSerialization
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangCodeGen
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangParse
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangSema
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangAnalysis
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangAST
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangEdit
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangLex
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangBasic
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:692: libOpenCL.la] Error 1
make[4]: Leaving directory '/var/tmp/portage/media-libs/mesa-18.0.0_rc4/work/mesa-18.0.0-rc4-abi_x86_32.x86/src/gallium/targets/opencl'
make[3]: *** [Makefile:611: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-libs/mesa-18.0.0_rc4/work/mesa-18.0.0-rc4-abi_x86_32.x86/src/gallium'
make[2]: *** [Makefile:862: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/mesa-18.0.0_rc4/work/mesa-18.0.0-rc4-abi_x86_32.x86/src'
make[1]: *** [Makefile:653: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/mesa-18.0.0_rc4/work/mesa-18.0.0-rc4-abi_x86_32.x86/src'
make: *** [Makefile:666: all-recursive] Error 1


if needed, I can attach also the build.log (a sizeable file).


Reproducible: Always




Portage 2.3.24 (python 3.4.6-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-7.3.0, glibc-2.26-r5, 4.15.2-cova x86_64)
=================================================================
System uname: Linux-4.15.2-cova-x86_64-Intel-R-_Core-TM-_i7-6820HQ_CPU_@_2.70GHz-with-gentoo-2.4.1
KiB Mem:    65293272 total,  56303852 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sun, 11 Feb 2018 19:00:01 +0000
Head commit of repository gentoo: c10c6839f917b0adeadbd185a05f7fef9812649a
sh bash 4.4_p19
ld GNU ld (Gentoo 2.29.1 p2) 2.29.1
app-shells/bash:          4.4_p19::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.5.4-r1::gentoo, 3.6.4::gentoo
dev-util/cmake:           3.10.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo, 2.30::gentoo
sys-devel/gcc:            7.2.0-r1::gentoo, 7.3.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/kde.git
    masters: gentoo
    priority: 50

pypi
    location: /var/lib/layman/pypi
    sync-type: laymansync
    sync-uri: gs-pypi pypi
    masters: gentoo
    priority: 50

torbrowser
    location: /var/lib/layman/torbrowser
    sync-type: laymansync
    sync-uri: https://github.com/MeisterP/torbrowser-overlay.git
    masters: gentoo
    priority: 50

local
    location: /usr/overlay
    masters: gentoo
    priority: 51

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -fpie -fpic -pipe -march=native -fstack-protector-strong -flto=4 -fuse-linker-plugin"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts/Xsetup"
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 -fpie -fpic -pipe -march=native -fstack-protector-strong -flto=4 -fuse-linker-plugin"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -O2 -fpie -fpic -pipe -march=native -fstack-protector-strong -flto=4 -fuse-linker-plugin"
LINGUAS="en it de"
MAKEOPTS="-j8"
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 --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext 3dnowprefetch X \ a52 aac aalib acl acpi activities aim alsa amd64 apng appstream ares asf ati audio audiofile avahi bash-completion berkdb bidi bl bluetooth branding bri bzip2 cairo caps cdda cdr cjk cli crypt cups curl cxx dba dbus declarative device-mapper dga divx divx4linux dri dts dv dvb dvd dvdr dvdread eap-sim edl egl emboss encode ethereal evdev exif expat faad fam fame fbcon ffmpeg fftw flac force-cgi-redirect fortran ftp gallium garmin gd gdbm gif gimp glamor gmedia gmp gnutls gphoto2 gpm gps gsm gtk h264 h323 iconv icq icu idn ifp ilbc imagemagick imap innodb ipod iproute2 ipv6 ithreads jabber java javascript joystick jpeg kde kipi kontact kvm kwallet lastfm lcms ldap libnotify libvirtd live lm_sensors lua lvm lxc lzma lzo mad maildir matroska mbox mdnsresponder-compat mhash mime mjpeg mmap mmx mmxext mng modules mozdevelop mozilla mp3 mp4 mpeg msn mtp multilib mysql ncurses network networkmanager new-hpcups nfsv4 njb nls nptl nptlonly nsplugin offensive ofx ogg oggvorbis ogm openal openexr opengl openmp oscar pam pango parted pcap pcre pdf phonon php plasma plotutils png policykit ppds pulseaudio qemu qml qt3support qt5 readline real rtc ruby samba sasl sdl seccomp semantic-desktop semantic-destkop sha512 sip slang slp smartcard sndfile snmp sox speex spell srt sse sse2 ssh ssl ssse3 startup-notification svg symlink systemd tcltk tcpd telepathy theora threads tiff tk touchpad tremor truetype udev udisks unicode upower usb utempter v4l v4l2 vaapi vcd vde vdpaum vhosts video videos vim-syntax virt-network virtualbox vorbis vulkan wav wayland webkit widgets wifi wmf wmp wps wxwidgets wxwindows x264 xanim xattr xcb xcomposite xface xft xine xinerama xml xosd xpm xscreensaver xsl xv xvid zeroconf zlib zpm" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en it de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby22 ruby23 ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="i965 intel nvidia v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matt Turner gentoo-dev 2018-11-01 18:52:41 UTC
Can you reproduce with 18.2.4?
Comment 2 Fabio Coatti 2018-11-02 12:26:04 UTC
I just tested to build mesa 18.2.4.
The executive summary :) seems to be the following:
1. mesa-18.0.0_rc4 was failing because of LTO. rc3 was fine
2. mesa-18.2.4 fails with LTO as well but in a different way (see below)
3. Both compiles fine if I turn off LTO.

Log snippet from 18.2.4:


x86_64-pc-linux-gnu-gcc -m32  -o src/glx/libGL.so.1.2.0  -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,--start-group -Wl,-soname,libGL.so.1 -Wl,--whole-archive src/glx/libglx.a -Wl,--no-whole-archive src/mapi/glapi/libglapi_static.a src/ma
pi/shared-glapi/libglapi.so.0.0.0 src/loader/libloader.a src/loader/libloader_dri3_helper.a src/util/libmesa_util.a src/util/libxmlconfig.a -Wl,-Bsymbolic -Wl,--gc-sections /usr/lib/libdrm.so -ldl -lm /usr/lib/libX11.so /usr/lib/libxcb-glx.so /us
r/lib/libxcb.so /usr/lib/libX11-xcb.so /usr/lib/libxcb-dri2.so /usr/lib/libXext.so /usr/lib/libXfixes.so /usr/lib/libXdamage.so /usr/lib/libxcb-dri3.so /usr/lib/libxcb-present.so /usr/lib/libxcb-sync.so /usr/lib/libxshmfence.so /usr/lib/libz.so /
usr/lib/libexpat.so -lm -Wl,--end-group -pthread '-Wl,-rpath,$ORIGIN/../mapi/glapi:$ORIGIN/../mapi/shared-glapi' -Wl,-rpath-link,/var/tmp/portage/media-libs/mesa-18.2.4/work/mesa-18.2.4-abi_x86_32.x86/src/mapi/glapi:/var/tmp/portage/media-libs/me
sa-18.2.4/work/mesa-18.2.4-abi_x86_32.x86/src/mapi/shared-glapi -march=native -O3 -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -flto=4 -fuse-linker-plugin -pipe -fpie -fpic -fstack-protector-strong -Wl,-O1 -Wl,--as-needed -ma
rch=native -O3 -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -flto=4 -fuse-linker-plugin -pipe -fpie -fpic -fstack-protector-strong -Wl,--as-needed -Wl,--hash-style=gnu 
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans0.ltrans.o:<artificial>:function driCopySubBuffer: error: undefined reference to 'glFlush'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans0.ltrans.o:<artificial>:function driSwapBuffers: error: undefined reference to 'glFlush'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans0.ltrans.o:<artificial>:function dri2Flush.constprop.11: error: undefined reference to 'glFlush'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans1.ltrans.o:<artificial>:function driswSwapBuffers: error: undefined reference to 'glFlush'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans1.ltrans.o:<artificial>:function DRI_glXUseXFont: error: undefined reference to 'glGetIntegerv'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans1.ltrans.o:<artificial>:function DRI_glXUseXFont: error: undefined reference to 'glGetIntegerv'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans1.ltrans.o:<artificial>:function DRI_glXUseXFont: error: undefined reference to 'glGetIntegerv'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans1.ltrans.o:<artificial>:function DRI_glXUseXFont: error: undefined reference to 'glGetIntegerv'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans1.ltrans.o:<artificial>:function DRI_glXUseXFont: error: undefined reference to 'glPixelStorei'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans1.ltrans.o:<artificial>:function DRI_glXUseXFont: error: undefined reference to 'glPixelStorei'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans1.ltrans.o:<artificial>:function DRI_glXUseXFont: error: undefined reference to 'glPixelStorei'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans1.ltrans.o:<artificial>:function DRI_glXUseXFont: error: undefined reference to 'glPixelStorei'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans1.ltrans.o:<artificial>:function DRI_glXUseXFont: error: undefined reference to 'glNewList'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans1.ltrans.o:<artificial>:function DRI_glXUseXFont: error: undefined reference to 'glBitmap'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans1.ltrans.o:<artificial>:function DRI_glXUseXFont: error: undefined reference to 'glEndList'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans1.ltrans.o:<artificial>:function DRI_glXUseXFont: error: undefined reference to 'glBitmap'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans3.ltrans.o:<artificial>:function MakeContextCurrent: error: undefined reference to 'glGetString'
/var/tmp/portage/media-libs/mesa-18.2.4/temp/ccXORqhT.ltrans3.ltrans.o:<artificial>:function MakeContextCurrent: error: undefined reference to 'glGetString'
collect2: error: ld returned 1 exit status


Removing LTO option is enough to have a successful build.
Comment 3 Matt Turner gentoo-dev 2018-11-02 18:16:13 UTC
Thanks. Mesa is known not to build with LTO -- bug 641808.