-
Notifications
You must be signed in to change notification settings - Fork 14
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
Could not compile core
with SIGSEGV: invalid memory reference
#156
Comments
I'm hitting this too in #155. |
For this kind of problem, I've usually resorted to running |
Whoa, I finally got blink to build! 😮 The specific combination that got me past the error in this issue was:
If I don't include RUSTFLAGS, or if I do but use |
I wanna keep this one open until we can fix the segfault in the greedy register allocator. |
For reference (although I already posted it in the other thread), the stack-trace of the segfault is this:
|
I agree, Xargo has not kept up to date with Rust's move of Cargo.lock from |
Here are LLVM IR and bitcode files for libcore under the When I compile this with
I suspect that Rust compiling LLVM in optimized mode might be hiding this error, or there is something going on that causes it to not be triggered in a normal LLVM invocation (for example, Rust configures some non-standard features of LLVM). I have updated my local LLVM checkout to see if it has been fixed upstream (a fix for something that would cause something like this symptom recently landed in upstream LLVM), and I'm re-compiling my local Rust with LLVM optimizations disabled to see if I get the same assert as I did with standard LLVM. |
Oops, I guess I made a typo: my experience is that |
I wonder if it worked for you on the current avr-support branch but did not work for me due to the upstream branch having newer changes to rustc than Xargo supports. It seems to me like to move to cargo-xbuild is inevitable, as the de-facto "official "fork of Xargo
That sounds reasonable, although in my case I don't want to pass the explicit optimization flags because I'm trying to trigger the error :P |
When I did this last night, it still failed. |
Hopefully I'm doing something really obviously wrong, but I'm having trouble getting avr-rust/blink to compile.
avr-rust/blink
and run:RUST_TARGET_PATH=`pwd` RUST_BACKTRACE=1 XARGO_RUST_SRC=$HOME/src/avr-rust/rust/src cargo xbuild --target avr-atmega328p --release
Get the SIGSEGV while compiling core:
The output with xargo is slightly different, but reports the same SIGSEGV
Can anyone tell me what I'm doing wrong, or how to get more information about how exactly the SIGSEGV is happening?
The text was updated successfully, but these errors were encountered: