• Re: Ada on Android and iOS?

    From Guillermo Hazebrouck@21:1/5 to All on Tue Jun 20 06:31:44 2023
    El viernes, 24 de enero de 2014 a la(s) 00:48:07 UTC+1, Lucretia escribió:
    I built arm and mipsel Android GNAT using the svn/git 4.9.0 branch of GCC.I had to add in mips, but it built. Not done anything with it yet.

    Luke.
    Do you still have this? Or could you explain how you created the toolchain? Guillermo

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to All on Tue Jun 20 19:08:35 2023
  • From Luke A. Guest@21:1/5 to Guillermo Hazebrouck on Tue Jun 20 18:43:56 2023
    On 20/06/2023 14:31, Guillermo Hazebrouck wrote:
    El viernes, 24 de enero de 2014 a la(s) 00:48:07 UTC+1, Lucretia escribió:
    I built arm and mipsel Android GNAT using the svn/git 4.9.0 branch of GCC.I had to add in mips, but it built. Not done anything with it yet.

    Luke.
    Do you still have this? Or could you explain how you created the toolchain? Guillermo

    Not exactly and you'd really need one of the older gcc android ndk's to
    get the exact options they were using then and anything else extra they
    added. Also they were 32-bit, it's all aarch now.

    for android, --target=android-aarch64? or similar. You'd need to specify
    the libc as bionic too and I cannot remember how to do it.

    As for ios, maybe Simon can help here, I never really got around to
    building it for ios, only android.

    Would be worth posting it here so it's documented.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to All on Tue Jun 20 19:45:16 2023
    Ok, just found a cross compiler on my machine, based on GCC 11.

    $ ~/opt/android-gnat/bin/x86_64-linux-android-gcc -v
    Using built-in specs. COLLECT_GCC=/home/laguest/opt/android-gnat/bin/x86_64-linux-android-gcc COLLECT_LTO_WRAPPER=/home/laguest/opt/android-gnat/libexec/gcc/x86_64-linux-android/11.0.0/lto-wrapper
    Target: x86_64-linux-android
    Configured with:
    /home/laguest/src/mine/free-ada/tmp/android/../gcc/configure --target=x86_64-linux-android --prefix=/home/laguest/opt/android-gnat --enable-languages=c,c++,ada --enable-multilib --enable-threads=posix --disable-nls --enable-libgomp --disable-shared --disable-tls
    --disable-tls --disable-libitm --disable-libstdc__-v3
    --disable-sjlj-exceptions --with-sysroot=/home/laguest/src/mine/free-ada/tmp/android/sysroot/android-x86_64
    --disable-libssp --with-arch=x86-64 --with-tune=intel --with-fpmath=sse --with-multilib-list=m32,m64 --enable-bionic-libs --disable-bootstrap --enable-plugins --disable-libcilkrts --disable-libsanitizer
    --enable-gold --enable-threads --enable-eh-frame-hdr-for-static --enable-libatomic-ifuncs=no --enable-initfini-array --enable-gnu-indirect-function --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
    Thread model: posix
    Supported LTO compression algorithms: zlib zstd
    gcc version 11.0.0 20200816 (experimental) (GCC)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Simon Wright on Tue Jun 20 20:29:21 2023
    On 20/06/2023 20:17, Simon Wright wrote:
    "Luke A. Guest" <laguest@archeia.com> writes:

    As for ios, maybe Simon can help here, I never really got around to
    building it for ios, only android.

    No, sorry

    :/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Simon Wright on Tue Jun 20 20:35:08 2023
    On 20/06/2023 20:17, Simon Wright wrote:
    "Luke A. Guest" <laguest@archeia.com> writes:

    As for ios, maybe Simon can help here, I never really got around to
    building it for ios, only android.

    No, sorry

    Might be better to use gnat-llvm for ios, maybe even android.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon Wright@21:1/5 to Luke A. Guest on Tue Jun 20 20:17:24 2023
    "Luke A. Guest" <laguest@archeia.com> writes:

    As for ios, maybe Simon can help here, I never really got around to
    building it for ios, only android.

    No, sorry

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Guillermo Hazebrouck on Tue Jun 20 22:27:17 2023
    On 20/06/2023 14:31, Guillermo Hazebrouck wrote:
    El viernes, 24 de enero de 2014 a la(s) 00:48:07 UTC+1, Lucretia escribió:
    I built arm and mipsel Android GNAT using the svn/git 4.9.0 branch of GCC.I had to add in mips, but it built. Not done anything with it yet.

    Luke.
    Do you still have this? Or could you explain how you created the toolchain? Guillermo

    As a test, I updated my ndk and tried to compile both gcc 13 and 12,
    both failed. 13 with Ghost aspects and 12 with missing headers.

    They've changed the structure of the sysroot and I don't know enough
    about the android ndk anymore.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Guillermo Hazebrouck@21:1/5 to All on Wed Jun 21 00:01:10 2023
    El martes, 20 de junio de 2023 a la(s) 23:27:20 UTC+2, Luke A. Guest escribió:
    On 20/06/2023 14:31, Guillermo Hazebrouck wrote:
    El viernes, 24 de enero de 2014 a la(s) 00:48:07 UTC+1, Lucretia escribió:
    I built arm and mipsel Android GNAT using the svn/git 4.9.0 branch of GCC.I had to add in mips, but it built. Not done anything with it yet.

    Luke.
    Do you still have this? Or could you explain how you created the toolchain?
    Guillermo
    As a test, I updated my ndk and tried to compile both gcc 13 and 12,
    both failed. 13 with Ghost aspects and 12 with missing headers.

    They've changed the structure of the sysroot and I don't know enough
    about the android ndk anymore.
    Ok, thanks for that. I guess It will be more productive and future-proof to explore the LLVM option... Any clue about that? I understand a bit the logic of LLVM, but putting it into practice probably won't be ease.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Guillermo Hazebrouck on Wed Jun 21 10:06:06 2023
    On 21/06/2023 08:01, Guillermo Hazebrouck wrote:
    El martes, 20 de junio de 2023 a la(s) 23:27:20 UTC+2, Luke A. Guest escribió:
    On 20/06/2023 14:31, Guillermo Hazebrouck wrote:
    El viernes, 24 de enero de 2014 a la(s) 00:48:07 UTC+1, Lucretia escribió: >>>> I built arm and mipsel Android GNAT using the svn/git 4.9.0 branch of GCC.I had to add in mips, but it built. Not done anything with it yet.

    Luke.
    Do you still have this? Or could you explain how you created the toolchain? >>> Guillermo
    As a test, I updated my ndk and tried to compile both gcc 13 and 12,
    both failed. 13 with Ghost aspects and 12 with missing headers.

    They've changed the structure of the sysroot and I don't know enough
    about the android ndk anymore.
    Ok, thanks for that. I guess It will be more productive and future-proof to explore the LLVM option... Any clue about that? I understand a bit the logic of LLVM, but putting it into practice probably won't be ease.

    AFAIK, just build the front end and then port the runtime.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)