ABI_V0 C++11 cross-compiler

BSzili · 596

BSzili

  • Newbie
  • *
    • Posts: 37
    • Karma: +0/-0
    • My AROS, MorphOS and AmigaOS4 ports
on: November 05, 2018, 12:08:04 PM
Is there a way to build a C++11 cross-compiler for the current ABI_V0 branch? I tried to make new cross-compilers a few months ago, but it only built GCC 4.6.4, which is too old unfortunately. Are the newer compilers only available for ABI_V1, or I can use some configure switch to get them on ABI_V0 as well? Thanks!

This is just like television, only you can see much further.


wawa

  • Senior Member
  • ****
    • Posts: 252
    • Karma: +1/-0
Reply #1 on: November 05, 2018, 12:42:04 PM
building newer aros cross toolchain for abi v1 would require for instance --with-binutils-version=2.25 --with-gcc-version=6.3.0 flags.

you might ask that on dev ml too, looks like it is up again. or join us on slack. nick has probably most insights..



BSzili

  • Newbie
  • *
    • Posts: 37
    • Karma: +0/-0
    • My AROS, MorphOS and AmigaOS4 ports
Reply #2 on: November 05, 2018, 12:57:04 PM
Nice, I didn't know about these switches. It looks like for ABIv0 there's 5.3.0 and  6.1.0 which will do perfectly.

This is just like television, only you can see much further.


wawa

  • Senior Member
  • ****
    • Posts: 252
    • Karma: +1/-0
Reply #3 on: November 05, 2018, 01:11:55 PM
ah yes. and maybe there was 4.8.3 not sure if the diff is still present.



wawa

  • Senior Member
  • ****
    • Posts: 252
    • Karma: +1/-0
Reply #4 on: November 05, 2018, 01:19:01 PM
btw. should you port some stuff using build aros system/cross toolchain you can always share the sources with me to ensure it compiles for abi v1 platforms, or if mmakefile needs to be written.



BSzili

  • Newbie
  • *
    • Posts: 37
    • Karma: +0/-0
    • My AROS, MorphOS and AmigaOS4 ports
Reply #5 on: November 05, 2018, 01:40:08 PM
Yes, GCC 4.8.3 is there as well, but I already used 5.3.0 to compile the same project for MorphOS and OS4, so I'll go with that one. For C++ the newer the compiler the better anyway. The source code will be available in my GitHub forked repo once I'm done, I'm not a fan of "closed open source" ports  ;)

This is just like television, only you can see much further.


BSzili

  • Newbie
  • *
    • Posts: 37
    • Karma: +0/-0
    • My AROS, MorphOS and AmigaOS4 ports
Reply #6 on: November 06, 2018, 09:56:02 AM
Drats. The 5.3.0 and 6.1.0 GCC patches are incomplete for ABIv0, because they don't add support the "-newclib" switch, so the compilation fails before everything gets built. I somehow still have the SDK libs/includes, but I forgot to put in the contrib sources, and now it refuses to build it separately. I guess I'll try 4.8.3 which has this switch, and according to the GCC site has a feature complete C++11 implementation.

This is just like television, only you can see much further.


wawa

  • Senior Member
  • ****
    • Posts: 252
    • Karma: +1/-0
Reply #7 on: November 07, 2018, 10:28:52 PM
have you got that? while at it there is a slack channel i could invite you to if you like.



BSzili

  • Newbie
  • *
    • Posts: 37
    • Karma: +0/-0
    • My AROS, MorphOS and AmigaOS4 ports
Reply #8 on: March 27, 2019, 07:23:40 PM
I almost forgot about this, but here's my modified GCC 6.1.0 patch for ABIv0.

This is just like television, only you can see much further.