Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 835039

Summary: games-emulation/mgba-0.9.3-r1 - /.../ld: libmgba.so.0.9.3: undefined reference to glAttachShader
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
games-emulation:mgba-0.9.3-r1:20220313-040815.log
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-03-13 09:29:01 UTC
too long lines were shrinked:

[125/126] /usr/bin/x86_64-pc-linux-gnu-gcc -DBUILD_GLES3 -DBUILD_SDL -DENABLE_SCRIPTING -DHAVE_CHMOD -DHAVE_CRC32 -DHAVE_LOCALE -DHAVE_LOCALTIME_R -DHAVE_PTHREAD_SETNAME_NP -DHAVE_SETLOCALE -DHAVE_STRDUP -DHAVE_STRNDUP -DHAVE_UMASK -DHAVE_VASPRINTF -DM_CORE_GB -DM_CORE_GBA -DUSE_DISCORD_RPC -DUSE_EL
[126/126] : && /usr/bin/x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wall -Wextra -Wno-missing-field-initializers -Werror=implicit-function-declaration -pthread -O3 -DNDEBUG -gdwarf -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0    -rdynamic sdl/CMakeFiles
FAILED: sdl/mgba 
: && /usr/bin/x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wall -Wextra -Wno-missing-field-initializers -Werror=implicit-function-declaration -pthread -O3 -DNDEBUG -gdwarf -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0    -rdynamic sdl/CMakeFiles/mgba-sdl.
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: libmgba.so.0.9.3: undefined reference to `glAttachShader'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: libmgba.so.0.9.3: undefined reference to `glEnable'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: libmgba.so.0.9.3: undefined reference to `glBindVertexArray'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j4-20220312-140005

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
/usr/lib/llvm/13
13.0.1
Python 3.9.10
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.59.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 8bfeef59e4cad31819caa1d4cef85ead365815ea
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Mar 13 03:04:50 2022 +0000

    2022-03-13 03:04:48 UTC

emerge -qpvO games-emulation/mgba
[ebuild  N    ] games-emulation/mgba-0.9.3-r1  USE="discord elf gles3 sdl -debug -ffmpeg -gles2 -opengl -qt5 -sqlite"
Comment 1 Toralf Förster gentoo-dev 2022-03-13 09:29:02 UTC
Created attachment 766918 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-03-13 09:29:03 UTC
Created attachment 766919 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-03-13 09:29:06 UTC
Created attachment 766920 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-03-13 09:29:07 UTC
Created attachment 766921 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-03-13 09:29:08 UTC
Created attachment 766922 [details]
games-emulation:mgba-0.9.3-r1:20220313-040815.log
Comment 6 Toralf Förster gentoo-dev 2022-03-13 09:29:09 UTC
Created attachment 766923 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-03-13 09:29:12 UTC
Created attachment 766924 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-06-29 17:22:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa7347842737646e51f9453c00b78f6d260e4f49

commit fa7347842737646e51f9453c00b78f6d260e4f49
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-06-29 12:34:36 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-06-29 17:22:36 +0000

    games-emulation/mgba: re-arrange ebuild
    
    non-style changes:
    - enable tests
    - IUSE=qt5 -> gui
    - add IUSE=libretro
    - update LICENSE to be hopefully complete
    - disable markdown wrt bug #752048, all this does is automagic
      convert the installed *.md to html
    - require IUSE=opengl with gles2/gles3 for now wrt bug #835039,
      won't be needed next bump
    - enable lzma, bundled but no real reason to disable (+public-domain)
    - drop unused qtopengl (uses libglvnd directly) and add qtnetwork
    - use cmake_src_install, removes need for custom icons loop and
      installs intended files (including shaders, and headers)
    - add subslot for libmgba given next version has a soname change,
      better handle this now than when something will need it
     (dolphin could potentially use to unbundle, albeit may be unsuitable
      for current dolphin snapshots)
    
    Could likely still use more work for some features and maybe some force
    unbundling, but leaving alone for now unless there's a need to / user
    requests.
    
    Closes: https://bugs.gentoo.org/752048
    Closes: https://bugs.gentoo.org/835039
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 games-emulation/mgba/metadata.xml         |   1 +
 games-emulation/mgba/mgba-0.9.3-r2.ebuild |  92 +++++++++++++++++++
 games-emulation/mgba/mgba-9999.ebuild     | 142 +++++++++++-------------------
 3 files changed, 146 insertions(+), 89 deletions(-)