Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713784 - dev-ruby/sigar-0.7.3-r1 : linux_sigar.c: error: HZ undeclared (first use in this function)
Summary: dev-ruby/sigar-0.7.3-r1 : linux_sigar.c: error: HZ undeclared (first use in t...
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: PATCH, PMASKED
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-03-21 11:43 UTC by Toralf Förster
Modified: 2023-04-21 08:55 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.06 KB, text/plain)
2020-03-21 11:43 UTC, Toralf Förster
Details
dev-ruby:sigar-0.7.3:20200321-111915.log (dev-ruby:sigar-0.7.3:20200321-111915.log,3.98 KB, text/plain)
2020-03-21 11:43 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,231.12 KB, text/plain)
2020-03-21 11:43 UTC, Toralf Förster
Details
environment (environment,98.38 KB, text/plain)
2020-03-21 11:43 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,19.24 KB, application/x-bzip)
2020-03-21 11:43 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-03-21 11:43:24 UTC
x86_64-gentoo-linux-musl-gcc -I. -I/usr/include/ruby-2.4.0/x86_64-linux-musl -I/usr/include/ruby-2.4.0/ruby/backward -I/usr/include/ruby-2.4.0 -I.   -I../../include -I../../src/os/linux -U_FILE_OFFSET_BITS -DRB_HAS_RE_ERROR -DRB_RUBY_19 -fPIC -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -fno-strict-aliasing -fPIC -std=gnu89 -I/usr/include/tirpc  -o linux_sigar.o -c linux_sigar.c
linux_sigar.c: In function sigar_disk_usage_get:
linux_sigar.c:1468:36: error: HZ undeclared (first use in this function)
 1468 |             tput = ((double)ios) * HZ / interval;
      |                                    ^~
linux_sigar.c:1468:36: note: each undeclared identifier is reported only once for each function it appears in

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

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

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

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.41.1 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Mar 21 10:38:37 UTC 2020
/var/db/repos/musl	Sat Mar 21 03:09:12 UTC 2020

emerge -qpvO dev-ruby/sigar
[ebuild  N    ] dev-ruby/sigar-0.7.3  USE="-test" RUBY_TARGETS="ruby24 ruby25 -ruby26 -ruby27"
Comment 1 Toralf Förster gentoo-dev 2020-03-21 11:43:27 UTC
Created attachment 623814 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-21 11:43:30 UTC
Created attachment 623816 [details]
dev-ruby:sigar-0.7.3:20200321-111915.log
Comment 3 Toralf Förster gentoo-dev 2020-03-21 11:43:33 UTC
Created attachment 623818 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-21 11:43:35 UTC
Created attachment 623820 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-21 11:43:38 UTC
Created attachment 623822 [details]
etc.portage.tbz2
Comment 7 Agostino Sarubbo gentoo-dev 2022-01-19 08:16:02 UTC
tinderbox_musl has reproduced this issue with version 0.7.3-r1 - Updating summary.
Comment 8 Larry the Git Cow gentoo-dev 2023-03-19 11:11:50 UTC
The bug has been referenced in the following commit(s):

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

commit 2de4d8cc9be87903e279d4c374fcb80c252c57b6
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-03-19 11:11:29 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-03-19 11:11:29 +0000

    package.mask: Last rite dev-ruby/sigar
    
    Bug: https://bugs.gentoo.org/713784
    Bug: https://bugs.gentoo.org/895686
    Signed-off-by: David Seifert <soap@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2023-04-21 08:55:03 UTC
The bug has been closed via the following commit(s):

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

commit 8381ad9d05a299e354b1a2d318572c9e0673b6ca
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-04-21 08:54:31 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-04-21 08:54:31 +0000

    dev-ruby/sigar: treeclean
    
    Closes: https://bugs.gentoo.org/713784
    Closes: https://bugs.gentoo.org/895686
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-ruby/sigar/Manifest              |  1 -
 dev-ruby/sigar/metadata.xml          |  8 --------
 dev-ruby/sigar/sigar-0.7.3-r1.ebuild | 30 ------------------------------
 profiles/package.mask                |  6 ------
 4 files changed, 45 deletions(-)