Closed marxin closed 2 months ago
I don't know how to fix that. Is there any Gentoo expert who can help me?
I'm using the script to link as many programs as possible with mold for testing. As long as the script works for some packages, I'm fine with that, even if it cannot build all packages.
I'm using the script to link as many programs as possible with mold for testing. As long as the script works for some packages, I'm fine with that, even if it cannot build all packages.
Sure, that's fine that one can't build all packages. But I face a problem where dependencies are installed (in the case of Gentoo build):
emerge gdb lld clang vim emacs strace ccache xeyes dev-build/cmake ...
That said, I can't build any package :disappointed:
You need to run ./dist.sh
first to build mold in the top directory. Then try again with a random package. I tried with net-fs/netatalk
(a completely random choice) and it did build.
Ok, I see the script depends on the mold
binary in the top-level folder. That's something I can build even w/o dist.sh
.
What fails for me is the building of mold-gentoo
image. Can you please try re-building it:
docker image rm mold-gentoo
./common/gentoo-test.sh net-fs/netatalk
?
The following fixes my problem:
diff --git a/common/gentoo-test.sh b/common/gentoo-test.sh
index fd5c4ca8..b9cd21a1 100755
--- a/common/gentoo-test.sh
+++ b/common/gentoo-test.sh
@@ -26,7 +26,7 @@ if ! docker image ls mold-gentoo | grep -q mold-gentoo; then
cat <<EOF | docker build -t mold-gentoo -
FROM gentoo/stage3
RUN emerge-webrsync
-RUN echo 'USE="X ssl elogind -systemd corefonts truetype jpeg jpeg2k tiff zstd static-libs binary"' >> /etc/portage/make.conf && \
+RUN echo 'USE="X ssl elogind -systemd corefonts truetype jpeg jpeg2k tiff zstd static-libs binary -perl"' >> /etc/portage/make.conf && \
echo 'ACCEPT_KEYWORDS="~amd64"' >> /etc/portage/make.conf && \
echo 'ACCEPT_LICENSE="* -@EULA"' >> /etc/portage/make.conf && \
echo 'FEATURES="\${FEATURE} noclean nostrip ccache -ipc-sandbox -network-sandbox -pid-sandbox -sandbox"' >> /etc/portage/make.conf && \
It seems the problematic Perl conflict is pulled in by git
package.
Ah, that's indeed a problem. Thank you for pointing that out!
Feel free to ping me on stuff like this if needed.
Thanks. I don't have anything specific to ask right now, but if you notice anything odd in my build script, please let me know.
It fails with the following error message: