Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923077 - sys-libs/pkgcraft-0.0.13 fails to compile: Error: CliError { error: Some(1 job failed), exit_code: 101 }
Summary: sys-libs/pkgcraft-0.0.13 fails to compile: Error: CliError { error: Some(1 jo...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-28 06:58 UTC by Agostino Sarubbo
Modified: 2024-02-02 04:34 UTC (History)
0 users

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


Attachments
build.log (build.log,496.85 KB, text/plain)
2024-01-28 06:58 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 2024-01-28 06:58:42 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-libs/pkgcraft-0.0.13 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM
Info about the system: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-01-28 06:58:45 UTC
Created attachment 883347 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-01-28 06:58:45 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


  thread 'main' panicked at /var/tmp/portage/sys-libs/pkgcraft-0.0.13/work/pkgcraft-c-0.0.13/vendor/bindgen/lib.rs:620:31:
Error: CliError { error: Some(1 job failed), exit_code: 101 }
error: failed to run custom build command for `scallop v0.0.12`
Comment 3 Tim Harder gentoo-dev 2024-01-28 19:37:13 UTC
This is more of a Gentoo clang issue (on musl) then a pkgcraft one, if you're building rust code using cbindgen against musl you need a static clang library on the system as seen by the following message in the build log:

Unable to find libclang: "the `libclang` shared library at /usr/lib/llvm/17/lib/libclang.so.17.0.6 could not be opened: Dynamic loading not supported"

Therefore, the clang ebuild should build and install the libclang.a static library on musl targets if it wants to be usable on them.
Comment 4 Tim Harder gentoo-dev 2024-01-28 19:50:05 UTC
I forgot to mention as proof of pkgcraft et al. building fine on musl systems: upstream provides static binaries built using musl for the tool related projects (see https://github.com/pkgcraft/pkgcraft/releases), but not pkgcraft-c (sys-libs/pkgcraft) because currently it makes little sense to provide that for musl targets.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-02 04:34:31 UTC
See also bug 915651 (which is, confusingly, being used for two issues).