servo: Android build fails
The current android build is failing with the following issues:
- libfontconfig error
- android_start! macro
- backtrace
- linker error 1
- linker error 2
The libfontconfig error
--- stderr
configure: WARNING: using cross tools not prefixed with host triplet
configure: error:
*** expat is required. or try to use --enable-libxml2
make: *** [servo/target/arm-linux-androideabi/debug/build/servo-fontconfig-sys-0c6dc76cced7fb8b/out/Makefile] Error 1
thread 'main' panicked at 'assertion failed: Command::new("make").args(&["-R", "-f",
"makefile.cargo"]).status().unwrap().success()', servo/.cargo/registry/src/github.com-1ecc6299db9ec823/servo-fontconfig-sys-4.0.1/build.rs:17
This will be solved with servo-fontconfig-sys-4.0.2. Fixed with this.
The android_start! macro
error: macro undefined: 'android_start!'
--> main.rs:265:1
|
265 | android_start!(main);
| ^^^^^^^^^^^^^
This is related to the android-rs-glue update (0.1.3 -> 0.2.0). Which was introduced in this pr.
If we comment out the macro, we can move to our next error.
Backtrace in unguarded code
error[E0432]: unresolved import `backtrace::Backtrace`
--> main.rs:37:5
|
37 | use backtrace::Backtrace;
| ^^^^^^^^^^^^^^^^^^^^ Maybe a missing `extern crate backtrace`?
This was introduced with this pr. If we revert this, we will get to the linking phase.
Linker Error 1
arm-linux-androideabi-gcc: error: : No such file or directory
This is caused by this line, the "${LDFLAGS-}" is empty.
If we get rid of that, we will arrive to our last obstacle.
Linker Error 2
servo/.cargo/registry/src/github.com-1ecc6299db9ec823/android_glue-0.2.0/src/lib.rs:111: error: undefined reference to 'cargo_apk_injected_glue_write_log'
servo/.cargo/registry/src/github.com-1ecc6299db9ec823/android_glue-0.2.0/src/lib.rs:103: error: undefined reference to 'cargo_apk_injected_glue_get_native_window'
servo/.cargo/registry/src/github.com-1ecc6299db9ec823/android_glue-0.2.0/src/lib.rs:75: error: undefined reference to 'cargo_apk_injected_glue_add_sender'
servo/.cargo/registry/src/github.com-1ecc6299db9ec823/android_glue-0.2.0/src/lib.rs:82: error: undefined reference to 'cargo_apk_injected_glue_set_multitouch'
servo/.cargo/registry/src/github.com-1ecc6299db9ec823/android_glue-0.2.0/src/lib.rs:103: error: undefined reference to 'cargo_apk_injected_glue_get_native_window'
servo/target/arm-linux-androideabi/debug/deps/libservo.rlib(android_native_app_glue.o):android_native_app_glue.c:function android_app_entry: error: undefined reference to 'android_main'
servo/.cargo/git/checkouts/gaol-c3a1e33941376f84/master/platform/linux/namespace.rs:193: error: undefined reference to 'unshare'
servo/.cargo/git/checkouts/gaol-c3a1e33941376f84/master/platform/linux/namespace.rs:249: error: undefined reference to 'unshare'
servo/.cargo/git/checkouts/rust-mozjs-8611526964119dd6/master/src/jsglue.cpp:724: error: undefined reference to 'malloc_usable_size'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:524: error: undefined reference to 'std::__ndk1::ios_base::clear(unsigned int)'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:668: error: undefined reference to 'std::__ndk1::ios_base::init(void*)'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:734: error: undefined reference to 'std::__ndk1::ios_base::getloc() const'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/__locale:174: error: undefined reference to 'std::__ndk1::locale::use_facet(std::__ndk1::locale::id&) const'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:734: error: undefined reference to 'std::__ndk1::locale::~locale()'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:661: error: undefined reference to 'std::__ndk1::ios_base::~ios_base()'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:524: error: undefined reference to 'std::__ndk1::ios_base::clear(unsigned int)'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:668: error: undefined reference to 'std::__ndk1::ios_base::init(void*)'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:734: error: undefined reference to 'std::__ndk1::ios_base::getloc() const'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/__locale:174: error: undefined reference to 'std::__ndk1::locale::use_facet(std::__ndk1::locale::id&) const'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:734: error: undefined reference to 'std::__ndk1::locale::~locale()'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:661: error: undefined reference to 'std::__ndk1::ios_base::~ios_base()'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:524: error: undefined reference to 'std::__ndk1::ios_base::clear(unsigned int)'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:524: error: undefined reference to 'std::__ndk1::ctype<char>::id'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:661: error: undefined reference to 'std::__ndk1::ios_base::~ios_base()'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:661: error: undefined reference to 'std::__ndk1::ios_base::~ios_base()'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/streambuf:220: error: undefined reference to 'std::__ndk1::locale::~locale()'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/streambuf:220: error: undefined reference to 'std::__ndk1::locale::~locale()'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/__locale:174: error: undefined reference to 'std::__ndk1::locale::use_facet(std::__ndk1::locale::id&) const'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/fstream:947: error: undefined reference to 'std::__ndk1::codecvt<char, char, mbstate_t>::id'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/streambuf:370: error: undefined reference to 'std::__ndk1::locale::locale()'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/streambuf:238: error: undefined reference to 'std::__ndk1::locale::locale(std::__ndk1::locale const&)'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/__locale:166: error: undefined reference to 'std::__ndk1::locale::has_facet(std::__ndk1::locale::id&) const'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/streambuf:238: error: undefined reference to 'std::__ndk1::locale::locale(std::__ndk1::locale const&)'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/__locale:174: error: undefined reference to 'std::__ndk1::locale::use_facet(std::__ndk1::locale::id&) const'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/fstream:272: error: undefined reference to 'std::__ndk1::codecvt<char, char, mbstate_t>::id'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ios:524: error: undefined reference to 'std::__ndk1::ios_base::clear(unsigned int)'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/istream:275: error: undefined reference to 'std::__ndk1::ios_base::getloc() const'
android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/iterator:846: error: undefined reference to 'std::__ndk1::ctype<char>::id'
collect2: error: ld returned 1 exit status
Which is related to the android_glue update mentioned above.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 28 (25 by maintainers)
Commits related to this issue
- Auto merge of #424 - mmatyas:android_afnetlink, r=alexcrichton Make the AF_NETLINK constant available for Android Currently the `AF_NETLINK` constant is not available for Android, but [it has the sa... — committed to rust-lang/libc by bors 10 years ago
- Auto merge of #440 - mmatyas:cfgflags, r=glennw Fix Android and ARM compilation options This fixes Android build issues caused by [missing GL calls](https://github.com/servo/gleam/blob/master/src/gl... — committed to servo/webrender by deleted user 10 years ago
- Auto merge of #13697 - mmatyas:android_cvoid, r=emilio Fix missing `c_void` error when building for Android <!-- Please describe your changes on the following line: --> Including `c_void` is also re... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #20 - mmatyas:cxxflagsfix, r=nox Allow setting external compiler flags Currently `fontsan` ignores custom CXXFLAGS during the build, which can cause problems eg. during cross compilati... — committed to servo/fontsan by deleted user 10 years ago
- Auto merge of #26 - mmatyas:cflagsfix, r=mbrubeck Allow setting external compiler flags `libfontconfig` ignores custom CFLAGS during the build, which can cause problems eg. during cross compilation.... — committed to servo/libfontconfig by deleted user 10 years ago
- Auto merge of #26 - mmatyas:cflagsfix, r=mbrubeck Allow setting external compiler flags `libfontconfig` ignores custom CFLAGS during the build, which can cause problems eg. during cross compilation.... — committed to servo/libfontconfig by deleted user 10 years ago
- Auto merge of #27 - mmatyas:androidfix, r=larsbergstrom Fix Android sysroot path This will fix the Android sysroot path, after https://github.com/servo/servo/issues/13154#issuecomment-250632827 land... — committed to servo/libfontconfig by deleted user 10 years ago
- Auto merge of #13855 - mmatyas:fix_android_backtrace, r=larsbergstrom Fix missing `backtrace` build error on Android <!-- Please describe your changes on the following line: --> The missing `backtra... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #13856 - mmatyas:fix_android_start, r=larsbergstrom Remove `android_start!` <!-- Please describe your changes on the following line: --> Due to the API changes in `glutin` (1.x -> 2.x)... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #13857 - mmatyas:libc_update, r=larsbergstrom Update libc to 0.2.17 <!-- Please describe your changes on the following line: --> Update `libc` to pick up rust-lang/libc#424. (This is ... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #13905 - mmatyas:update_heartbeats, r=Ms2ger Update heartbeats-simple-sys to v0.3.2 <!-- Please describe your changes on the following line: --> Update heartbeats-simple-sys to pick up... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #13906 - mmatyas:update_fontsan, r=nox Update fontsan <!-- Please describe your changes on the following line: --> Update fontsan to pick up servo/fontsan#20. (This is a fix for servo... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #13906 - mmatyas:update_fontsan, r=nox Update fontsan <!-- Please describe your changes on the following line: --> Update fontsan to pick up servo/fontsan#20. (This is a fix for servo... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #13907 - mmatyas:update_libfontconfig, r=Ms2ger Update libfontconfig to 4.0.2 <!-- Please describe your changes on the following line: --> Update libfontconfig to 4.0.2 to pick up serv... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #473 - mmatyas:android_hotfix, r=glennw Fix Android build (This is a fix for servo/servo#13154) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_bu... — committed to servo/webrender by deleted user 10 years ago
- Auto merge of #492 - mmatyas:yet_another_android_fix, r=kvark Fix Android build `gl::MULTISAMPLE` is not defined on Android. Related: servo/servo#13154 <!-- Reviewable:start --> --- This change is... — committed to servo/webrender by deleted user 10 years ago
- Auto merge of #13946 - mmatyas:android_dyncheck, r=larsbergstrom Update `etc/ci/check_dynamic_symbols.py` Update `etc/ci/check_dynamic_symbols.py` to work after [the latest changes](https://github.c... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #13946 - mmatyas:android_dyncheck, r=larsbergstrom Update `etc/ci/check_dynamic_symbols.py` Update `etc/ci/check_dynamic_symbols.py` to work after [the latest changes](https://github.c... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #13945 - mmatyas:android_libcpp_change, r=larsbergstrom,aneeshusa Update the Android build system A huge update for the Android build system, which makes the Android target build again... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #13967 - mmatyas:gleam_update, r=larsbergstrom Update gleam to 0.2.24 Update `gleam` to pick up servo/gleam#93. Part of #13154 --- - [x] `./mach build -d` does not report any errors... — committed to servo/servo by deleted user 10 years ago
IT’S ALIVE! Behold, the pinnacle of browser technology: