Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712976 - x11-wm/spectrwm-3.3.0 : linux.c: fatal error: sys/cdefs.h: No such file or directory
Summary: x11-wm/spectrwm-3.3.0 : linux.c: fatal error: sys/cdefs.h: No such file or di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard: cdefs.h
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-17 14:02 UTC by Toralf Förster
Modified: 2020-09-03 12:53 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.57 KB, text/plain)
2020-03-17 14:02 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,10.04 KB, text/plain)
2020-03-17 14:02 UTC, Toralf Förster
Details
environment (environment,60.48 KB, text/plain)
2020-03-17 14:02 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.15 KB, application/x-bzip)
2020-03-17 14:02 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,15.23 KB, application/x-bzip)
2020-03-17 14:02 UTC, Toralf Förster
Details
x11-wm:spectrwm-3.3.0:20200316-233130.log (x11-wm:spectrwm-3.3.0:20200316-233130.log,2.53 KB, text/plain)
2020-03-17 14:02 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-17 14:02:36 UTC
x86_64-gentoo-linux-musl-gcc -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized  -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -I. -D_GNU_SOURCE -DSWM_LIB=\/usr/lib/libswmhack.so.0.0\ -I/usr/include/freetype2 -I/usr/include/uuid   -c -o spectrwm.o ../spectrwm.c
x86_64-gentoo-linux-musl-gcc -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized  -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -I. -D_GNU_SOURCE -DSWM_LIB=\/usr/lib/libswmhack.so.0.0\ -I/usr/include/freetype2 -I/usr/include/uuid   -c -o linux.o linux.c
linux.c:2:10: fatal error: sys/cdefs.h: No such file or directory
    2 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 16 Mar 2020 22:38:28 +0000
emerge -qpvO x11-wm/spectrwm
[ebuild  N    ] x11-wm/spectrwm-3.3.0
Comment 1 Toralf Förster gentoo-dev 2020-03-17 14:02:39 UTC
Created attachment 620804 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-17 14:02:42 UTC
Created attachment 620806 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-17 14:02:44 UTC
Created attachment 620808 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-17 14:02:47 UTC
Created attachment 620810 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-17 14:02:50 UTC
Created attachment 620812 [details]
temp.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-17 14:02:53 UTC
Created attachment 620814 [details]
x11-wm:spectrwm-3.3.0:20200316-233130.log
Comment 7 Michael 'veremitz' Everitt 2020-03-17 14:27:49 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 8 Larry the Git Cow gentoo-dev 2020-09-03 12:53:56 UTC
The bug has been closed via the following commit(s):

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

commit d8ef08c41699d3a61edad1997f1add6b1003eec4
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2020-09-03 12:48:28 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2020-09-03 12:48:48 +0000

    x11-wm/spectrwm: removed unused include to fix musl build
    
    Closes: https://bugs.gentoo.org/712976
    Package-Manager: Portage-3.0.5, Repoman-3.0.1
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 x11-wm/spectrwm/files/spectrwm-3.4.1-musl.patch | 9 +++++++++
 x11-wm/spectrwm/spectrwm-3.4.1.ebuild           | 1 +
 2 files changed, 10 insertions(+)