ABI_V0 C++11 cross-compiler

BSzili · 2379

BSzili

  • Newbie
  • *
    • Posts: 44
    • Karma: +80/-0
    • My AROS, MorphOS and AmigaOS4 ports
on: November 05, 2018, 05:08:04 AM
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: 265
    • Karma: +55/-0
Reply #1 on: November 05, 2018, 05:42:04 AM
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: 44
    • Karma: +80/-0
    • My AROS, MorphOS and AmigaOS4 ports
Reply #2 on: November 05, 2018, 05:57:04 AM
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: 265
    • Karma: +55/-0
Reply #3 on: November 05, 2018, 06:11:55 AM
ah yes. and maybe there was 4.8.3 not sure if the diff is still present.



wawa

  • Senior Member
  • ****
    • Posts: 265
    • Karma: +55/-0
Reply #4 on: November 05, 2018, 06:19:01 AM
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: 44
    • Karma: +80/-0
    • My AROS, MorphOS and AmigaOS4 ports
Reply #5 on: November 05, 2018, 06:40:08 AM
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: 44
    • Karma: +80/-0
    • My AROS, MorphOS and AmigaOS4 ports
Reply #6 on: November 06, 2018, 02: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: 265
    • Karma: +55/-0
Reply #7 on: November 07, 2018, 03: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: 44
    • Karma: +80/-0
    • My AROS, MorphOS and AmigaOS4 ports
Reply #8 on: March 27, 2019, 01: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.