Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832027 - media-gfx/darktable-4.2.0 (MUSL): src_configure: #error Do not know how to query CPU L1d cache line size for this system!
Summary: media-gfx/darktable-4.2.0 (MUSL): src_configure: #error Do not know how to qu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-25 09:37 UTC by Agostino Sarubbo
Modified: 2023-02-28 13:12 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,69.75 KB, text/plain)
2022-01-25 09:37 UTC, Agostino Sarubbo
Details
1-CMakeError.log (1-CMakeError.log,7.18 KB, text/plain)
2022-01-25 09:37 UTC, Agostino Sarubbo
Details
1-CMakeOutput.log (1-CMakeOutput.log,126.55 KB, text/plain)
2022-01-25 09:37 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-25 09:37:23 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-gfx/darktable-3.8.0-r2 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-25 09:37:25 UTC
Created attachment 763588 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-25 09:37:26 UTC
Created attachment 763589 [details]
1-CMakeError.log

1-CMakeError.log
Comment 3 Agostino Sarubbo gentoo-dev 2022-01-25 09:37:27 UTC
Created attachment 763590 [details]
1-CMakeOutput.log

1-CMakeOutput.log
Comment 4 Agostino Sarubbo gentoo-dev 2022-01-25 09:37:28 UTC
Error(s) that match a know pattern:


--   Package 'iso-codes', required by 'virtual:world', not found
-- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR) 
-- Could NOT find libheif (missing: libheif_DIR)
-- Could NOT find libheif (missing: libheif_LIBRARY libheif_INCLUDE_DIR) (Required is at least version "1.9.0")
  error: #error Do not know how to query CPU L1d cache line size for this
Comment 5 Marek Szuba archtester gentoo-dev 2022-01-26 09:35:34 UTC
See src/external/rawspeed/cmake/Modules/cpu-page-size.cpp
Comment 6 Agostino Sarubbo gentoo-dev 2023-02-24 09:11:18 UTC
tinderbox_musl has reproduced this issue with version 4.2.0 - Updating summary.
Comment 7 Marek Szuba archtester gentoo-dev 2023-02-28 10:50:56 UTC
OK, so the versions of sys-libs/musl currently in the tree have finally got support for the _SC_PAGESIZE syscall. Still nothing for the cache-line size one, though... On the plus side, rawspeed build scripts already already have the option to use hard-coded default values here in case of binary builds so it should be a fairly straightforward matter of making it possible to fall back to this mode in our case as well.
Comment 8 Larry the Git Cow gentoo-dev 2023-02-28 13:12:55 UTC
The bug has been closed via the following commit(s):

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

commit 05e28cce9d058d40e7d2001c1202b315b8a6742d
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2023-02-28 12:07:15 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2023-02-28 13:12:40 +0000

    media-gfx/darktable: fix rawspeed CPU-property detection on musl
    
    For page-cache size, the sys-libs/musl version currently in the tree
    does support the relevant syscall so just make sure the test program
    recognises this correctly.
    
    For cache-line length, it does not presently seem to be possible to
    look this up on a musl system so have CMake fall back to the hard-coded
    default. It can already do so when in "build binary package" mode so it
    has been a simple matter of extending one condition to check for the
    ebuild-specified "am I linking against musl?" option.
    
    Closes: https://bugs.gentoo.org/832027
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 media-gfx/darktable/darktable-4.2.1.ebuild         |  2 ++
 .../files/darktable-4.2.1_cmake-musl.patch         | 22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)