Closed Bug 883530 Opened 12 years ago Closed 4 years ago

Can't build fennec: js/src/ion/arm/Assembler-arm.h:30:33: error: both 'const' and 'constexpr' cannot be used here"

Categories

(Firefox for Android Graveyard :: General, defect)

x86_64
Linux
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: paul, Unassigned)

References

Details

Attachments

(1 file)

Attached file logs
Apparently, several of us ran into the same issue today: /usr/bin/ccache /home/paul/mozilla/fennec/android-ndk-r8e//toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -o Debugger.o -c -fvisibility=hidden -DENABLE_PARALLEL_JS -DNO_NSPR_10_SUPPORT -DIMPL_MFBT -DEXPORT_JS_API -DJS_HAS_CTYPES -DDLL_PREFIX=\"lib\" -DDLL_SUFFIX=\".so\" -DUSE_ZLIB -Ictypes/libffi/include -I. -I/home/paul/mozilla/fennec/fennec/js/src/../../mfbt/double-conversion -I/home/paul/mozilla/fennec/fennec/js/src/../../intl/icu/source/common -I/home/paul/mozilla/fennec/fennec/js/src/../../intl/icu/source/i18n -I/home/paul/mozilla/fennec/fennec/js/src -I. -I./../../dist/include -I/home/paul/mozilla/fennec/fennec/objdir-droid/dist/include/nspr -I/home/paul/mozilla/fennec/fennec/js/src -I/home/paul/mozilla/fennec/fennec/js/src/assembler -I/home/paul/mozilla/fennec/fennec/js/src/yarr -fPIC -isystem /home/paul/mozilla/fennec/android-ndk-r8e//platforms/android-9/arch-arm/usr/include -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Werror=conversion-null -Wsign-compare -Wno-invalid-offsetof -mandroid -fno-short-enums -fno-exceptions -Wno-psabi -march=armv7-a -mthumb -mfpu=vfp -mfloat-abi=softfp -I/home/paul/mozilla/fennec/fennec/objdir-droid/build/stlport -I/home/paul/mozilla/fennec/android-ndk-r8e//sources/cxx-stl/stlport/stlport -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -pipe -DNDEBUG -DTRIMMED -g -O3 -freorder-blocks -fno-reorder-functions -fomit-frame-pointer -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 -isystem /home/paul/mozilla/fennec/android-ndk-r8e//platforms/android-9/arch-arm/usr/include -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MP -MF .deps/Debugger.o.pp /home/paul/mozilla/fennec/fennec/js/src/vm/Debugger.cpp /home/paul/mozilla/fennec/fennec/js/src/ion/arm/Assembler-arm.h:30:33: error: both 'const' and 'constexpr' cannot be used here (full log attached) Using android-sdk_r20.0.3-linux (but it might be 22 since I followed the instructions here [1] to update the sdk), and android-ndk-r8e-linux-x86_64. [1] https://wiki.mozilla.org/Mobile/Fennec/Android#Install_Android_SDK
Severity: normal → blocker
Version: unspecified → Trunk
Seems difficult to determine versions being used because of going to a generic non version specific path in the build config for official builds. This just makes it harder for us to figure things out. Please go back to the old version specific paths so developers have a clue what is going on.
We really need to know shat version SDK, NDK and JAVA versions current nightlies build with. Where is this information documented?
Oh and GCC version. I tried to match gcc version but that failed even worse because of not being able to determine versions of other tools because of using non version specific paths.
Severity: blocker → normal
IF there are build prerequisites this needs to be tested in and diagnosed with a clear message in configure. Just Sayin'!
I still think this should be a blocker.
Apparently, this only affects people who didn't manage to build Fennec yet. Probably an issue with initial configuration.
Summary: Can't build fennec on today's trunk: js/src/ion/arm/Assembler-arm.h:30:33: error: both 'const' and 'constexpr' cannot be used here" → Can't build fennec: js/src/ion/arm/Assembler-arm.h:30:33: error: both 'const' and 'constexpr' cannot be used here"
IF that were the case I would never have set it as a blocker.
Severity: normal → blocker
This is a new issue today. Built just fine yesterday.
Adding `ac_add_options --with-android-gnu-compiler-version=4.7` solved my problem.
I've updated the documentation with a working mozconfig: https://wiki.mozilla.org/Mobile/Fennec/Android#Setup_Fennec_mozconfig
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Please explain in the bug what you did to resolve the issue.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
(In reply to Bill Gianopoulos [:WG9s] from comment #11) > Please explain in the bug what you did to resolve the issue. See comment 9.
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → WORKSFORME
Yes but that did not work for me even before his issue so still need to know what sdk and ndk and java version i need. Please try to read my comments before replying.
(In reply to Bill Gianopoulos [:WG9s] from comment #13) > Yes but that did not work for me even before his issue so still need to know > what sdk and ndk and java version i need. > Please try to read my comments before replying. See comment 0.
Interesting but still does not answer the question about what is the SDK version, NDK version and JAVA version that is used for official builds.
(In reply to Bill Gianopoulos [:WG9s] from comment #15) > Interesting but still does not answer the question about what is the SDK > version, NDK version and JAVA version that is used for official builds. This bug is not about that. We tried to tell you on IRC. Look at the mozconfig: http://mxr.mozilla.org/mozilla-central/source/mobile/android/config/mozconfigs/android/nightly Basically: - gcc 4.7 - jdk 6 - sdk 16 - ndk r8e (this is not 100% sure, it's not mentioned on for x64, but from the documentation: "The automated builders currently use version r8e")
See Also: → 877503
There is still a issue here. If android ndk r8e and gcc version 4.7 is a requirement, these should be checked for in configure and a reasonable error produced.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
The requirement seems to be for gcc 4.7 which they current documented minimum ndk version does not even provide.
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: REOPENED → RESOLVED
Closed: 12 years ago4 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: