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

Bug 712390

Summary: app-arch/dump-0.4.46-r1 : bylabel.c: fatal error: sys/cdefs.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    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: cdefs.h
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
app-arch:dump-0.4.46-r1:20200313-145112.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-13 15:46:25 UTC
/bin/sh ../../libtool  --tag=CC   --mode=compile x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../..  -I../../compat/include -D_USE_BSD_SIGNAL -D_PATH_DUMPDATES=\/etc/dumpdates\ -D_DUMP_VERSION=\0.4b46\ -D_PATH_RMT=\/usr/sbin/rmt\  -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -c -o bylabel.lo bylabel.c
libtool: compile:  x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../compat/include -D_USE_BSD_SIGNAL -D_PATH_DUMPDATES=\/etc/dumpdates\ -D_DUMP_VERSION=\0.4b46\ -D_PATH_RMT=\/usr/sbin/rmt\ -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -c bylabel.c  -fPIC -DPIC -o .libs/bylabel.o
bylabel.c:23:10: fatal error: sys/cdefs.h: No such file or directory
   23 | #include <sys/cdefs.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 *

clang:
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
llvm:
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) *





repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Fri, 13 Mar 2020 13:09:02 +0000

emerge -qpvO app-arch/dump
[ebuild  N    ] app-arch/dump-0.4.46-r1  USE="bzip2 readline ssl zlib -debug -ermt -libressl -lzo (-selinux) -sqlite -static -test -uuid"
Comment 1 Toralf Förster gentoo-dev 2020-03-13 15:46:28 UTC
Created attachment 618540 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-13 15:46:31 UTC
Created attachment 618542 [details]
app-arch:dump-0.4.46-r1:20200313-145112.log
Comment 3 Toralf Förster gentoo-dev 2020-03-13 15:46:35 UTC
Created attachment 618544 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-13 15:46:38 UTC
Created attachment 618546 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-13 15:46:41 UTC
Created attachment 618548 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-13 15:46:44 UTC
Created attachment 618550 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-13 15:46:47 UTC
Created attachment 618552 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-03-16 14:09:27 UTC
musl upstream has a FAQ entry specifically for this error:
https://wiki.musl-libc.org/faq.html#Q:-When-compiling-something-against-musl,-I-get-error-messages-about-%3Ccode%3Esys/cdefs.h%3C/code%3E

We will need to check/report upstream and patch affected code temporarily.
Comment 9 Toralf Förster gentoo-dev 2020-03-16 16:12:40 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.