-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Building for m68k-unknown-linux-gnu fails with SIGILL with no LLVM backtrace #120129
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
Can you load the code dump in a debugger and get a backtrace? |
Thanks for the pointer. In fact, However, the backtrace is not very useful:
Do I need to enable debug builds explicitly when building rustc? |
Did you enable the assertions in LLVM? From what I remember, LLVM can segfault when assertions are disabled. Btw, I'm not sure what you're trying to do, but if it helps, the GCC codegen can already build the sysroot for m68k. |
No, I need to figure out how to enable these when building LLVM from the Rust side.
I want to continue working on the M68k backend in LLVM. |
There's a key |
I'm using all debug flags that |
print('')
print('This configure script is a thin configuration shim over the true')
print('configuration system, `config.toml`. You can explore the comments')
print('in `config.example.toml` next to this configure script to see')
print('more information about what each option is. Additionally you can')
print('pass `--set` as an argument to set arbitrary key/value pairs')
print('in the TOML configuration if desired')
print('')
print('Also note that all options which take `--enable` can similarly')
print('be passed with `--disable-foo` to forcibly disable the option')
sys.exit(0) In general, the configure script was designed, a long time ago now, to make Rust easy to build for people who don't want to work on the backends. For those who do, willingness to fiddle more directly with the build configuration is expected. |
Good point. In fact, I have started fiddling with |
After a longer hiatus since my build machine was unavailable, I have finally found the time to work on the m68k backend in the Rust compiler again.
I tried building a Rust compiler for m68k with
./configure --host=m68k-unknown-linux-gnu
which fails with an error that I don't know how to debug since it doesn't show an LLVM backtrace:This is most likely a bug in the LLVM M68k backend, but since it's not showing an LLVM backtrace, I am not sure how to debug this.
Any hints?
CC @jrtc27 @mshockwave @0x59616e @antoyo
The text was updated successfully, but these errors were encountered: