Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715752 - dev-libs/libmowgli-2.1.3 : cacheline.c: error: _SC_LEVEL1_DCACHE_LINESIZE undeclared (first use in this function)
Summary: dev-libs/libmowgli-2.1.3 : cacheline.c: error: _SC_LEVEL1_DCACHE_LINESIZE und...
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: https://github.com/atheme/libmowgli-2...
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-04-01 13:11 UTC by Toralf Förster
Modified: 2020-08-31 04:27 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.93 KB, text/plain)
2020-04-01 13:11 UTC, Toralf Förster
Details
dev-libs:libmowgli-2.1.3:20200401-110603.log (dev-libs:libmowgli-2.1.3:20200401-110603.log,12.84 KB, text/plain)
2020-04-01 13:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,178.18 KB, text/plain)
2020-04-01 13:11 UTC, Toralf Förster
Details
environment (environment,19.77 KB, text/plain)
2020-04-01 13:11 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.47 KB, application/x-bzip)
2020-04-01 13:11 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.08 KB, application/x-bzip)
2020-04-01 13:11 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,8.66 KB, application/x-bzip)
2020-04-01 13:11 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 13:11:28 UTC
CompileLib: cacheline.lib.o
cacheline.c: In function mowgli_cacheline_bootstrap:
cacheline.c:36:27: error: _SC_LEVEL1_DCACHE_LINESIZE undeclared (first use in this function)
   36 |  cacheline_size = sysconf(_SC_LEVEL1_DCACHE_LINESIZE);
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
cacheline.c:36:27: 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_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 09:37:38 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO dev-libs/libmowgli
[ebuild  N    ] dev-libs/libmowgli-2.1.3  USE="ssl -libressl"
Comment 1 Toralf Förster gentoo-dev 2020-04-01 13:11:31 UTC
Created attachment 628416 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-01 13:11:34 UTC
Created attachment 628418 [details]
dev-libs:libmowgli-2.1.3:20200401-110603.log
Comment 3 Toralf Förster gentoo-dev 2020-04-01 13:11:37 UTC
Created attachment 628420 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-04-01 13:11:39 UTC
Created attachment 628422 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-04-01 13:11:42 UTC
Created attachment 628424 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-01 13:11:46 UTC
Created attachment 628426 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-04-01 13:11:49 UTC
Created attachment 628428 [details]
temp.tbz2
Comment 9 Wade Cline 2020-04-05 21:04:54 UTC
Thanks for finding the patch, Sam.  PR has been created: https://github.com/gentoo/gentoo/pull/15241 though I currently do not have a set-up where I can reproduce the failure.  Toralf, could you verify that the patch fixes the issue?
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-04-07 11:40:11 UTC
Upstream bug (applied the patch): https://github.com/atheme/libmowgli-2/issues/43


(In reply to Wade Cline from comment #9)
> Thanks for finding the patch, Sam.  PR has been created:
> https://github.com/gentoo/gentoo/pull/15241 though I currently do not have a
> set-up where I can reproduce the failure.  Toralf, could you verify that the
> patch fixes the issue?

No problem, thanks for applying it so quickly!

You need to fix the patch filename though, you put 2.3.1 instead of 2.1.3. Works otherwise. :)
Comment 11 Wade Cline 2020-04-09 04:02:05 UTC
>You need to fix the patch filename though, you put 2.3.1 instead of 2.1.3. Works otherwise. :)
D'oh, I must have forgotten to unmask the '-r1' version when I did my tests.  It should be fixed now!
Comment 12 Larry the Git Cow gentoo-dev 2020-04-10 10:30:17 UTC
The bug has been referenced in the following commit(s):

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

commit 583446d6c076aadebbb43856c3f992fcab61e3a5
Author:     Wade Cline <wadecline@hotmail.com>
AuthorDate: 2020-04-05 20:09:10 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-04-10 10:30:04 +0000

    dev-libs/libmowgli: Revbump
    
    Bug: https://bugs.gentoo.org/715752
    Signed-off-by: Wade Cline <wadecline@hotmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/15241
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 ...-Ensure-sysconf-var-is-defined-before-use.patch | 25 +++++++++++++++++++
 dev-libs/libmowgli/libmowgli-2.1.3-r1.ebuild       | 29 ++++++++++++++++++++++
 2 files changed, 54 insertions(+)