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

Building the aarch64-linux-android stdlib fails #31595

Closed
mmatyas opened this issue Feb 12, 2016 · 1 comment · Fixed by rust-lang/libc#192
Closed

Building the aarch64-linux-android stdlib fails #31595

mmatyas opened this issue Feb 12, 2016 · 1 comment · Fixed by rust-lang/libc#192

Comments

@mmatyas
Copy link
Contributor

mmatyas commented Feb 12, 2016

I was trying to build the stdlibs for the aarch64-linux-android target like this:

rust/my_empty_build_dir $ ../configure \
--target=aarch64-linux-android \
--aarch64-linux-android-ndk="$ANDROID_TOOLCHAIN_ARM64" \
--prefix=$(pwd)/installdir --disable-docs --enable-ccache

make -j4 && make install

However, the build fails with the following error:

...
rustc: x86_64-unknown-linux-gnu/stage2/lib/rustlib/aarch64-linux-android/lib/libcollections
rustc: x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections
rustc: x86_64-unknown-linux-gnu/stage2/lib/rustlib/aarch64-linux-android/lib/libstd
rustc: x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd
../src/libstd/sys/unix/ext/fs.rs:314:38: 314:42 error: mismatched types:
 expected `u16`,
    found `u32` [E0308]
../src/libstd/sys/unix/ext/fs.rs:314         self.as_inner_mut().set_mode(mode);
                                                                          ^~~~
../src/libstd/sys/unix/ext/fs.rs:314:38: 314:42 help: run `rustc --explain E0308` to see a detailed explanation
../src/libstd/sys/unix/fs.rs:119:21: 119:39 error: mismatched types:
 expected `i32`,
    found `i64` [E0308]
../src/libstd/sys/unix/fs.rs:119             tv_sec: self.stat.st_mtime,
                                                     ^~~~~~~~~~~~~~~~~~
../src/libstd/sys/unix/fs.rs:119:21: 119:39 help: run `rustc --explain E0308` to see a detailed explanation
../src/libstd/sys/unix/fs.rs:126:21: 126:39 error: mismatched types:
 expected `i32`,
    found `i64` [E0308]
../src/libstd/sys/unix/fs.rs:126             tv_sec: self.stat.st_atime,
                                                     ^~~~~~~~~~~~~~~~~~
../src/libstd/sys/unix/fs.rs:126:21: 126:39 help: run `rustc --explain E0308` to see a detailed explanation
../src/libstd/sys/unix/fs.rs:182:41: 182:50 error: mismatched types:
 expected `u32`,
    found `u16` [E0308]
../src/libstd/sys/unix/fs.rs:182     pub fn mode(&self) -> raw::mode_t { self.mode }
                                                                         ^~~~~~~~~
../src/libstd/sys/unix/fs.rs:182:41: 182:50 help: run `rustc --explain E0308` to see a detailed explanation
error: aborting due to 4 previous errors
/tmp/snippets/rustbuild/rust/mk/target.mk:186: recipe for target 'x86_64-unknown-linux-gnu/stage2/lib/rustlib/aarch64-linux-android/lib/stamp.std' failed
make: *** [x86_64-unknown-linux-gnu/stage2/lib/rustlib/aarch64-linux-android/lib/stamp.std] Error 101
make: *** Waiting for unfinished jobs....

Here is the full build log: http://pastebin.com/cX9WgVA4

I'm using Xubuntu 15.10. At the time of building, the Rust master was at b9732ed.

@alexcrichton
Copy link
Member

Unfortunately aarch64-linux-androideabi is a Tier 3 platform which means that we don't guarantee that it builds in-tree right now. Patches are certainly welcome to fix this, however! We tend to not keep issues tracking build support for all Tier 3 platforms, however, so I'm going to close this.

If you're interested in promoting this to at least tier 2 you could also help modify out android builder to be able to support this target!

bors added a commit that referenced this issue Feb 24, 2016
This fixes the `aarch64-linux-android` build (#31595).
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

Successfully merging a pull request may close this issue.

2 participants