warning: Encountered error: UnexpectedEndOfFile, falling back to default ABI and dynamic linker. warning: Encountered error: UnexpectedEndOfFile, falling back to default ABI and dynamic linker. error(compilation): clang failed with stderr: In file included from /var/tmp/portage/dev-lang/zig-0.10.0/work/zig-0.10.0/lib/libcxx/src/iostream.cpp:9: In file included from /var/tmp/portage/dev-lang/zig-0.10.0/work/zig-0.10.0/lib/libcxx/include/__locale:44: /var/tmp/portage/dev-lang/zig-0.10.0/work/zig-0.10.0/lib/libcxx/include/__support/musl/xlocale.h:27:8: error: cannot add 'abi_tag' attribute in a redeclaration /var/tmp/portage/dev-lang/zig-0.10.0/work/zig-0.10.0/lib/libcxx/include/__config:634:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI' /usr/include/stdlib.h:285:22: note: previous declaration is here ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_systemd-j4-20230108-050029 ------------------------------------------------------------------- GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle" gcc-config -l: [1] x86_64-pc-linux-gnu-10 [2] x86_64-pc-linux-gnu-12 * clang/llvm (if any): clang version 15.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/15 15.0.6 Python 3.10.9 Available Ruby profiles: [1] ruby27 (with Rubygems) [2] ruby30 (with Rubygems) * The following VMs are available for generation-2: *) Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17] Available Java Virtual Machines: [1] openjdk-bin-17 system-vm php cli (if any): HEAD of ::gentoo commit ac7a6d182d064638c9f6146f3043e900fb6136ef Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sun Jan 8 14:17:07 2023 +0000 2023-01-08 14:17:07 UTC emerge -qpvO dev-lang/zig [ebuild N ] dev-lang/zig-0.10.0
Created attachment 847958 [details] emerge-info.txt
Created attachment 847960 [details] dev-lang:zig-0.10.0:20230108-141843.log.bz2
Created attachment 847962 [details] emerge-history.txt
Created attachment 847964 [details] environment
Created attachment 847966 [details] etc.clang.tar.bz2
Created attachment 847968 [details] etc.portage.tar.bz2
Created attachment 847970 [details] logs.tar.bz2
*** This bug has been marked as a duplicate of bug 851732 ***
(In reply to Eric Joldasov from comment #8) > > *** This bug has been marked as a duplicate of bug 851732 *** Are you sure? it's riscv vs amd64, at least.
Wonder if this is related to https://github.com/llvm/llvm-project/commit/fc87452916c0d8759625aad65e9335778ce9cc68.
(In reply to Sam James from comment #9) > (In reply to Eric Joldasov from comment #8) > > > > *** This bug has been marked as a duplicate of bug 851732 *** > > Are you sure? it's riscv vs amd64, at least. I think main bug here is that building Zig uses its own copy of libcxx. In theory, since we are using system LLVM it should use system libc++ too, as stated in upstream PR in linked bug. Maybe it shadows other bugs, idk, but for now I see it as `Zig uses own copy of libcxx [that has different patches than Gentoo's one], and on musl it causes problems (IIUC Gentoo's package doesn't have this problem)`.
(In reply to Sam James from comment #9) > (In reply to Eric Joldasov from comment #8) > > > > *** This bug has been marked as a duplicate of bug 851732 *** > > Are you sure? it's riscv vs amd64, at least. I'm not sure now
(In reply to Eric Joldasov from comment #11) > (In reply to Sam James from comment #9) > > (In reply to Eric Joldasov from comment #8) > > > > > > *** This bug has been marked as a duplicate of bug 851732 *** > > > > Are you sure? it's riscv vs amd64, at least. > > I think main bug here is that building Zig uses its own copy of libcxx. In > theory, since we are using system LLVM it should use system libc++ too, as > stated in upstream PR in linked bug. Maybe it shadows other bugs, idk, but > for now I see it as `Zig uses own copy of libcxx [that has different patches > than Gentoo's one], and on musl it causes problems (IIUC Gentoo's package > doesn't have this problem)`. fwiw this is bug 869038
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fadfe488122a31156de1ea0118a4f9e7d7943f7 commit 8fadfe488122a31156de1ea0118a4f9e7d7943f7 Author: Eric Joldasov <bratishkaerik@getgoogleoff.me> AuthorDate: 2023-01-23 04:09:15 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2023-03-09 10:53:57 +0000 dev-lang/zig: slotting, initial support for setting ZIG_{MCPU,TARGET} * Install Zig to "/usr/$(get_libdir)/zig/${PV}", handle /usr/bin/zig via eselect-zig * Add functions for getting ZIG_TARGET and ZIG_MCPU (user-provided or defaults) and use them for building/testing * Add "doc" USE flag for installing language reference and stdlib documentation Closes: https://bugs.gentoo.org/885861 Bug: https://bugs.gentoo.org/890234 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me> Signed-off-by: Florian Schmaus <flow@gentoo.org> dev-lang/zig/zig-0.10.1-r1.ebuild | 165 ++++++++++++++++++++++++++++++++++++++ dev-lang/zig/zig-9999.ebuild | 82 +++++++++++++++++-- 2 files changed, 241 insertions(+), 6 deletions(-)