Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712690 - app-emulation/lxc-3.1.0-r1 : ./compiler.h: fatal error: sys/cdefs.h: No such file or directory
Summary: app-emulation/lxc-3.1.0-r1 : ./compiler.h: fatal error: sys/cdefs.h: No such ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard: cdefs.h
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-15 12:21 UTC by Toralf Förster
Modified: 2020-03-21 11:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.54 KB, text/plain)
2020-03-15 12:21 UTC, Toralf Förster
Details
app-emulation:lxc-3.1.0-r1:20200315-120222.log (app-emulation:lxc-3.1.0-r1:20200315-120222.log,28.55 KB, text/plain)
2020-03-15 12:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,129.44 KB, text/plain)
2020-03-15 12:22 UTC, Toralf Förster
Details
environment (environment,116.37 KB, text/plain)
2020-03-15 12:22 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.49 KB, application/x-bzip)
2020-03-15 12:22 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,14.31 KB, application/x-bzip)
2020-03-15 12:22 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,34.41 KB, application/x-bzip)
2020-03-15 12:22 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
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.