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

Bug 715280

Summary: app-shells/smrsh-8.15.2 : ../.../cdefs.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: maintainer-needed
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: cdefs.h
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713786    
Attachments: emerge-info.txt
app-shells:smrsh-8.15.2:20200329-085213.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-29 09:57:39 UTC
In file included from ../../include/sm/gen.h:21,
                 from smrsh.c:14:
../../include/sm/cdefs.h:29:12: fatal error: sys/cdefs.h: No such file or directory
   29 | #  include <sys/cdefs.h>
      |            ^~~~~~~~~~~~~
compilation terminated.

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

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

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

  Please see the tracker bug for details.

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)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Mar 29 07:39:08 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO app-shells/smrsh
[ebuild  N    ] app-shells/smrsh-8.15.2
Comment 1 Toralf Förster gentoo-dev 2020-03-29 09:57:42 UTC
Created attachment 626886 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-29 09:57:44 UTC
Created attachment 626888 [details]
app-shells:smrsh-8.15.2:20200329-085213.log
Comment 3 Toralf Förster gentoo-dev 2020-03-29 09:57:47 UTC
Created attachment 626890 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-29 09:57:50 UTC
Created attachment 626892 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-29 09:57:53 UTC
Created attachment 626894 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-29 09:57:55 UTC
Created attachment 626896 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-03-29 22:23:09 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.