Author Topic: ABI_V0 C++11 cross-compiler  (Read 179 times)

BSzili

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • My AROS, MorphOS and AmigaOS4 ports
ABI_V0 C++11 cross-compiler
« 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

  • Junior Member
  • **
  • Posts: 71
    • View Profile
Re: ABI_V0 C++11 cross-compiler
« 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: 17
    • View Profile
    • My AROS, MorphOS and AmigaOS4 ports
Re: ABI_V0 C++11 cross-compiler
« 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

  • Junior Member
  • **
  • Posts: 71
    • View Profile
Re: ABI_V0 C++11 cross-compiler
« 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

  • Junior Member
  • **
  • Posts: 71
    • View Profile
Re: ABI_V0 C++11 cross-compiler
« 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: 17
    • View Profile
    • My AROS, MorphOS and AmigaOS4 ports
Re: ABI_V0 C++11 cross-compiler
« 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: 17
    • View Profile
    • My AROS, MorphOS and AmigaOS4 ports
Re: ABI_V0 C++11 cross-compiler
« 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

  • Junior Member
  • **
  • Posts: 71
    • View Profile
Re: ABI_V0 C++11 cross-compiler
« 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.