Skip to content

v1.2.0 error when building rustc for ios targets #27590

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
nathansizemore opened this issue Aug 8, 2015 · 6 comments
Closed

v1.2.0 error when building rustc for ios targets #27590

nathansizemore opened this issue Aug 8, 2015 · 6 comments

Comments

@nathansizemore
Copy link
Contributor

Cannot seem to get the same targets to compile on v1.2.0, with the same commands used for v1.1.0

git clone [email protected]:rust-lang/rust.git
cd rust
git checkout 1.2.0
./configure --target=armv7-apple-ios,armv7s-apple-ios,i386-apple-ios,aarch64-apple-ios,x86_64-apple-ios --prefix=$HOME/rustc-ios
make -j8
rustc: x86_64-apple-darwin/stage2/lib/rustlib/armv7-apple-ios/lib/libstd
rustc: x86_64-apple-darwin/stage2/lib/rustlib/armv7s-apple-ios/lib/libstd
warning: dropping unsupported crate type `dylib` for target `armv7-apple-ios`
warning: dropping unsupported crate type `dylib` for target `armv7s-apple-ios`
rustc: x86_64-apple-darwin/stage2/lib/rustlib/aarch64-apple-ios/lib/libstd
rustc: x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-ios/lib/libstd
warning: dropping unsupported crate type `dylib` for target `aarch64-apple-ios`
warning: dropping unsupported crate type `dylib` for target `x86_64-apple-ios`
rustc: x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-darwin/lib/libstd
rustc: x86_64-apple-darwin/stage2/lib/rustlib/i386-apple-ios/lib/libstd
warning: dropping unsupported crate type `dylib` for target `i386-apple-ios`
src/libstd/sys/unix/backtrace.rs:133:5: 133:17 error: use of unstable library feature 'result_fold': has not seen enough usage to justify its position in the standard library
src/libstd/sys/unix/backtrace.rs:133     result::fold(iter, (), |_, _| ())
                                         ^~~~~~~~~~~~
src/libstd/sys/unix/backtrace.rs:133:5: 133:17 help: add #![feature(result_fold)] to the crate attributes to enable
src/libstd/sys/unix/backtrace.rs:133:5: 133:17 error: use of deprecated item: has not seen enough usage to justify its position in the standard library, #[deny(deprecated)] on by default
src/libstd/sys/unix/backtrace.rs:133     result::fold(iter, (), |_, _| ())
                                         ^~~~~~~~~~~~
error: aborting due to 2 previous errors
make: *** [x86_64-apple-darwin/stage2/lib/rustlib/armv7-apple-ios/lib/stamp.std] Error 101
make: *** Waiting for unfinished jobs....
src/libstd/sys/unix/backtrace.rs:133:5: 133:17 error: use of unstable library feature 'result_fold': has not seen enough usage to justify its position in the standard library
src/libstd/sys/unix/backtrace.rs:133     result::fold(iter, (), |_, _| ())
                                         ^~~~~~~~~~~~
src/libstd/sys/unix/backtrace.rs:133:5: 133:17 help: add #![feature(result_fold)] to the crate attributes to enable
src/libstd/sys/unix/backtrace.rs:133:5: 133:17 error: use of deprecated item: has not seen enough usage to justify its position in the standard library, #[deny(deprecated)] on by default
src/libstd/sys/unix/backtrace.rs:133     result::fold(iter, (), |_, _| ())
                                         ^~~~~~~~~~~~
error: aborting due to 2 previous errors
make: *** [x86_64-apple-darwin/stage2/lib/rustlib/armv7s-apple-ios/lib/stamp.std] Error 101
@tamird
Copy link
Contributor

tamird commented Aug 8, 2015

Was fixed in #27267. Perhaps needs a backport?

@chriskrycho
Copy link
Contributor

Ran into this same thing something that I thought was the same on master earlier today after doing a fresh clone last night. I pulled the latest from master (including all submodules) just now, and am trying a rebuild. I'll update this comment with the results in the morning.


Results

Slightly different error, in a slightly different place, though: mine is giving up after running into unused imports from prelude::v1::* and libc::c_void on the x86_64-apple-darwin build.

Perhaps incidentally, and perhaps not, I am running OS X 10.11 public beta 3 (roughly corresponds to developer beta 5).

Output was:

