Skip to content
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

rustc build for gnueabihf host / target fails at rust_try.o #12789

Closed
itdaniher opened this issue Mar 9, 2014 · 5 comments
Closed

rustc build for gnueabihf host / target fails at rust_try.o #12789

itdaniher opened this issue Mar 9, 2014 · 5 comments
Labels
O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state

Comments

@itdaniher
Copy link
Contributor

Working to get a rustc build for armv7 hardfloat machines. Getting the following stdout / error message.

cfg: build triple x86_64-unknown-linux-gnu
cfg: host triples arm-unknown-linux-gnueabihf
cfg: target triples arm-unknown-linux-gnueabihf
cfg: non-build host triples arm-unknown-linux-gnueabihf
cfg: non-build target triples arm-unknown-linux-gnueabihf
cfg: enabling more debugging (CFG_ENABLE_DEBUG)
cfg: host for arm-unknown-linux-gnueabihf is arm
cfg: os for arm-unknown-linux-gnueabihf is unknown-linux-gnueabihf
cfg: using gcc
/home/it/projects/rust/mk/stage0.mk:7: warning: overriding recipe for target `/'
/home/it/projects/rust/mk/stage0.mk:4: warning: ignoring old recipe for target `/'
cfg: no pdflatex found, omitting doc/rust.pdf
cfg: no pandoc found, omitting PDF and EPUB docs
cfg: no llnextgen found, omitting grammar-verification
compile: arm-unknown-linux-gnueabihf/rt/rust_builtin.o
compile: arm-unknown-linux-gnueabihf/rt/rust_android_dummy.o
compile: arm-unknown-linux-gnueabihf/rt/rust_test_helpers.o
compile: arm-unknown-linux-gnueabihf/rt/rust_try.o
/bin/sh: -mtriple=arm-unknown-linux-gnueabihf: command not found
make: [arm-unknown-linux-gnueabihf/rt/rust_try.o] Error 127 (ignored)
compile: arm-unknown-linux-gnueabihf/rt/arch/arm/record_sp.o
link: arm-unknown-linux-gnueabihf/rt/librustrt.a
arm-linux-gnueabihf-ar: arm-unknown-linux-gnueabihf/rt/rust_try.o: No such file or directory
make: *** [arm-unknown-linux-gnueabihf/rt/librustrt.a] Error 1

It looks like some recent work has been done @ https://github.com/mozilla/rust/blob/master/mk/rt.mk#L76, nothing looks immediately amiss.

It looks like this may just be a build system glitch, but putting an issue up in case @luqmana or @alexcrichton know of the fix off the top of their heads.

@alexcrichton
Copy link
Member

That error message looks a little odd, can you run make VERBOSE=1 and paste the output? Are you sure you don't have local modifications to the makefile?

@itdaniher
Copy link
Contributor Author

From a fresh copy of master, ./configure --host=arm-unknown-linux-gnueabihf; make yields the following for me. http://itdaniher.com/p?WtqN

GCC info at http://itdaniher.com/p?jbgi.

@luqmana
Copy link
Member

luqmana commented Mar 9, 2014

Compiling with --host set to a different architecture/os (besides 32/64 linux/unix) than --build doesn't really work right now as far as I know. It doesn't build LLVM properly (i.e cross compile it).

@emberian
Copy link
Member

@luqmana @itdaniher is this still an issue? I imagine that compiling for a different host is ill-tested and still broken.

@sanxiyn sanxiyn added the O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state label Jan 25, 2015
@alexcrichton
Copy link
Member

This file has since been removed and moved into the compiler, so closing.

fasterthanlime pushed a commit to fasterthanlime/rust that referenced this issue Jul 22, 2022
…verlapping, r=DorianListens

fix: Prevent panic in Remove Unused Parameter assist

Instead of calling `builder.delete` for every text range we find with
`process_usage`, we now ensure that the ranges do not overlap before removing
them. If a range is fully contained by a prior one, it is dropped.

fixes rust-lang#12784
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state
Projects
None yet
Development

No branches or pull requests

6 participants