Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715778 - games-misc/bsd-games-2.17-r5 : include/.../cdefs.h: fatal error: sys/cdefs.h: No such file or directory
Summary: games-misc/bsd-games-2.17-r5 : include/.../cdefs.h: fatal error: sys/cdefs.h:...
Status: RESOLVED TEST-REQUEST
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: missing-musl-includes
  Show dependency tree
 
Reported: 2020-04-01 16:37 UTC by Toralf Förster
Modified: 2021-03-31 23:42 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.99 KB, text/plain)
2020-04-01 16:37 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,184.94 KB, text/plain)
2020-04-01 16:37 UTC, Toralf Förster
Details
environment (environment,103.70 KB, text/plain)
2020-04-01 16:37 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.61 KB, application/x-bzip)
2020-04-01 16:37 UTC, Toralf Förster
Details
games-misc:bsd-games-2.17-r5:20200401-141242.log (games-misc:bsd-games-2.17-r5:20200401-141242.log,14.52 KB, text/plain)
2020-04-01 16:37 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,27.58 KB, application/x-bzip)
2020-04-01 16:37 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-04-01 16:37:32 UTC
./mkdep worms/worms.c worms/worms.d x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings    -Iinclude   -Iworms 
In file included from worms/worms.c:32:
include/sys/cdefs.h:34:15: fatal error: sys/cdefs.h: No such file or directory
   34 | #include_next <sys/cdefs.h>
      |               ^~~~~~~~~~~~~
compilation terminated.

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

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

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] 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-1.42.0 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed Apr  1 13:42:46 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO games-misc/bsd-games
[ebuild  N    ] games-misc/bsd-games-2.17-r5
Comment 1 Toralf Förster gentoo-dev 2020-04-01 16:37:35 UTC
Created attachment 628490 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-01 16:37:37 UTC
Created attachment 628492 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-01 16:37:40 UTC
Created attachment 628494 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-01 16:37:43 UTC
Created attachment 628496 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-01 16:37:46 UTC
Created attachment 628498 [details]
games-misc:bsd-games-2.17-r5:20200401-141242.log
Comment 6 Toralf Förster gentoo-dev 2020-04-01 16:37:49 UTC
Created attachment 628500 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-04-04 18:44:35 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 2021-03-31 23:38:58 UTC
The bug has been referenced in the following commit(s):

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

commit 6898e5b44450c1c69205203bc8f9d1ee3f9b08d3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-31 17:56:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-31 23:38:45 +0000

    games-misc/bsd-games: add 3.1
    
    This is a fork of bsd-games after many years. Thanks to the new maintainer
    upstream for reaching out to us.
    
    Closes: https://bugs.gentoo.org/732374
    Bug: https://bugs.gentoo.org/537010
    Bug: https://bugs.gentoo.org/715778
    Signed-off-by: Sam James <sam@gentoo.org>

 games-misc/bsd-games/Manifest                      |   2 +
 games-misc/bsd-games/bsd-games-3.1.ebuild          | 151 +++++++++++++++++++++
 ...mes-3.1-no-install-manpages-automatically.patch |  15 ++
 3 files changed, 168 insertions(+)

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

commit 0c13ca36bf039e92078a64b63d84d04949948ef4
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-31 20:28:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-31 23:38:44 +0000

    games-misc/bsd-games: add 2.17_p28
    
    Upgrade to new Debian patchset (p28) which may help resolve
    some of the open bugs. It's also a nice stopgap because
    the new fork upstream drops some games and it means
    we don't take as big of a risk when simply
    porting away from games.eclass.
    
    (Not dumping games.eclass *AND* choosing a new upstream
    all at once, with no option for users to downgrade.)
    
    Bug: https://bugs.gentoo.org/732374
    Bug: https://bugs.gentoo.org/537010
    Bug: https://bugs.gentoo.org/715778
    Signed-off-by: Sam James <sam@gentoo.org>

 games-misc/bsd-games/Manifest                      |   2 +
 games-misc/bsd-games/bsd-games-2.17_p28.ebuild     | 155 +++++++++++++++++++++
 .../bsd-games-2.17-rename-getdate-clash.patch      |  39 ++++++
 3 files changed, 196 insertions(+)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-31 23:42:56 UTC
Still an issue?