Skip to content

Building arm-unknown-linux-gnueabi target on OS X fails #16804

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

Closed
alexchandel opened this issue Aug 27, 2014 · 4 comments
Closed

Building arm-unknown-linux-gnueabi target on OS X fails #16804

alexchandel opened this issue Aug 27, 2014 · 4 comments

Comments

@alexchandel
Copy link

Building rust on OS X 10.9.4 with:

./configure --target=x86_64-apple-darwin,arm-unknown-linux-gnueabi
make VERBOSE=1

produces the following error:

MATCHES=""; if [ -n "$MATCHES" ] ; then echo "warning: removing previous" \'libhexfloat-*.dylib\' "libraries:" $MATCHES; rm $MATCHES ; fi
MATCHES=""; if [ -n "$MATCHES" ] ; then echo "warning: removing previous" \'libhexfloat-*.rlib\' "libraries:" $MATCHES; rm $MATCHES ; fi
DYLD_LIBRARY_PATH=/Users/alex/GitHub/rust/x86_64-apple-darwin/stage2/lib:$DYLD_LIBRARY_PATH   x86_64-apple-darwin/stage2/bin/rustc --cfg stage2  -O --cfg rtopt --cfg debug  --target=x86_64-apple-darwin  -D warnings -L "x86_64-apple-darwin/rt" -L "/Users/alex/GitHub/rust/x86_64-apple-darwin/llvm/Release+Asserts/lib" -L ""  --out-dir x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-darwin/lib -C extra-filename=-4e7c5e5c /Users/alex/GitHub/rust/src/libhexfloat/lib.rs
info: now are following matches for libhexfloat-*.dylib libraries:
x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-darwin/lib/libhexfloat-4e7c5e5c.dylib
info: now are following matches for libhexfloat-*.rlib libraries:
x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-darwin/lib/libhexfloat-4e7c5e5c.rlib
MATCHES=""; if [ -n "$MATCHES" ] ; then echo "warning: removing previous" \'libregex_macros-*.dylib\' "libraries:" $MATCHES; rm $MATCHES ; fi
MATCHES=""; if [ -n "$MATCHES" ] ; then echo "warning: removing previous" \'libregex_macros-*.rlib\' "libraries:" $MATCHES; rm $MATCHES ; fi
DYLD_LIBRARY_PATH=/Users/alex/GitHub/rust/x86_64-apple-darwin/stage2/lib:$DYLD_LIBRARY_PATH   x86_64-apple-darwin/stage2/bin/rustc --cfg stage2  -O --cfg rtopt --cfg debug  --target=x86_64-apple-darwin  -D warnings -L "x86_64-apple-darwin/rt" -L "/Users/alex/GitHub/rust/x86_64-apple-darwin/llvm/Release+Asserts/lib" -L ""  --out-dir x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-darwin/lib -C extra-filename=-4e7c5e5c /Users/alex/GitHub/rust/src/libregex_macros/lib.rs
info: now are following matches for libregex_macros-*.dylib libraries:
x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-darwin/lib/libregex_macros-4e7c5e5c.dylib
info: now are following matches for libregex_macros-*.rlib libraries:
arm-linux-gnueabi-gcc -Wall -g -fPIC -D__arm__ -mfpu=vfp  -MMD -MP -MT arm-unknown-linux-gnueabi/rt/arch/arm/morestack.o -MF arm-unknown-linux-gnueabi/rt/arch/arm/morestack.d /Users/alex/GitHub/rust/src/rt/arch/arm/morestack.S -c -o arm-unknown-linux-gnueabi/rt/arch/arm/morestack.o
make: arm-linux-gnueabi-gcc: No such file or directory
make: *** [arm-unknown-linux-gnueabi/rt/arch/arm/morestack.o] Error 1

Related to #16259 and #16224.

@alexchandel alexchandel changed the title Building i686-unknown-linux-gnu target on OS X fails Building arm-unknown-linux-gnueabi target on OS X fails Aug 27, 2014
@luqmana
Copy link
Member

luqmana commented Aug 28, 2014

Notice this line:

make: arm-linux-gnueabi-gcc: No such file or directory

You need a working toolchain for every target you'd like to build.

@luqmana luqmana closed this as completed Aug 28, 2014
@alexchandel
Copy link
Author

You need a working toolchain for every target you'd like to build.

@luqmana This is false. We use the in-tree llvm-mc to compile assembly on x86. And llvm-mc supports arm targets.

@huonw
Copy link
Member

huonw commented Aug 28, 2014

@alexchandel at the very least, the main Rust distribution has C code that needs to be compiled for the target. In any case, it's clearly not true that llvm-mc is being used here.

@alexchandel
Copy link
Author

@huonw OS X's clang seems to be capable of compiling and assembling the C code for the arm target.

I'm wondering why clang or llvm-mc isn't used for arm here, instead of arm-linux-gnueabi-gcc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants