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

make install error with --target=arm-apple-ios #20358

Closed
tamird opened this issue Dec 31, 2014 · 7 comments · Fixed by #20985
Closed

make install error with --target=arm-apple-ios #20358

tamird opened this issue Dec 31, 2014 · 7 comments · Fixed by #20985
Labels
O-ios Operating system: iOS

Comments

@tamird
Copy link
Contributor

tamird commented Dec 31, 2014

./configure --target=arm-apple-ios && make clean && make && make install
-- SNIP --
cleaning destination tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/bin
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/etc
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/share/man/man1
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/libstd-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/libregex-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/liblog-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/libterm-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/libserialize-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/libfmt_macros-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/libarena-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/libsyntax-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/libflate-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/libgetopts-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/librbml-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/libgraphviz-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/librustc_llvm-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/librustc_back-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/librustc-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/librustc_borrowck-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/librustc_typeck-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/librustc_resolve-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/librustc_trans-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/librustc_driver-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/libtest-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/librustdoc-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/bin/rustdoc
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/share/man/man1/rustdoc.1
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/bin/rustc
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/share/man/man1/rustc.1
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/liblibc-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libstd-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libstd-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libflate-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libflate-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libarena-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libarena-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libterm-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libterm-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libserialize-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libserialize-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libgetopts-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libgetopts-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libcollections-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libtest-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libtest-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/librand-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/liblog-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/liblog-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libregex-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libregex-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libgraphviz-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libgraphviz-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libcore-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/librbml-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/librbml-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/liballoc-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libunicode-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libsyntax-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/librustc-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/librustc_typeck-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/librustc_borrowck-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/librustc_resolve-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/librustc_driver-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/librustc_trans-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/librustc_back-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/librustc_llvm-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/librustdoc-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libfmt_macros-*.dylib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/x86_64-apple-darwin/lib/libcompiler-rt.a
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/arm-apple-ios/lib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/arm-apple-ios/lib/liblibc-*.rlib
prepare: tmp/dist/rustc-1.0.0-dev-x86_64-apple-darwin-image/lib/rustlib/arm-apple-ios/lib/libstd-*.a
ls: x86_64-apple-darwin/stage2/lib/rustlib/arm-apple-ios/lib/libstd-*.a: No such file or directory
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make[1]: *** [prepare-target-arm-apple-ios-host-x86_64-apple-darwin-2-dir-x86_64-apple-darwin] Error 64
make: *** [install] Error 2

Full gist: https://gist.github.com/tamird/111eb6d0d0f5aa7ceda7

@huonw huonw added the O-ios Operating system: iOS label Jan 7, 2015
@huonw
Copy link
Member

huonw commented Jan 7, 2015

cc @brson

@tamird
Copy link
Contributor Author

tamird commented Jan 12, 2015

cc @vhbit since you've been contributing iOS patches. This same error still repros after #20699 with:

./configure --target=aarch64-apple-ios && make clean && make && make install

Are you able to successfully build a cross-compiler?

@vhbit
Copy link
Contributor

vhbit commented Jan 12, 2015

Are you able to successfully build a cross-compiler?

@tamird there are 2 different things: building and installing. What fails is install phase and I believe I have kind of dirty hack for it in my fork, but will try to find a correct solution and issue PR soon.

@tamird
Copy link
Contributor Author

tamird commented Jan 12, 2015

@vhbit this one vhbit@d4fb19c ?

@vhbit
Copy link
Contributor

vhbit commented Jan 12, 2015

@tamird yep

@tamird
Copy link
Contributor Author

tamird commented Jan 12, 2015

@vhbit cool, would you mind submitting that PR?

@vhbit
Copy link
Contributor

vhbit commented Jan 15, 2015

@tamird since PR is going to be open for a while considering current bors queue, I have to mention that in general when you need up-to-date Rust for iOS you can either built it by yourself from https://github.com/vhbit/rust or use a prebuilt version from https://github.com/vhbit/rust/releases. It may lag a bit (usually <= 1 day) but it is guaranteed to build (as iOS is not on Rust official buildbots and master is broken sometimes).

alexcrichton added a commit to alexcrichton/rust that referenced this issue Jan 15, 2015
It was broken as tried to copy dylibs which are actually never been
built for iOS

Fixes rust-lang#20358
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-ios Operating system: iOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants