Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716116 - sys-fs/fatcat-1.1.0 : /.../fatcat.cpp: error: getopt was not declared in this scope
Summary: sys-fs/fatcat-1.1.0 : /.../fatcat.cpp: error: getopt was not declared in this...
Status: RESOLVED FIXED
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:
Keywords:
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-04-04 07:34 UTC by Toralf Förster
Modified: 2020-04-05 16:46 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.17 KB, text/plain)
2020-04-04 07:34 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,304.04 KB, text/plain)
2020-04-04 07:34 UTC, Toralf Förster
Details
environment (environment,88.63 KB, text/plain)
2020-04-04 07:34 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.26 KB, application/x-bzip)
2020-04-04 07:34 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.32 KB, application/x-bzip)
2020-04-04 07:34 UTC, Toralf Förster
Details
sys-fs:fatcat-1.1.0:20200404-025846.log (sys-fs:fatcat-1.1.0:20200404-025846.log,5.41 KB, text/plain)
2020-04-04 07:34 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,22.65 KB, application/x-bzip)
2020-04-04 07:34 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-04 07:34:26 UTC
/usr/bin/x86_64-gentoo-linux-musl-g++  -I/var/tmp/portage/sys-fs/fatcat-1.1.0/work/fatcat-1.1.0/src  -DNDEBUG -O2 -pipe -march=native -MD -MT CMakeFiles/fatcat.dir/src/fatcat.cpp.o -MF CMakeFiles/fatcat.dir/src/fatcat.cpp.o.d -o CMakeFiles/fatcat.dir/src/fatcat.cpp.o -c /var/tmp/portage/sys-fs/fatcat-1.1.0/work/fatcat-1.1.0/src/fatcat.cpp
/var/tmp/portage/sys-fs/fatcat-1.1.0/work/fatcat-1.1.0/src/fatcat.cpp: In function int main(int, char**):
/var/tmp/portage/sys-fs/fatcat-1.1.0/work/fatcat-1.1.0/src/fatcat.cpp:161:21: error: getopt was not declared in this scope
  161 |     while ((index = getopt(argc, argv, il:L:r:R:s:dc:hx:2@:ob:p:w:v:mt:Sze:O:fk:a:F:)) != -1) {
      |                     ^~~~~~
/var/tmp/portage/sys-fs/fatcat-1.1.0/work/fatcat-1.1.0/src/fatcat.cpp:165:31: error: optarg was not declared in this scope

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

  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:

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Apr  4 01:37:47 UTC 2020
/var/db/repos/musl	Thu Apr  2 19:02:24 UTC 2020

emerge -qpvO sys-fs/fatcat
[ebuild  N    ] sys-fs/fatcat-1.1.0
Comment 1 Toralf Förster gentoo-dev 2020-04-04 07:34:29 UTC
Created attachment 629716 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-04 07:34:32 UTC
Created attachment 629718 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-04 07:34:35 UTC
Created attachment 629720 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-04 07:34:38 UTC
Created attachment 629722 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-04 07:34:42 UTC
Created attachment 629724 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-04 07:34:45 UTC
Created attachment 629726 [details]
sys-fs:fatcat-1.1.0:20200404-025846.log
Comment 7 Toralf Förster gentoo-dev 2020-04-04 07:34:48 UTC
Created attachment 629728 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-04-05 16:46:32 UTC
The bug has been closed via the following commit(s):

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

commit 3384356d7e1079b2e2b7bc64761b27e48693f0a7
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2020-04-05 16:25:27 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2020-04-05 16:25:52 +0000

    sys-fs/fatcat: add missing dep & include for musl
    
    Closes: https://bugs.gentoo.org/716116
    Package-Manager: Portage-2.3.96, Repoman-2.3.22
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 sys-fs/fatcat/fatcat-1.1.0-r1.ebuild            | 26 +++++++++++++++++++++++++
 sys-fs/fatcat/files/fatcat-include-getopt.patch | 11 +++++++++++
 2 files changed, 37 insertions(+)