(snip)
rustc: x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-darwin/lib/libstd
rustc: x86_64-apple-darwin/stage2/lib/rustlib/i386-apple-ios/lib/libstd
rustc: x86_64-apple-darwin/stage2/lib/rustlib/armv7s-apple-ios/lib/libstd
rustc: x86_64-apple-darwin/stage2/lib/rustlib/armv7-apple-ios/lib/libstd
warning: dropping unsupported crate type `dylib` for target `i386-apple-ios`
rustc: x86_64-apple-darwin/stage2/lib/rustlib/aarch64-apple-ios/lib/libstd
warning: dropping unsupported crate type `dylib` for target `armv7s-apple-ios`
warning: dropping unsupported crate type `dylib` for target `armv7-apple-ios`
warning: dropping unsupported crate type `dylib` for target `aarch64-apple-ios`
rustc: x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-ios/lib/libstd
warning: dropping unsupported crate type `dylib` for target `x86_64-apple-ios`
../src/libstd/rand/os.rs:185:9: 185:24 error: unused import, #[deny(unused_imports)] on by default
../src/libstd/rand/os.rs:185     use prelude::v1::*;
                                     ^~~~~~~~~~~~~~~
../src/libstd/rand/os.rs:190:23: 190:29 error: unused import, #[deny(unused_imports)] on by default
../src/libstd/rand/os.rs:190     use libc::{c_int, c_void, size_t};
                                                   ^~~~~~
error: aborting due to 2 previous errors
make: *** [x86_64-apple-darwin/stage2/lib/rustlib/i386-apple-ios/lib/stamp.std] Error 101
make: *** Waiting for unfinished jobs....
../src/libstd/rand/os.rs:185:9: 185:24 error: unused import, #[deny(unused_imports)] on by default
../src/libstd/rand/os.rs:185     use prelude::v1::*;
                                     ^~~~~~~~~~~~~~~
../src/libstd/rand/os.rs:190:23: 190:29 error: unused import, #[deny(unused_imports)] on by default
../src/libstd/rand/os.rs:190     use libc::{c_int, c_void, size_t};
                                                   ^~~~~~
error: aborting due to 2 previous errors
make: *** [x86_64-apple-darwin/stage2/lib/rustlib/armv7s-apple-ios/lib/stamp.std] Error 101
../src/libstd/rand/os.rs:185:9: 185:24 error: unused import, #[deny(unused_imports)] on by default
../src/libstd/rand/os.rs:185     use prelude::v1::*;
                                     ^~~~~~~~~~~~~~~
../src/libstd/rand/os.rs:190:23: 190:29 error: unused import, #[deny(unused_imports)] on by default
../src/libstd/rand/os.rs:190     use libc::{c_int, c_void, size_t};
                                                   ^~~~~~
error: aborting due to 2 previous errors
make: *** [x86_64-apple-darwin/stage2/lib/rustlib/armv7-apple-ios/lib/stamp.std] Error 101
../src/libstd/rand/os.rs:185:9: 185:24 error: unused import, #[deny(unused_imports)] on by default
../src/libstd/rand/os.rs:185     use prelude::v1::*;
                                     ^~~~~~~~~~~~~~~
../src/libstd/rand/os.rs:190:23: 190:29 error: unused import, #[deny(unused_imports)] on by default
../src/libstd/rand/os.rs:190     use libc::{c_int, c_void, size_t};
                                                   ^~~~~~
error: aborting due to 2 previous errors
make: *** [x86_64-apple-darwin/stage2/lib/rustlib/aarch64-apple-ios/lib/stamp.std] Error 101
../src/libstd/rand/os.rs:185:9: 185:24 error: unused import, #[deny(unused_imports)] on by default
../src/libstd/rand/os.rs:185     use prelude::v1::*;
                                     ^~~~~~~~~~~~~~~
../src/libstd/rand/os.rs:190:23: 190:29 error: unused import, #[deny(unused_imports)] on by default
../src/libstd/rand/os.rs:190     use libc::{c_int, c_void, size_t};
                                                   ^~~~~~
error: aborting due to 2 previous errors
make: *** [x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-ios/lib/stamp.std] Error 101```

@nagisa
Copy link
Member

nagisa commented Aug 8, 2015

Perhaps needs a backport?

1.2 is already released as stable.

@steveklabnik
Copy link
Member

since #27674 was merged, i'm closing

@zaeleus
Copy link
Contributor

zaeleus commented Aug 13, 2015

@steveklabnik, #27674 only fixes building ios targets on master. The original issue is about building 1.2.0 stable, which requires #27088 to be backported.

@steveklabnik
Copy link
Member

We don't do backports to stable for anything but security fixes, so unfortunately that won't happen.

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

6 participants