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

Bug 712664

Summary: media-libs/glyr-1.0.10-r1 : /.../glyrc.c: fatal error: execinfo.h: No such file or directory
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: sound, willy
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 716422, 856418    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
media-libs:glyr-1.0.10:20200315-083008.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-15 09:34:54 UTC
[ 82%] Building C object src/CMakeFiles/glyrc.dir/glyrc/glyrc.c.o
cd /var/tmp/portage/media-libs/glyr-1.0.10/work/glyr-1.0.10_build/src && /usr/bin/x86_64-gentoo-linux-musl-gcc  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DNDEBUG -std=c99 -Wall -Wextra -Wstrict-prototypes -W -Wno-unused-parameter -Wno-strict-prototypes -fvisibility=hidden -O2 -pipe -march=native -fno-common -falign-functions=32:25:16   -o CMakeFiles/glyrc.dir/glyrc/glyrc.c.o -c /var/tmp/portage/media-libs/glyr-1.0.10/work/glyr-1.0.10/src/glyrc/glyrc.c
/var/tmp/portage/media-libs/glyr-1.0.10/work/glyr-1.0.10/src/glyrc/glyrc.c:29:10: fatal error: execinfo.h: No such file or directory
   29 | #include <execinfo.h>
      |          ^~~~~~~~~~~~
compilation terminated.

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200311-204810

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.2.0 *
 [2] x86_64-gentoo-linux-musl-9.3.0
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.41.1
  [2]   rust-1.41.1 *
The following VMs are available for generation-2:

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sun, 15 Mar 2020 07:39:00 +0000
emerge -qpvO media-libs/glyr
[ebuild  N    ] media-libs/glyr-1.0.10
Comment 1 Toralf Förster gentoo-dev 2020-03-15 09:34:57 UTC
Created attachment 619616 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-15 09:35:00 UTC
Created attachment 619618 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-15 09:35:03 UTC
Created attachment 619620 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-15 09:35:05 UTC
Created attachment 619622 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-15 09:35:08 UTC
Created attachment 619624 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-15 09:35:11 UTC
Created attachment 619626 [details]
media-libs:glyr-1.0.10:20200315-083008.log
Comment 7 Toralf Förster gentoo-dev 2020-03-15 09:35:14 UTC
Created attachment 619628 [details]
temp.tbz2
Comment 8 Toralf Förster gentoo-dev 2020-03-16 16:12:30 UTC
The first attempt to tinderbox a musl image failed at all.

I'll mass close therefore all filed bug reports of the last days related to this tinderbox image.

Please feel free to re-open if you think that the bug is real in musl and not fixed by the musl overlay.
Comment 9 Agostino Sarubbo gentoo-dev 2022-08-20 08:00:59 UTC
tinderbox_musl has reproduced this issue with version 1.0.10-r1 - Updating summary.
Comment 10 Willy 2024-03-21 18:54:05 UTC
I was able to successfully build on Musl with the following patches from Void:

--- a/src/glyrc/glyrc.c.original
+++ b/src/glyrc/glyrc.c
@@ -24,7 +24,7 @@
 #include <glib.h>
 #include <glib/gstdio.h>

-#ifdef __linux__
+#ifdef __GLIBC__
 /* Backtrace*/
 #include <execinfo.h>
 #endif
@@ -102,7 +102,7 @@

 ////////////////////////////////////////////////////////////////

-#ifdef __linux__
+#ifdef __GLIBC__
 #define STACK_FRAME_SIZE 20

 /* Obtain a backtrace and print it to stdout. */
@@ -141,7 +141,7 @@
         cvprint (DEFAULT,"       It would be just natural to blame us now, so just visit <https://github.com/sahib/glyr/issues>\n");
         cvprint (DEFAULT,"       and throw hard words like 'backtrace', 'bug report' or even the '$(command I issued' at them).\n");
         cvprint (DEFAULT,"       The libglyr developers will try to fix it as soon as possible so please stop pulling their hair.\n");
-#ifdef __linux__
+#ifdef __GLIBC__
         cvprint (DEFAULT,"\nA list of the last called functions follows, please add this to your report:\n");
         print_trace();
 #endif


Index: CMakeLists.txt
===================================================================
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,6 @@ exec_program(
 IF(CMAKE_BUILD_TYPE STREQUAL "debug")
     SET(GLYR_DEBUG TRUE)
 ELSE()
-    SET(CMAKE_BUILD_TYPE "release")
     SET(GLYR_DEBUG FALSE)
 ENDIF()
 MESSAGE("-- Building Target: ${CMAKE_BUILD_TYPE}")