Summary: | dev-lang/zig failed to test in riscv | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ArchFeh(Yu Gu) <guyu2876> |
Component: | Current packages | Assignee: | Eric Joldasov <bratishkaerik> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | bratishkaerik, jsmolic, proxy-maint, riscv, toralf |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | riscv | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/26325 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 796596 | ||
Attachments: |
build log
environment build log without use test zig-0.10.0 build log zig-0.10.0 environment patch in case github is unavailable build log with patch |
Description
ArchFeh(Yu Gu)
2022-06-13 15:39:08 UTC
Created attachment 784643 [details]
build log
Created attachment 784646 [details]
environment
Created attachment 784649 [details]
build log without use test
Upstream bug https://github.com/ziglang/zig/issues/11918 , upstream fix https://github.com/ziglang/zig/pull/11951 The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d005e3b069726d01579b86d32f6fe32c26573aa3 commit d005e3b069726d01579b86d32f6fe32c26573aa3 Author: Eric Joldasov <bratishkaerik@getgoogleoff.me> AuthorDate: 2022-07-26 21:25:12 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2022-08-22 08:16:08 +0000 dev-lang/zig: block dev-lang/zig-bin, add risv stage0 patch for 0.9.1 Bug: https://bugs.gentoo.org/851732 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> dev-lang/zig/files/zig-0.9.1-fix-riscv.patch | 47 ++++++++++++++++++++++++++++ dev-lang/zig/zig-0.9.1.ebuild | 26 +++++++-------- 2 files changed, 59 insertions(+), 14 deletions(-) Can you please retry with 0.10.0 release? Thank you (In reply to Eric Joldasov from comment #6) > Can you please retry with 0.10.0 release? Thank you Yes I am testing it! Created attachment 839197 [details]
zig-0.10.0 build log
zig-0.10.0 compile failed. zig-bin-0.10.0 installed successfully but has runtime error "[1] 107570 segmentation fault (core dumped) zig"
Created attachment 839199 [details]
zig-0.10.0 environment
Looks like it tries to use bundled source of libc++, even without `-Duse-zig-libcxx` (so equal to false). I'll try to make patch and send it to upstream. Found out that pull request for this already exist! https://github.com/ziglang/zig/pull/13498 > This change also adds logic to look-up the system libc++ includes on Linux and BSD-likes. > This was needed to fix a bug on Linux where we were using Zig-provided libc++ includes even when linking against the system-provided lib. Would you like to try it? Thank you! https://patch-diff.githubusercontent.com/raw/ziglang/zig/pull/13498.patch Created attachment 839579 [details, diff]
patch in case github is unavailable
(In reply to Eric Joldasov from comment #11) > Found out that pull request for this already exist! > https://github.com/ziglang/zig/pull/13498 > > > This change also adds logic to look-up the system libc++ includes on Linux and BSD-likes. > > This was needed to fix a bug on Linux where we were using Zig-provided libc++ includes even when linking against the system-provided lib. > > Would you like to try it? Thank you! > https://patch-diff.githubusercontent.com/raw/ziglang/zig/pull/13498.patch yep gonna try it later today! Created attachment 840177 [details]
build log with patch
compile passed, but test failed. run '$ zig' show
"/usr/bin/zig: error while loading shared libraries: cpp.so.15: cannot open shared object file: No such file or directory"
Fixing can take a long time, so I'll just wait until my VisionFive 2 arrives :) *** Bug 890234 has been marked as a duplicate of this bug. *** Can you test with `dev-lang/zig-0.13.0-r2` please? Thanks! (In reply to Eric Joldasov from comment #17) > Can you test with `dev-lang/zig-0.13.0-r2` please? Thanks! Initially there's an error reported in https://github.com/ziglang/zig/issues/21740 and with the fix from https://github.com/ziglang/zig/pull/21474 applied I'm now hitting a new one, apparently the build system is misdetecting or trying to build for the wrong ABI, so need to investigate why that happens here ``` info: truncate /var/tmp/portage/dev-lang/zig-0.13.0-r2/work/zig-0.13.0_build/stage3/lib/zig/compiler_rt/negvsi2_test.zig install └─ install zig └─ zig build-exe zig ReleaseFast native-native 1 errors error: sub-compilation of libunwind failed /usr/include/gnu/stubs.h:14:11: note: 'gnu/stubs-lp64.h' file not found # include <gnu/stubs-lp64.h> ^~~~~~~~~~~~~~~~~~~ ``` |