/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/ttmpeg2window.o: undefined reference to symbol 'glLoadIdentity' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libGL.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [Makefile:470: ttcut] Error 1 ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_gnome_systemd-20210215-185510 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.1 [2] x86_64-pc-linux-gnu-8.3.1 [3] x86_64-pc-linux-gnu-10.2.0 * clang version 11.1.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/11/bin /usr/lib/llvm/11 11.1.0 Python 3.8.8 Available Ruby profiles: (none found) Available Rust versions: [1] rust-bin-1.50.0 [2] rust-1.50.0 * The following VMs are available for generation-2: 1) JamVM JDK 2.0.0 [jamvm] *) AdoptOpenJDK 8.282_p08 [openjdk-bin-8] Available Java Virtual Machines: [1] jamvm [2] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.8.4 timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Tue Mar 2 09:33:14 UTC 2021 emerge -qpvO media-video/ttcut [ebuild N ] media-video/ttcut-0.19.6_p1-r1
Created attachment 689037 [details] emerge-info.txt
Created attachment 689040 [details] emerge-history.txt
Created attachment 689043 [details] environment
Created attachment 689046 [details] etc.portage.tar.bz2
Created attachment 689049 [details] media-video:ttcut-0.19.6_p1-r1:20210302-101219.log
Created attachment 689052 [details] temp.tar.bz2
Any hints on how to reproduce this. I fail to do so!
Hmm. toralf, did you use any binpkgs from a slibtool build or anything like that? /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/ttmpeg2window.o: undefined reference to symbol 'glLoadIdentity' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libGL.so.1: error adding symbols: DSO missing from command line This seems to imply libGL is broken...
(In reply to Sam James from comment #8) > Hmm. toralf, did you use any binpkgs from a slibtool build or anything like > that? > No bin pkgs except the kernel bin package (this is new, I try to avoid kernel builds within tinderbox images)
I can reproduce the issue with following USE configuration: dev-qt/qtopengl gles2-only dev-qt/qtgui gles2-only egl dev-qt/qtwidgets gles2-only in which case the linker is executed with -lGLESv2, as you can see from the log, but /usr/lib64/libGLESv2.so does not provide glLoadIdentity. The gles2-only USE is set globally in the test env, see emerge-info.txt.