Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890234 - dev-lang/zig-0.10.0 - /.../xlocale.h: error: cannot add abi_tag attribute in a redeclaration
Summary: dev-lang/zig-0.10.0 - /.../xlocale.h: error: cannot add abi_tag attribute in ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Eric Joldasov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-01-08 14:39 UTC by Toralf Förster
Modified: 2023-03-09 10:54 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.13 KB, text/plain)
2023-01-08 14:39 UTC, Toralf Förster
Details
dev-lang:zig-0.10.0:20230108-141843.log.bz2 (dev-lang:zig-0.10.0:20230108-141843.log.bz2,7.77 KB, application/x-bzip)
2023-01-08 14:39 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,35.77 KB, text/plain)
2023-01-08 14:39 UTC, Toralf Förster
Details
environment (environment,106.46 KB, text/plain)
2023-01-08 14:39 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,795 bytes, application/x-bzip)
2023-01-08 14:39 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,19.04 KB, application/x-bzip)
2023-01-08 14:39 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.04 KB, application/x-bzip)
2023-01-08 14:39 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 2023-01-08 14:39:10 UTC
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
Comment 1 Toralf Förster gentoo-dev 2023-01-08 14:39:11 UTC
Created attachment 847958 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-01-08 14:39:12 UTC
Created attachment 847960 [details]
dev-lang:zig-0.10.0:20230108-141843.log.bz2
Comment 3 Toralf Förster gentoo-dev 2023-01-08 14:39:13 UTC
Created attachment 847962 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-01-08 14:39:14 UTC
Created attachment 847964 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-01-08 14:39:15 UTC
Created attachment 847966 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-01-08 14:39:16 UTC
Created attachment 847968 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-01-08 14:39:17 UTC
Created attachment 847970 [details]
logs.tar.bz2
Comment 8 Eric Joldasov 2023-01-09 14:27:58 UTC

*** This bug has been marked as a duplicate of bug 851732 ***
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-09 14:34:42 UTC
(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.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-09 14:39:41 UTC
Wonder if this is related to https://github.com/llvm/llvm-project/commit/fc87452916c0d8759625aad65e9335778ce9cc68.
Comment 11 Eric Joldasov 2023-01-09 15:25:39 UTC
(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)`.
Comment 12 Eric Joldasov 2023-01-13 13:48:42 UTC
(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
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-25 08:13:34 UTC
(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
Comment 14 Larry the Git Cow gentoo-dev 2023-03-09 10:54:06 UTC
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(-)