Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716258 - sci-libs/matio-1.5.17 : getopt_long.c: fatal error: sys/cdefs.h: No such file or directory
Summary: sci-libs/matio-1.5.17 : getopt_long.c: fatal error: sys/cdefs.h: No such file...
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: PullRequest
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-04-05 09:05 UTC by Toralf Förster
Modified: 2021-01-24 13:49 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.54 KB, text/plain)
2020-04-05 09:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,322.89 KB, text/plain)
2020-04-05 09:05 UTC, Toralf Förster
Details
environment (environment,20.32 KB, text/plain)
2020-04-05 09:06 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.54 KB, application/x-bzip)
2020-04-05 09:06 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,9.74 KB, application/x-bzip)
2020-04-05 09:06 UTC, Toralf Förster
Details
sci-libs:matio-1.5.17:20200404-220251.log (sci-libs:matio-1.5.17:20200404-220251.log,15.04 KB, text/plain)
2020-04-05 09:06 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,9.88 KB, application/x-bzip)
2020-04-05 09:06 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-05 09:05:53 UTC
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../src    -DREPLACE_GETOPT=1 -O2 -pipe -march=native -c -o libgetopt_la-getopt_long.lo test -f getopt_long.c || echo ./getopt_long.c
libtool: compile:  x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../src -DREPLACE_GETOPT=1 -O2 -pipe -march=native -c getopt_long.c  -fPIC -DPIC -o .libs/libgetopt_la-getopt_long.o
getopt_long.c:60:13: fatal error: sys/cdefs.h: No such file or directory
   60 | #   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 *
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 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)


timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Apr  4 20:37:51 UTC 2020
/var/db/repos/musl	Sat Apr  4 03:02:24 UTC 2020

emerge -qpvO sci-libs/matio
[ebuild  N    ] sci-libs/matio-1.5.17  USE="-doc -examples -hdf5 -sparse"
Comment 1 Toralf Förster gentoo-dev 2020-04-05 09:05:55 UTC
Created attachment 630176 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-05 09:05:58 UTC
Created attachment 630178 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-05 09:06:01 UTC
Created attachment 630180 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-05 09:06:04 UTC
Created attachment 630182 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-05 09:06:07 UTC
Created attachment 630184 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-05 09:06:10 UTC
Created attachment 630186 [details]
sci-libs:matio-1.5.17:20200404-220251.log
Comment 7 Toralf Förster gentoo-dev 2020-04-05 09:06:12 UTC
Created attachment 630188 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-04-05 09:40:33 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 Larry the Git Cow gentoo-dev 2021-01-24 13:49:34 UTC
The bug has been closed via the following commit(s):

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

commit 3250ba85965856cec855ec2ed01e02aaa16d17a2
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-01-24 13:48:18 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-01-24 13:48:18 +0000

    sci-libs/matio: Bump to 1.5.19
    
    Bug: https://bugs.gentoo.org/716258
    Bug: https://bugs.gentoo.org/717942
    Closes: https://bugs.gentoo.org/603218
    Closes: https://bugs.gentoo.org/677366
    Closes: https://bugs.gentoo.org/716258
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 sci-libs/matio/Manifest            |  1 +
 sci-libs/matio/matio-1.5.19.ebuild | 46 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit 3250ba85965856cec855ec2ed01e02aaa16d17a2
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-01-24 13:48:18 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-01-24 13:48:18 +0000

    sci-libs/matio: Bump to 1.5.19
    
    Bug: https://bugs.gentoo.org/716258
    Bug: https://bugs.gentoo.org/717942
    Closes: https://bugs.gentoo.org/603218
    Closes: https://bugs.gentoo.org/677366
    Closes: https://bugs.gentoo.org/716258
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 sci-libs/matio/Manifest            |  1 +
 sci-libs/matio/matio-1.5.19.ebuild | 46 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)