-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Compiler crashes when trying to compile core with static relocation model #58563
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
Comments
I also met this issue when I was compiling code for Pintos. Using
rustc 1.42.0-nightly (0de96d3 2019-12-19) |
But I also found that there is a conflict in my compile parameters. I had Maybe you can provide your custom target json file and command lines (including environment variable exports) and see if there is any similar issue. I also think there should be a bug report to the upstream LLVM. Rust compiler is really unprotected beyond FFI. |
I'm trying to compile Rust code for MS-DOS, and have written a custom target. In this target I have the relocation model set to
static
, since including that kind of information is impossible in a COM executable (which I'm using because it's trivial to generate them with linker scripts, unlike MZ executables). However, when compilingcore
, the compiler simply crashes with a segmentation fault. It seems to get most of the way through compilingcore
, as it actually crashes during or after LTO (I can't really tell). Here is the last part of the output of running the build withRUST_LOG=debug
.The text was updated successfully, but these errors were encountered: