Summary: | dev-lang/zig-0.6.0 version bump | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Anton Kochkov <anton.kochkov> |
Component: | Current packages | Assignee: | Aisha Tammy <gentoo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugs.gentoo.org, marduk, mgorny, proxy-maint, sam |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/19007 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
zig 0.7.0 version bump
build and install lld-11 shared libraries add missing lld-11 dependency |
Description
Anton Kochkov
2020-04-27 06:00:15 UTC
I tried to version bump, but I get multiple errors: * linker issues lar to https://github.com/ziglang/zig/issues/4799, I added -DZIG_PREFER_CLANG_CPP_DYLIB=ON to the cmake args * zig used to embed lld, it does not anymore. Therefore it depends on system lld. However, gentoo's lld does not include static libraries needed by zig. I tweaked the lld ebuild to install them. * zig0 now compile, but fails at runtime "CommandLine Error: Option 'mc-relax-all' registered more than once", according to upstream, it's due to a double import of functions, dynlib conflicting with static lib (also in https://github.com/ziglang/zig/issues/4799). I did not find a fix/workaround for that. I tried both with gcc and clang 10, same results. Looks like it have to wait for LLVM 11 and Zig 0.7.0 https://github.com/ziglang/zig/milestone/9 - the planned release date is September 28, 2020. @Nick, ping. (In reply to Sam James from comment #3) > @Nick, ping. ping Created attachment 671164 [details]
zig 0.7.0 version bump
newly released 0.7.0 version, targetting llvm11.
builds using -DZIG_PREFER_CLANG_CPP_DYLIB=ON
requires sys-devel/lld/lld-11.0.0.ebuild to be patched to build shared libraries. see provided patch.
The build requires quite some RAM about 6GB during my tests.
Created attachment 671167 [details, diff]
build and install lld-11 shared libraries
patch sys-devel/lld/lld-11.0.0.ebuild to build and install shared libraries required by >=dev-lang/zig-0.7.0
Created attachment 671182 [details]
add missing lld-11 dependency
Hi. I would like to proxy-maintain this package. The most recent release is Zig 0.7.1, which builds OK using the ebuilds attached to this bug. (In reply to Jan Ziak (atomsymbol) from comment #8) > Hi. I would like to proxy-maintain this package. The most recent release is > Zig 0.7.1, which builds OK using the ebuilds attached to this bug. It's probably worth speaking to Miguel too, as he wrote these ebuilds (In reply to Michel Ganguin from comment #5) > Created attachment 671164 [details] > zig 0.7.0 version bump > > newly released 0.7.0 version, targetting llvm11. > > builds using -DZIG_PREFER_CLANG_CPP_DYLIB=ON > > requires sys-devel/lld/lld-11.0.0.ebuild to be patched to build shared > libraries. see provided patch. > > The build requires quite some RAM about 6GB during my tests. Could you supply a git am-able patch with GCO sign off, but ideally a GitHub PR? I think we may need to speak to mgorny about whether he's happy with the LLD patch. IIRC upstream were unsure about it. (In reply to Sam James from comment #9) > (In reply to Jan Ziak (atomsymbol) from comment #8) > > Hi. I would like to proxy-maintain this package. The most recent release is > > Zig 0.7.1, which builds OK using the ebuilds attached to this bug. > > It's probably worth speaking to Miguel too, as he wrote these ebuilds > Sorry, Michel *. (In reply to Sam James from comment #9) > Could you supply a git am-able patch with GCO sign off, but ideally a GitHub > PR? > > I think we may need to speak to mgorny about whether he's happy with the LLD > patch. IIRC upstream were unsure about it. I will try to submit a GitHub PR, with a modified LLD ebuild that adds a "shared" USE flag (unless somebody has a better suggestion). Don't waste your time. I'm not going to accept any LLD patch that hasn't been accepted upstream. (In reply to Michał Górny from comment #12) > Don't waste your time. I'm not going to accept any LLD patch that hasn't > been accepted upstream. I meant lld.ebuild patch - not lld source code patch. Are you going to accept such a patch? Does it actually resolve the problem? Last I've tried, it failed hard due to double initialization or sth like that. (In reply to Michał Górny from comment #14) > Does it actually resolve the problem? Last I've tried, it failed hard due > to double initialization or sth like that. It (== https://bugs.gentoo.org/attachment.cgi?id=671167&action=diff) resolves the problem of /usr/lib64/liblld*.so and /usr/include/lld/*/*.h files not being installed, if that is what you mean. As I mentioned earlier, we can either introduce a "shared" USE flag to lld.ebuild or make lld.ebuild install the libs+includes by default - whichever option you prefer. Sure but last time I've tried, I wasn't able to start zig with this. fixed author Aisha Tammy <gentoo@aisha.cc> 2021-02-22 22:54:50 +0000 committer Joonas Niilola <juippis@gentoo.org> 2021-03-04 19:42:33 +0200 commit 41ff4d6bedc52f042d13e3e4ab34ee519f2a1baf (patch) tree 53073e0ac7ea57be690fe523fd9fc9964796e022 /dev-lang/zig parent sys-devel/lld: enable shared libraries on lld (diff) download gentoo-41ff4d6bedc52f042d13e3e4ab34ee519f2a1baf.tar.gz gentoo-41ff4d6bedc52f042d13e3e4ab34ee519f2a1baf.tar.bz2 gentoo-41ff4d6bedc52f042d13e3e4ab34ee519f2a1baf.zip dev-lang/zig: version bump to 0.7.1 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Aisha Tammy <gentoo@aisha.cc> Closes: https://github.com/gentoo/gentoo/pull/19606 Signed-off-by: Joonas Niilola <juippis@gentoo.org> |