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

Bug 712690

Summary: app-containers/lxc-3.1.0-r1 : ./compiler.h: 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 CC: juippis, virtualization
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: cdefs.h
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
app-emulation:lxc-3.1.0-r1:20200315-120222.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-15 12:21:52 UTC
                 from ./log.h:37,
                 from tools/lxc_attach.c:46:
./compiler.h:26:10: fatal error: sys/cdefs.h: No such file or directory
   26 | #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 *
 [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 10:38:48 +0000
emerge -qpvO app-emulation/lxc
[ebuild  N    ] app-emulation/lxc-3.1.0-r1  USE="pam seccomp templates -apparmor -examples (-selinux)"
Comment 1 Toralf Förster gentoo-dev 2020-03-15 12:21:55 UTC
Created attachment 619750 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-15 12:21:57 UTC
Created attachment 619752 [details]
app-emulation:lxc-3.1.0-r1:20200315-120222.log
Comment 3 Toralf Förster gentoo-dev 2020-03-15 12:22:00 UTC
Created attachment 619754 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-15 12:22:05 UTC
Created attachment 619756 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-15 12:22:09 UTC
Created attachment 619758 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-15 12:22:12 UTC
Created attachment 619760 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-15 12:22:15 UTC
Created attachment 619762 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-03-16 14:10:51 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:43 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.