-
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
Segfault while compiling master for arm-unknown-linux-gnueabihf #33928
Comments
@petevine Thanks for pointing that out, I realize now that I was referencing ARM chips from 20 years ago! I corrected my OP to more accurately reflect its internals. I will investigate when I get my machine up and running again, as it turns out that I was also missing a swap partition on my ArchLinuxARM installation. |
The crash happens the moment rustc starts being used (single make job as everything depends on libcore) and even later at |
I am experiencing the same issue on Raspberry Pi. The provided snapshot got me past the segfault, but then:
|
@yrnameer That's because you downloaded an outdated snapshot. |
I figured as much. I've located your build scripts & snapshot. Is there any information I can provide that would be helpful? |
You can try bootstrapping your own compiler using that latest snapshot (just add edit: |
It's going to be a couple hours before I can report back. for the record:
|
On Sat, 20 Aug 2016 11:51:07 -0700
Cool, I take it you're going to compile LLVM from scratch? |
Yes, ran into a missing |
Great, even though |
I was unable to deduce what the workaround was. Just to clarify, the snapshot is I suspect I'm doing something silly here. 😕 |
Nope, you did really well :) Even though a similarly dated snapshot worked for me on Let me correct my evil ways by offering this one instead. |
Okay, everything went pretty smooth after that. The compiler works. I tried using the Cargo from dropbox, but I'm running into a lot of dependency mismatch. Unfortunately I'm not entirely sure how to go about bootrapping a new one. I've looked at some of the older ones in cargo-dist, but they all segfualt. I threw the offical Jessie image on another SD card just to try it, and
|
Just satisfy the missing dependencies and then use that
|
I didn't see that proposed anywhere, so I must have just been looking at the wrong thread of discussion. I will give it a try later this afternoon. The dependencies were a little trickier, for instance |
Symlinking should be enough, but once you've patched the official cargo binary (most of that stuff is statically linked so any openssl vuln. require a new updated binary) you'll be set.
|
The workaround fixed |
In the case of dependencies, turns out I had a small typo and symlinking |
Cool, please mention the problem you had with |
It looks like everything was resolved here, so I'm going to close, but please do let us know if that's incorrect and we'll reopen. |
I get the following from my log every time I try to compile from master:
rustc: arm-unknown-linux-gnueabihf/stage0/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libcore /home/***/GitRepos/rust/mk/target.mk:201: recipe for target 'arm-unknown-linux-gnueabihf/stage0/lib/rustlib/arm-unknown-linux-gnueabihf/lib/stamp.core' failed make: *** [arm-unknown-linux-gnueabihf/stage0/lib/rustlib/arm-unknown-linux-gnueabihf/lib/stamp.core] Segmentation fault (core dumped)
I'm compiling this on an ARMv7h Chromebook with 4 GB of RAM, so I don't know whether or not this is a bug, or an "Out Of Memory" issue.
The text was updated successfully, but these errors were encountered: