About Monkey 2 › Forums › Monkey 2 Programming Help › Error compiling modules for Android
This topic contains 1 reply, has 2 voices, and was last updated by
Mark Sibly
6 months, 2 weeks ago.
-
AuthorPosts
-
September 30, 2018 at 7:22 am #15489
v2018.08
***** Making module ‘mojo’ (android release armeabi-v7a x86 gcc mx) *****
Parsing…
Semanting…
Translating…
Compiling…
[armeabi-v7a] Compile++ thumb: mx2_mojo <= mojo_graphics_2angelfont.cpp
Build error: System command failed:ndk-build
jni/../src/mojo_graphics_2angelfont.cpp:67:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if((l_i==-1)){
~~~^~~~
jni/../src/mojo_graphics_2angelfont.cpp:67:14: note: remove extraneous parentheses around the comparison to silence this warning
if((l_i==-1)){
~ ^ ~
jni/../src/mojo_graphics_2angelfont.cpp:67:14: note: use ‘=’ to turn this equality comparison into an assignment
if((l_i==-1)){
^~
=
jni/../src/mojo_graphics_2angelfont.cpp:156:11: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if((l_i0==-1)){
~~~~^~~~
jni/../src/mojo_graphics_2angelfont.cpp:156:11: note: remove extraneous parentheses around the comparison to silence this warning
if((l_i0==-1)){
~ ^ ~
jni/../src/mojo_graphics_2angelfont.cpp:156:11: note: use ‘=’ to turn this equality comparison into an assignment
if((l_i0==-1)){
^~
=
jni/../src/mojo_graphics_2angelfont.cpp:161:11: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if((l_i1==-1)){
~~~~^~~~
jni/../src/mojo_graphics_2angelfont.cpp:161:11: note: remove extraneous parentheses around the comparison to silence this warning
if((l_i1==-1)){
~ ^ ~
jni/../src/mojo_graphics_2angelfont.cpp:161:11: note: use ‘=’ to turn this equality comparison into an assignment
if((l_i1==-1)){
^~
=
3 warnings generated.
C:\Users\JULIOC~1\AppData\Local\Temp\mojo_graphics_2angelfont-e97829.s: Assembler messages:
C:\Users\JULIOC~1\AppData\Local\Temp\mojo_graphics_2angelfont-e97829.s:2976: Error: bad immediate value for offset (1744)
clang++.exe: error: assembler command failed with exit code 1 (use -v to see invocation)
make: *** [obj/local/armeabi-v7a/objs/mx2_mojo/__/src/mojo_graphics_2angelfont.o] Error 1***** Fatal mx2cc error *****
Internal mx2cc build error
Update modules failed.
Total time elapsed: 0 m 38 s.Does anyone know how to solve it?
October 6, 2018 at 12:47 am #15502It sounds like a gcc bug:
https://stackoverflow.com/questions/6570709/arm-assembler-bad-immediate-value-for-offset
Have you updated your NDK lately?
I’m using 18.0.5002713 and successfully rebuilt everything juts a few hours ago.
-
AuthorPosts
You must be logged in to reply to this topic.