Summary: | dev-lang/spidermonkey-78.6.0 fails to build without clang | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sergio <hujuice> |
Component: | Current packages | Assignee: | Mozilla Gentoo Team <mozilla> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge --info |
Description
Sergio
2021-01-14 13:20:24 UTC
Created attachment 682876 [details]
emerge --info
I'm updating to spidermonkey-78.10.0 Since I removed clang for some reason, I am again in the identical issue. /usr/lib/ccache/bin/clang++ ... check that your links are valid (eselect compiler-shadow update ccache). They are. But there's no clang. This sounds like you have a dangling symlink which is getting picked up... I don't know if I don't arrive to understand something. Can /usr/lib/ccache/bin/clang++ be a symlink to something else? I mean something that is not clang. The error message says: error: Could not find compiler "clang++" in PATH. $PATH contains /usr/lib/llvm/11/bin and in a computer where clang is installed I have /usr/lib/llvm/11/bin/clang++. In this lightweight desktop there's no /usr/lib/llvm/11/bin/clang++. Adding the "clang" USE pulls clang as dependency and it works. Am I wrong in some understanding? Yes. And I can reproduce when I have a system with working clang and ccache setup where I now remove clang. After removing clang, > /usr/lib/ccache/bin/clang++ -> /usr/bin/ccache will be kept. It's not a broken symlink but ccache will fail to run clang++ because there is no clang anymore on the system. > eselect compiler-shadow update ccache will remove the 'stale' link: > clean-stage3 # ls -lv /usr/lib/ccache/bin/clang++ > lrwxrwxrwx 1 root root 15 Apr 20 17:46 /usr/lib/ccache/bin/clang++ -> /usr/bin/ccache > clean-stage3 # eselect compiler-shadow update ccache > Updating masquerade for ccache ... > 'gcc' -> '/usr/bin/ccache' > 'gcc-10.2.0' -> '/usr/bin/ccache' > 'gcc-9.3.0' -> '/usr/bin/ccache' > 'g++' -> '/usr/bin/ccache' > 'g++-10.2.0' -> '/usr/bin/ccache' > 'g++-9.3.0' -> '/usr/bin/ccache' > 'aarch64-unknown-linux-gnu-gcc' -> '/usr/bin/ccache' > 'armv6j-hardfloat-linux-gnueabi-gcc' -> '/usr/bin/ccache' > 'x86_64-pc-linux-gnu-gcc' -> '/usr/bin/ccache' > 'aarch64-unknown-linux-gnu-gcc-10.2.0' -> '/usr/bin/ccache' > 'armv6j-hardfloat-linux-gnueabi-gcc-10.2.0' -> '/usr/bin/ccache' > 'x86_64-pc-linux-gnu-gcc-10.2.0' -> '/usr/bin/ccache' > 'x86_64-pc-linux-gnu-gcc-9.3.0' -> '/usr/bin/ccache' > 'aarch64-unknown-linux-gnu-g++' -> '/usr/bin/ccache' > 'armv6j-hardfloat-linux-gnueabi-g++' -> '/usr/bin/ccache' > 'x86_64-pc-linux-gnu-g++' -> '/usr/bin/ccache' > 'aarch64-unknown-linux-gnu-g++-10.2.0' -> '/usr/bin/ccache' > 'armv6j-hardfloat-linux-gnueabi-g++-10.2.0' -> '/usr/bin/ccache' > 'x86_64-pc-linux-gnu-g++-10.2.0' -> '/usr/bin/ccache' > 'x86_64-pc-linux-gnu-g++-9.3.0' -> '/usr/bin/ccache' > 'cc' -> '/usr/bin/ccache' > 'c99' -> '/usr/bin/ccache' > 'c++' -> '/usr/bin/ccache' > 'aarch64-unknown-linux-gnu-c++' -> '/usr/bin/ccache' > 'armv6j-hardfloat-linux-gnueabi-c++' -> '/usr/bin/ccache' > 'x86_64-pc-linux-gnu-c++' -> '/usr/bin/ccache' > clean-stage3 # ls -lv /usr/lib/ccache/bin/clang++ > ls: cannot access '/usr/lib/ccache/bin/clang++': No such file or directory ...and now, spidermonkey will merge successfully. |