-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
compiler panic on OS X: 'can't create relative paths across filesystems' (regression) #23140
Comments
I'm seeing the same ICE on Linux if I try to use
This was working a few days ago: |
This also makes rustc unusable in my normal setup. |
Same here |
It looks to me like the old |
I have a patch for this. |
The new `relative_from` method no longer supports the case on unix where both paths are absolute, which `-C rpath` depended on. This version fixes the problem by copying the old path_relative_from function into the rpath module. Fixes rust-lang#23140
Fix regression in -C rpath that causes failures with symlinks The new `relative_from` method no longer supports the case on unix where both paths are absolute, which `-C rpath` depended on. This version fixes the problem by copying the old path_relative_from function into the rpath module. Fixes rust-lang#23140 After experimenting with the new `relative_from` function on `Path` I'm not sure what it's use case is. It no longer even figures out that the relative path from `/foo/bar` to `/foo/baz/qux` is `../baz/qux`.
The
-C rpath
option, which has always been nonfunctional on OS X, now causes a compiler panic. (I only came across this by accident, because I never removed the option from my makefile after attempting to use it at the time I filed that issue.)In this case,
relativize
in src/librustc_back/rpath.rs is being called with the arguments "/opt/lru/lib/rustlib/x86_64-apple-darwin/lib" and "/private/tmp". There is actually only one filesystem involved, although I'm not sure why mounts would prevent relative paths from being created.The text was updated successfully, but these errors were encountered: