Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error while building fennec

116 views
Skip to first unread message

rajte...@gmail.com

unread,
Jan 8, 2013, 12:15:46 AM1/8/13
to
Hi all,

I ran into the following error while trying to build fennec on my Ubuntu.

raj@Raj:~/Dev/mozilla-central$ make -f client.mk build
make -f /home/raj/Dev/mozilla-central/client.mk realbuild
make[1]: Entering directory `/home/raj/Dev/mozilla-central'
Adding client.mk options from /home/raj/Dev/mozilla-central/.mozconfig:
MOZ_OBJDIR=./objdir-droid
MOZ_MAKE_FLAGS=-j9 -s
make[2]: Entering directory `/home/raj/Dev/mozilla-central'
cp /home/raj/Dev/mozilla-central/.mozconfig ./objdir-droid/.mozconfig
cd ./objdir-droid
/home/raj/Dev/mozilla-central/configure
Adding configure options from /home/raj/Dev/mozilla-central/.mozconfig:
--with-android-ndk=/home/raj/Dev/android-ndk
--with-android-gnu-compiler-version=4.6
--with-android-sdk=/home/raj/Dev/android-sdk
--with-android-version=5
--enable-application=mobile/android
--target=arm-linux-androideabi
--with-ccache=/usr/bin/ccache
loading cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... arm-linux-android
checking build system type... x86_64-unknown-linux-gnu
checking for mawk... mawk
checking for python2.7... /usr/bin/python2.7
Creating Python environment
checking for perl5... no
checking for perl... /usr/bin/perl
checking for android toolchain directory... /home/raj/Dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86
checking for android platform directory... /home/raj/Dev/android-ndk/platforms/android-5/arch-arm
cross compiling from x86_64-unknown-linux-gnu to arm-linux-android
checking for host c compiler... checking for gcc... gcc
gcc
checking for host c++ compiler... checking for c++... c++
c++
checking for ranlib... no
checking for ar... no
checking whether the host c compiler (gcc ) works... yes
checking whether the host c++ compiler (c++ ) works... yes
checking for /home/raj/Dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc... /home/raj/Dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
checking for gcc... /home/raj/Dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
checking whether the C compiler (/home/raj/Dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -mandroid -fno-short-enums -fno-exceptions -mandroid -L/home/raj/Dev/android-ndk/platforms/android-5/arch-arm/usr/lib -Wl,-rpath-link=/home/raj/Dev/android-ndk/platforms/android-5/arch-arm/usr/lib --sysroot=/home/raj/Dev/android-ndk/platforms/android-5/arch-arm -llog -Wl,--allow-shlib-undefined ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
*** Fix above errors and then restart with "make -f client.mk build"
make[2]: *** [configure] Error 1
make[2]: Leaving directory `/home/raj/Dev/mozilla-central'
make[1]: *** [objdir-droid/Makefile] Error 2
make[1]: Leaving directory `/home/raj/Dev/mozilla-central'
make: *** [build] Error 2
raj@Raj:~/Dev/mozilla-central$
raj@Raj:~/Dev/mozilla-central$ which script
/usr/bin/script
raj@Raj:~/Dev/mozilla-central$ script log.txt
Script started, file is log.txt
raj@Raj:~/Dev/mozilla-central$ make -f client.mk
make -f /home/raj/Dev/mozilla-central/client.mk realbuild
make[1]: Entering directory `/home/raj/Dev/mozilla-central'
Adding client.mk options from /home/raj/Dev/mozilla-central/.mozconfig:
MOZ_OBJDIR=./objdir-droid
MOZ_MAKE_FLAGS=-j9 -s
make[2]: Entering directory `/home/raj/Dev/mozilla-central'
cp /home/raj/Dev/mozilla-central/.mozconfig ./objdir-droid/.mozconfig
cd ./objdir-droid
/home/raj/Dev/mozilla-central/configure
Adding configure options from /home/raj/Dev/mozilla-central/.mozconfig:
--with-android-ndk=/home/raj/Dev/android-ndk
--with-android-gnu-compiler-version=4.6
--with-android-sdk=/home/raj/Dev/android-sdk
--with-android-version=5
--enable-application=mobile/android
--target=arm-linux-androideabi
--with-ccache=/usr/bin/ccache
loading cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... arm-linux-android
checking build system type... x86_64-unknown-linux-gnu
checking for mawk... mawk
checking for python2.7... /usr/bin/python2.7
Creating Python environment
checking for perl5... no
checking for perl... /usr/bin/perl
checking for android toolchain directory... /home/raj/Dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86
checking for android platform directory... /home/raj/Dev/android-ndk/platforms/android-5/arch-arm
cross compiling from x86_64-unknown-linux-gnu to arm-linux-android
checking for host c compiler... checking for gcc... gcc
gcc
checking for host c++ compiler... checking for c++... c++
c++
checking for ranlib... no
checking for ar... no
checking whether the host c compiler (gcc ) works... yes
checking whether the host c++ compiler (c++ ) works... yes
checking for /home/raj/Dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc... /home/raj/Dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
checking for gcc... /home/raj/Dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
checking whether the C compiler (/home/raj/Dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -mandroid -fno-short-enums -fno-exceptions -mandroid -L/home/raj/Dev/android-ndk/platforms/android-5/arch-arm/usr/lib -Wl,-rpath-link=/home/raj/Dev/android-ndk/platforms/android-5/arch-arm/usr/lib --sysroot=/home/raj/Dev/android-ndk/platforms/android-5/arch-arm -llog -Wl,--allow-shlib-undefined ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
*** Fix above errors and then restart with "make -f client.mk build"
make[2]: *** [configure] Error 1
make[2]: Leaving directory `/home/raj/Dev/mozilla-central'
make[1]: *** [objdir-droid/Makefile] Error 2
make[1]: Leaving directory `/home/raj/Dev/mozilla-central'
make: *** [build] Error 2
raj@Raj:~/Dev/mozilla-central$

Here's is my .mozconfig file,

ac_add_options --with-android-ndk="$HOME/Dev/android-ndk"
ac_add_options --with-android-gnu-compiler-version=4.6
ac_add_options --with-android-sdk="$HOME/Dev/android-sdk"
ac_add_options --with-android-version=5

ac_add_options --enable-application=mobile/android
ac_add_options --target=arm-linux-androideabi
ac_add_options --with-ccache=/usr/bin/ccache

mk_add_options MOZ_OBJDIR=./objdir-droid
mk_add_options MOZ_MAKE_FLAGS="-j9 -s"

This is the first time I'm building firefox, really appreciate any help to fix the issue. Thanks in advance.

Gian-Carlo Pascutto

unread,
Jan 8, 2013, 8:01:20 AM1/8/13
to
On 08/01/13 06:15, rajte...@gmail.com wrote:

> Here's is my .mozconfig file,
>
> ac_add_options --with-android-ndk="$HOME/Dev/android-ndk"
> ac_add_options --with-android-gnu-compiler-version=4.6
> ac_add_options --with-android-sdk="$HOME/Dev/android-sdk"

You need to indicate the platform subdir with the SDK level you're
targeting. (Needs to be 16 or higher right now)

So this probably needs to be:
ac_add_options
--with-android-sdk="$HOME/Dev/android-sdk/platforms/android-16"

See:
https://wiki.mozilla.org/Mobile/Fennec/Android#Setup_Fennec_mozconfig

--
GCP
0 new messages