-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symbolic link doesn't seem to work on Linux #993
Comments
Oh, I see that gcc was a symlink as well
Maybe that's why it didn't work? Edit: I tried with a non-symlink compiler and it also didn't work, so that wasn't it. |
If someone wants to reproduce this, I can offer this dockerfile
I tried on a more complicated image, but this is what I believe to be the relevant parts. The result might be different from yours. |
The problem is due to symbolic links. Create hardlinks, i.e.:
|
Thanks @xanderificnl for your solution! I do not use sccache anymore but when I do I'll definitely check out hard links. |
* Make note of symlinks. It took me awhile before figuring out I should use hardlinks instead of symlinks. This proposal suggests adding a note in the hope it'll save someone else a bit of time. See also this issue: #993 where someone else also spent way too much time on this issue.
* Make note of symlinks. It took me awhile before figuring out I should use hardlinks instead of symlinks. This proposal suggests adding a note in the hope it'll save someone else a bit of time. See also this issue: mozilla/sccache#993 where someone else also spent way too much time on this issue.
Hello, there seems to be another issue... I've done this and it worked flawlessly, however when explicitly calling sccache, for example using Of course, one could simply write out the full path to the actual compiler Is there a way we could detect this setup and fix it? |
The environment in which It does seem (after a quick glance) that |
It didn't, instead it led to an error about the compiler not supporting the In any case, using sccache with hardlinks perhaps shouldn't rule out regular use. |
That error isn't helpful at all, and I do agree, Your suggestion for |
I currently don't have my desktop available, but I'll respond back tomorrow with the proper error traceback and perhaps a feature request if needed. Thank you for your time. |
Well, I'm kind of a week late to my commitment, sorry for that. Here's a brief demonstration of what I mean, and the error thrown when calling the hardlinks as described above. |
Using
sccache-v0.2.15-x86_64-unknown-linux-musl
, after symlinking:I get this behavior
sccache still thinks it is being called as
sccache
, and not asgcc
.The "wrap-around" behavior works fine before linking
But on my Mac, the same sccache
v0.2.15
works fine with gcc being symlinked to sccache:The text was updated successfully, but these errors were encountered: