Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712472 - sys-process/nmon-16m : nmon.c: fatal error: fstab.h: No such file or directory
Summary: sys-process/nmon-16m : nmon.c: fatal error: fstab.h: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-14 09:44 UTC by Toralf Förster
Modified: 2022-06-23 04:47 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.17 KB, text/plain)
2020-03-14 09:44 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,58.99 KB, text/plain)
2020-03-14 09:44 UTC, Toralf Förster
Details
environment (environment,65.50 KB, text/plain)
2020-03-14 09:44 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.22 KB, application/x-bzip)
2020-03-14 09:44 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,444 bytes, application/x-bzip)
2020-03-14 09:44 UTC, Toralf Förster
Details
sys-process:nmon-16m:20200314-061655.log (sys-process:nmon-16m:20200314-061655.log,1.91 KB, text/plain)
2020-03-14 09:44 UTC, Toralf Förster
Details
fix build for musl users (glibc.patch,826 bytes, patch)
2022-06-22 20:01 UTC, Jory A. Pratt
Details | Diff

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-14 09:44:02 UTC
    1 | #warning redirecting incorrect #include <sys/errno.h> to <errno.h>
      |  ^~~~~~~
nmon.c:586:10: fatal error: fstab.h: No such file or directory
  586 | #include <fstab.h>
      |          ^~~~~~~~~
compilation terminated.

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.2.0 *
 [2] 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.41.1 *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 14 Mar 2020 05:08:51 +0000
emerge -qpvO sys-process/nmon
[ebuild  N    ] sys-process/nmon-16m
Comment 1 Toralf Förster gentoo-dev 2020-03-14 09:44:04 UTC
Created attachment 618828 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-14 09:44:08 UTC
Created attachment 618830 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-14 09:44:11 UTC
Created attachment 618832 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-14 09:44:14 UTC
Created attachment 618834 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-14 09:44:17 UTC
Created attachment 618836 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-14 09:44:19 UTC
Created attachment 618838 [details]
sys-process:nmon-16m:20200314-061655.log
Comment 7 Toralf Förster gentoo-dev 2020-03-16 16:12:38 UTC
The first attempt to tinderbox a musl image failed at all.

I'll mass close therefore all filed bug reports of the last days related to this tinderbox image.

Please feel free to re-open if you think that the bug is real in musl and not fixed by the musl overlay.
Comment 8 Lloyd 2022-06-22 18:54:17 UTC
Same here. Regular Gentoo Linux System with musl-overlay and enabled profile:
"default/linux/amd64/17.0/musl/hardened"

On my second glibc-gentoo system nmon compiled without problems.

$ equery f sys-libs/glibc | grep fstab.h
/usr/include/fstab.h

$ equery f sys-libs/musl | grep fstab.h
[nothing ;-)]

thanks and bye.
Comment 9 Jory A. Pratt gentoo-dev 2022-06-22 20:01:48 UTC
Created attachment 786848 [details, diff]
fix build for musl users
Comment 10 Larry the Git Cow gentoo-dev 2022-06-23 04:47:24 UTC
The bug has been closed via the following commit(s):

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

commit a4a19cca5de67ffb9d50c61f3fe1273dd6aa348e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-23 04:43:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-23 04:43:53 +0000

    sys-process/nmon: fix musl build
    
    Closes: https://bugs.gentoo.org/712472
    Thanks-to: Jory A. Pratt <anarchy@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-process/nmon/files/nmon-16n-musl.patch | 29 +++++++++++++++++++++++++++++
 sys-process/nmon/nmon-16n.ebuild           | 12 +++++++-----
 2 files changed, 36 insertions(+), 5 deletions(-)