-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Syntax crates are broken on OSX Homebrew builds #12178
Comments
It seems that |
I've found that with a Homebrew build, the segfault always happens if this is present:
The segfault happens even when |
Probably ignore this as I think it was misguided but I'll leave it here for posterity. Better analysis in my more recent comment.
|
I did some more investigation and found that the issue is with not using Running Manually built:
Homebrew built:
Notice how the manual built one uses I verified that this was indeed the issue by using the library built with homebrew-rustc fixing it up with this command:
Doing that lets compilation of try.rs succeed using the homebrew version of rustc. |
rpaths strike again! I wonder why the rpaths differ between the homebrew build and the normal one. In any case, the behavior of the unmodified Homebrew build is still bogus. I'll try to figure out what's going on there. |
Adding |
Due to favoring static binaries by default, I think it'd be reasonable to upstream it. |
The same problems will occur for other projects, so I don't think the build system should override the |
I agree with thestinger. Can't we fix the bug in rpath so that it behaves consistently regardless of the build environment? My comment above shows that the homebrew-rustc-built library is fine after manually fixing up the rpaths. |
Rust is the only programming language that I know of setting this kind of thing by default. I think it's just plain wrong to do it at all. It doesn't work at all on Windows so there's an inconsistent experience by default across platforms, and it opens up hidden security holes by default elsewhere. |
I see, I misunderstood you. I think that's fair. |
The rpaths end up being setup incorrectly, which causes strange issues like rust-lang/rust#12178. Closes #26686. Signed-off-by: Adam Vandenberg <[email protected]>
The rpaths end up being setup incorrectly, which causes strange issues like rust-lang/rust#12178. Closes Homebrew#26686. Signed-off-by: Adam Vandenberg <[email protected]>
The Homebrew install should be fixed now. |
The rpaths end up being setup incorrectly, which causes strange issues like rust-lang/rust#12178. Closes Homebrew#26686. Signed-off-by: Adam Vandenberg <[email protected]>
…jonas-schievink fix: Fix panic when a macro passes a float token to another macro Fixes rust-lang/rust-analyzer#12170 (num-traits no longer causes a panic)
…ero, r=llogiq Don't warn about modulo arithmetic when comparing to zero closes rust-lang#12006 By default, don't warn about modulo arithmetic when comparing to zero. This behavior is configurable via `clippy.toml`. See discussion [on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/.E2.9C.94.20Is.20issue.20.2312006.20worth.20implementing.3F) changelog: [`modulo_arithmetic`]: By default don't lint when comparing the result of a modulo operation to zero.
A minimal-ish example:
Backtrace:
There are a couple of things that are weird here:
mymac
isn't being registered properly. Maybe it's using a different interner than the rest of rustc?The text was updated successfully, but these errors were encountered: