Android build error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Android build error

Daniel Garcia Lecloux

Hi,

I'm trying to build for Android and i got some errors on Ubuntu 18.10:

1) pushd: not found

    I solved this by calling bash fluid-android-compile.sh instead of sh fluid-android-compile.sh or replacing pushd by cd and popd by cd .. (not recommended).

2) When executing bash fluid-android-compile.sh i get this error:

    ../src/arm/sysv.S:363:2: error: invalid instruction, did you mean: fldmiax?
     fldmiadgt ip, {d0-d7}
     ^
    ../src/arm/sysv.S:412:2: error: invalid instruction, did you mean: fstmiax?
     fstmiadeq r2, {d0-d3}
     ^
    /tmp/sysv-c3b8e8.s:263:2: error: invalid instruction
     fstmfdd sp!, {d0-d7}
     ^
    /tmp/sysv-c3b8e8.s:313:2: error: invalid instruction, did you mean: fldmiax?
     fldmiad sp, {d0-d1}
     ^
    /tmp/sysv-c3b8e8.s:316:2: error: invalid instruction, did you mean: fldmiax?
     fldmiad sp, {d0-d3}
     ^

I tried using different versions of the Android NDK (r17c, r18b, and r19) but all have the same error. I didn't try r17b as recommended here because I couldn't find the revision anywhere.

Looks like they got the same issue  in Kivy python-for-android here and here.

Thanks for your help,

DaniLecx



_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Android build error

Tom M.
> 1) pushd: not found
>     I solved this by calling bash fluid-android-compile.sh instead of sh fluid-android-compile.sh or replacing pushd by cd and popd by cd .. (not recommended).

Thanks for this hint, forgot about that. Will update the instructions.


> 2) When executing bash fluid-android-compile.sh i get this error:
> I tried using different versions of the Android NDK (r17c, r18b, and r19) but all have the same error.

This looks like you're building for armeabi-v7a as well? Or is there any other arm ABi I'm missing?


> I didn't try r17b as recommended here because I couldn't find the revision anywhere.

From the NDK Archives at https://developer.android.com/ndk/downloads/older_releases

Copy the link of the 17c NDK and modify it to point to 17b, e.g.:

https://dl.google.com/android/repository/android-ndk-r17b-linux-x86_64.zip


Tom






_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Android build error

Daniel Garcia Lecloux

2) When executing bash fluid-android-compile.sh i get this error:
I tried using different versions of the Android NDK (r17c, r18b, and r19) but all have the same error. 
This looks like you're building for armeabi-v7a as well? Or is there any other arm ABi I'm missing?

I have the default settings, didn't change anything.

export ANDROID_API=28
export ANDROID_ARCH=arm
export ANDROID_TARGET=${ANDROID_ARCH}-linux-androideabi
export TARGET=${ANDROID_ARCH}-eabi
export ANDROID_ABI_CMAKE=armeabi-v7a

Tried with r17b but still same results.

Just to clarify, I get this error on the terminal (bash fluid-android-compile.sh ):

        checking whether the C compiler works... no
        configure: error: in `/home/osboxes/ANDROID/libiconv-1.14':
        configure: error: C compiler cannot create executables
        See `config.log' for more details

And then when I search for "error" in 'config.log' I get the "error: invalid instruction" that I sent before.


DaniLecx


_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Android build error

Tom M.
Meanwhile I've tried 17c. It worked fine for me.

Please provide a log file containing the full build log that fluid-android-compile.sh prints, as well as the full config.log of libiconv.

Tom




_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Android build error

Daniel Garcia Lecloux

> Please provide a log file containing the full build log that fluid-android-compile.sh prints, as well as the full config.log of libiconv.

Attached both files. This is compiled with 17c, same as you.

Thanks for your help.

Danilecx


_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev

compile.log (51K) Download Attachment
config.log (27K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Android build error

Daniel Garcia Lecloux

>> Please provide a log file containing the full build log that fluid-android-compile.sh prints, as well as the full config.log of libiconv.
> Attached both files. This is compiled with 17c, same as you.

Solved the error by switching from Ubuntu 18.10 to Ubuntu 18.04 !

I'm a bit lost, I thought building would give me .so files but I ended
up with a lot of .la and .a files in ANDROID/opt/android.

DaniLecx.


_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Android build error

Tom M.
> I'm a bit lost, I thought building would give me .so files but I ended up with a lot of .la and .a files in ANDROID/opt/android.

This can be controlled with the --enable-static flag passed to the configure scripts. However, there should be static libs as well as shared libs in opt/android/lib. I've attached a listing of my directory so you can compare.

> Solved the error by switching from Ubuntu 18.10 to Ubuntu 18.04 !

I looked into it. It seems that clangs integrated assembler doesn't recognized the hand-written asm of libffi. I've updated our build scripts, this should be fixed now.

Interestingly, the config.log of libiconv reveals that the provided clang compiler is unable to start up:

configure:3894: arm-linux-androideabi-clang --version >&5
/home/osboxes/ANDROID/android-ndk-toolchain/bin/clang60: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

Installing libncurses5 should fix this.

Please give it another try on your 18.10 machine. For the sake of completeness, I'm also attaching my build logs.


Tom


_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev

android-build-logs.tar.xz (137K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Android build error

Daniel Garcia Lecloux

> Please give it another try on your 18.10 machine. For the sake of completeness, I'm also attaching my build logs.

I tried again on Ubuntu 18.10 and it works again, thanks ! Even with NDK
r19 it worked. Also I forgot to mention that the fluidsynth archive was
outdated (2.0.0) in the script but I saw you updated it.

DaniLecx


_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev