Google Nexus S — B2G build for nexus 5

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 2

Mar 23, 2018, 6:56:04 AM via Website

I want to build B2G for nexus 5.

Steps in URL:
1) Clone B2G repository
git clone git://github.com/mozilla-b2g/B2G.git && cd B2G
2)Configure username and Email
3)./config.sh nexus 5 (It took almost 10 hours to complete)
4) ./build.sh
During build facing faced android toolchain issue, so i downloaded android_ndk toolchain and configure PATH for cross compiler.

I am sharing failed logs

checking whether the target C++ compiler can be used... yes
checking the target C++ compiler version... 4.9.0
checking the target C++ compiler works... yes
checking for the host C compiler... /usr/bin/gcc
checking whether the host C compiler can be used... yes
checking the host C compiler version... 4.8.4
checking the host C compiler works... yes
checking for the host C++ compiler... /usr/bin/g++
checking whether the host C++ compiler can be used... yes
checking the host C++ compiler version... 4.8.4
checking the host C++ compiler works... yes
checking for 64-bit OS... no
checking for stdint.h... no
checking for inttypes.h... no
checking for malloc.h... no
checking for alloca.h... no
checking for sys/byteorder.h... no
checking for getopt.h... no
checking for unistd.h... no
checking for nl_types.h... no
checking for cpuid.h... no
checking for sys/statvfs.h... no
checking for sys/statfs.h... no
checking for sys/vfs.h... no
checking for sys/mount.h... no
checking for sys/quota.h... no
checking for linux/quota.h... no
checking for linux/if_addr.h... no
checking for linux/rtnetlink.h... no
checking for sys/queue.h... no
checking for sys/types.h... no
checking for netinet/in.h... no
checking for byteswap.h... no
checking for linux/perf_event.h... no
checking for perf_event_open system call... no
checking whether the C compiler supports -Wclass-varargs... no
checking whether the C++ compiler supports -Wclass-varargs... no
checking whether the C compiler supports -Wloop-analysis... no
checking whether the C++ compiler supports -Wloop-analysis... no
checking whether the C++ compiler supports -Wc++11-compat-pedantic... no
checking whether the C++ compiler supports -Wc++14-compat... no
checking whether the C++ compiler supports -Wc++14-compat-pedantic... no
checking whether the C++ compiler supports -Wc++1z-compat... no
checking whether the C++ compiler supports -Wimplicit-fallthrough... no
checking whether the C compiler supports -Werror=non-literal-null-conversion... no
checking whether the C++ compiler supports -Werror=non-literal-null-conversion... no
checking whether the C compiler supports -Wstring-conversion... no
checking whether the C++ compiler supports -Wstring-conversion... no
checking whether the C compiler supports -Wthread-safety... yes
checking whether the C++ compiler supports -Wthread-safety... yes
checking whether the C++ compiler supports -Wno-inline-new-delete... no
checking whether the C compiler supports -Wno-error=maybe-uninitialized... yes
checking whether the C++ compiler supports -Wno-error=maybe-uninitialized... yes
checking whether the C compiler supports -Wno-error=deprecated-declarations... yes
checking whether the C++ compiler supports -Wno-error=deprecated-declarations... yes
checking whether the C compiler supports -Wno-error=array-bounds... yes
checking whether the C++ compiler supports -Wno-error=array-bounds... yes
checking for awk... /usr/bin/gawk
checking for perl... /usr/bin/perl
checking for minimum required perl version >= 5.006... 5.018002
checking for full perl installation... yes
checking for gmake... /usr/bin/make
checking for doxygen... not found
checking for xargs... /usr/bin/xargs
checking for autoconf... /usr/bin/autoconf2.13
loading cache ./config.cache
checking host system type... x86_64-pc-linux-gnu
checking target system type... arm-unknown-linux-androideabi
checking build system type... x86_64-pc-linux-gnu
cross compiling from x86_64-pc-linux-gnu to arm-unknown-linux-androideabi
checking for ranlib... no
checking for ar... no
checking for gcc... /usr/bin/ccache /home/systebui/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -std=gnu99
checking whether the C compiler (/usr/bin/ccache /home/systebui/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -std=gnu99 -fno-short-enums -fno-exceptions -L/home/systebui/B2G/out/target/product/hammerhead/obj/lib -Wl,-rpath-link=/home/systebui/B2G/out/target/product/hammerhead/obj/lib -L/home/systebui/android_ndk/platforms/android-19/arch-arm/usr/lib -Wl,-rpath-link=/home/systebui/android_ndk/platforms/android-19/arch-arm/usr/lib --sysroot=/home/systebui/android_ndk/platforms/android-19/arch-arm -Wl,--allow-shlib-undefined ) works... yes
checking whether the C compiler (/usr/bin/ccache /home/systebui/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -std=gnu99 -fno-short-enums -fno-exceptions -L/home/systebui/B2G/out/target/product/hammerhead/obj/lib -Wl,-rpath-link=/home/systebui/B2G/out/target/product/hammerhead/obj/lib -L/home/systebui/android_ndk/platforms/android-19/arch-arm/usr/lib -Wl,-rpath-link=/home/systebui/android_ndk/platforms/android-19/arch-arm/usr/lib --sysroot=/home/systebui/android_ndk/platforms/android-19/arch-arm -Wl,--allow-shlib-undefined ) is a cross-compiler... yes
checking whether we are using GNU C... yes
checking whether /usr/bin/ccache /home/systebui/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -std=gnu99 accepts -g... yes
checking for c++... /usr/bin/ccache /home/systebui/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -std=gnu++11
checking whether the C++ compiler (/usr/bin/ccache /home/systebui/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -std=gnu++11 -fno-short-enums -fno-exceptions -DMOZ_ENABLE_JS_DUMP -include /home/systebui/B2G/gonk-misc/Unicode.h -L/home/systebui/B2G/out/target/product/hammerhead/obj/lib -Wl,-rpath-link=/home/systebui/B2G/out/target/product/hammerhead/obj/lib -L/home/systebui/android_ndk/platforms/android-19/arch-arm/usr/lib -Wl,-rpath-link=/home/systebui/android_ndk/platforms/android-19/arch-arm/usr/lib --sysroot=/home/systebui/android_ndk/platforms/android-19/arch-arm -Wl,--allow-shlib-undefined ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.
DEBUG:
DEBUG: configure:1731:1: warning: return type defaults to 'int'
DEBUG: configure:1760: checking whether the C compiler (/usr/bin/ccache /home/systebui/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -std=gnu99 -fno-short-enums -fno-exceptions -L/home/systebui/B2G/out/target/product/hammerhead/obj/lib -Wl,-rpath-link=/home/systebui/B2G/out/target/product/hammerhead/obj/lib -L/home/systebui/android_ndk/platforms/android-19/arch-arm/usr/lib -Wl,-rpath-link=/home/systebui/android_ndk/platforms/android-19/arch-arm/usr/lib --sysroot=/home/systebui/android_ndk/platforms/android-19/arch-arm -Wl,--allow-shlib-undefined ) is a cross-compiler
DEBUG: configure:1765: checking whether we are using GNU C
DEBUG: configure:1774: /usr/bin/ccache /home/systebui/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -std=gnu99 -E conftest.c
DEBUG: configure:1793: checking whether /usr/bin/ccache /home/systebui/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -std=gnu99 accepts -g
DEBUG: configure:1829: checking for c++
DEBUG: configure:1861: checking whether the C++ compiler (/usr/bin/ccache /home/systebui/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -std=gnu++11 -fno-short-enums -fno-exceptions -DMOZ_ENABLE_JS_DUMP -include /home/systebui/B2G/gonk-misc/Unicode.h -L/home/systebui/B2G/out/target/product/hammerhead/obj/lib -Wl,-rpath-link=/home/systebui/B2G/out/target/product/hammerhead/obj/lib -L/home/systebui/android_ndk/platforms/android-19/arch-arm/usr/lib -Wl,-rpath-link=/home/systebui/android_ndk/platforms/android-19/arch-arm/usr/lib --sysroot=/home/systebui/android_ndk/platforms/android-19/arch-arm -Wl,--allow-shlib-undefined ) works
DEBUG: configure:1877: /usr/bin/ccache /home/systebui/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -std=gnu++11 -o conftest -fno-short-enums -fno-exceptions -DMOZ_ENABLE_JS_DUMP -include /home/systebui/B2G/gonk-misc/Unicode.h -I/home/systebui/B2G/system -I/home/systebui/B2G/system/core/include -I/home/systebui/B2G/hardware/libhardware/include -I/home/systebui/B2G/external/valgrind/fxos-include -I/home/systebui/B2G/frameworks/native/include -I/home/systebui/B2G/frameworks/av/include -I/home/systebui/B2G/frameworks/av/include/media -I/home/systebui/B2G/frameworks/av/include/camera -I/home/systebui/B2G/frameworks/native/include/media/openmax -I/home/systebui/B2G/frameworks/av/media/libstagefright/include -idirafter /home/systebui/android_ndk/platforms/android-19/arch-arm/usr/include -L/home/systebui/B2G/out/target/product/hammerhead/obj/lib -Wl,-rpath-link=/home/systebui/B2G/out/target/product/hammerhead/obj/lib -L/home/systebui/android_ndk/platforms/android-19/arch-arm/usr/lib -Wl,-rpath-link=/home/systebui/android_ndk/platforms/android-19/arch-arm/usr/lib --sysroot=/home/systebui/android_ndk/platforms/android-19/arch-arm -Wl,--allow-shlib-undefined conftest.C -llog 1>&5
DEBUG: In file included from :0:0:
DEBUG: /home/systebui/B2G/gonk-misc/Unicode.h:20:23: fatal error: sys/types.h: No such file or directory
DEBUG: #include
DEBUG: ^
DEBUG: compilation terminated.
DEBUG: configure: failed program was:
DEBUG:
DEBUG: #line 1872 "configure"
DEBUG: #include "confdefs.h"
DEBUG:
DEBUG: int main(){return(0);}
DEBUG: configure: error: installation or configuration problem: C++ compiler cannot create executables.
ERROR: old-configure failed
* Fix above errors and then restart with\
"make -f client.mk build"
make[3]:
[configure] Error 1
make[2]:
[/home/systebui/B2G/objdir-gecko/Makefile] Error 2
make[1]:
[build] Error 2
make:
[out/target/product/hammerhead/obj/DATA/gecko_intermediates/gecko] Error 2
make: *
Waiting for unfinished jobs....

real 0m16.600s
user 0m25.304s
sys 0m4.408s

Build failed! <

Be the first to answer

Recommended articles