Open Bug 981587 Opened 10 years ago Updated 2 years ago

Cross-compiling JS shells for ARM broken due to nspr

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: decoder, Unassigned)

References

Details

Attachments

(1 file)

Attached file config.log
+++ This bug was initially created as a clone of Bug #975011 +++

I'm hitting this error right now when cross compiling a JS shell for ARM (--disable-threadsafe --enable-debug --enable-optimize --with-arch=armv7-a --target=arm-linux-gnueabi --without-intl-api).


running /bin/sh ../../../../nsprpub/configure  --disable-threadsafe --enable-debug --enable-optimize --with-arch=armv7-a --target=arm-linux-gnueabi --without-intl-api --with-dist-prefix=/srv/repos/mozilla-central/js/src/dbgarm/dist --with-mozilla --enable-debug --enable-optimize --with-arch=armv7-a --with-thumb=toolchain-default --with-thumb-interwork=toolchain-default --with-fpu=toolchain-default --with-float-abi=toolchain-default --with-soft-float=toolchain-default --cache-file=.././config.cache --srcdir=../../../../nsprpub
loading cache .././config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnueabi
checking build system type... x86_64-unknown-linux-gnu
checking for whoami... /usr/bin/whoami
cross compiling from x86_64-unknown-linux-gnu to arm-unknown-linux-gnueabi
checking for x86_64-unknown-linux-gnu compiler... checking for gcc... gcc
gcc
checking whether the x86_64-unknown-linux-gnu compiler (gcc -Wall -Wpointer-arith -Wdeclaration-after-statement -Werror=return-type -Werror=int-to-pointer-cast -Wempty-body -Wsign-compare -Wno-unused -march=armv7-a -std=gnu99 -fgnu89-inline -fno-math-errno -pthread -pipe  -lpthread  -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id -B /srv/repos/mozilla-central/js/src/dbgarm/build/unix/gold  -Wl,-z,text) works... configure: error: installation or configuration problem: x86_64-unknown-linux-gnu compiler gcc cannot create executables.
configure: error: ../../../../nsprpub/configure failed for nsprpub
make: *** No targets specified and no makefile found.  Stop.



I'm attaching the full config.log as well :)
Flags: needinfo?(sphink)
I think the patch for bug 981481 should fix this. But you'll have to wait for bugzilla to be fixed to accept attachments again before I can post the patch. :(

I don't know how to test this locally; I don't have an "arm-linux-gnueabi" compiler lying around. This works:

../js/src/configure --disable-threadsafe --enable-debug --enable-optimize --with-arch=armv7-a --target=arm-linux-androideabi --without-intl-api --with-android-ndk=/home/sfink/Android/android-ndk-r9c

but that works with or without the patch, so it's not a valid test.
Flags: needinfo?(sphink)
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: