Jump to content


Photo

Wiz Gcc 4.6.3 Toolchain


  • Please log in to reply
15 replies to this topic

#1 hmn

hmn

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 168 posts

Posted 12 May 2012 - 03:26 PM

To be able to play around with C++0x features, I built a gcc 4.6.3 cross toolchain for the Wiz. It is available here: wiz-toolchain-4.6.3-3-linux-i686.tar.bz2 (76MB)

The toolchain is built against the same glibc as the GPH toolchain. You may need to supply libstdc++.so.6 from this toolchain along with your application, otherwise it should to be compatible with the runtime libs on the Wiz (tested with a Rainbow Plains build).

#2 Dave18

Dave18

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 166 posts

Posted 15 May 2012 - 10:59 AM

Can this toolchain be used to compile for the caanoo?

Thanks

Dave

#3 hmn

hmn

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 168 posts

Posted 15 May 2012 - 12:31 PM

No, since the ABIs are not compatible. If there is interest, I might be able to compile a Caanoo toolchain as well.

#4 Dave18

Dave18

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 166 posts

Posted 15 May 2012 - 03:49 PM

I would certainly be interested as the current toolchain appears to produce code that has bugs that don't appear when compiled on newer version of gcc.

This is noticeable when compiling FBA as the identical code works fine on pandora (gcc 4.3.3) but has some weird driver errors and random freezes on caanoo (although I guess there could be factors other than gcc)

#5 sebt3

sebt3

    homebrew player (P. & C.)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1897 posts
  • Gender:Male
  • Location:QC

Posted 15 May 2012 - 04:56 PM

No, since the ABIs are not compatible. If there is interest, I might be able to compile a Caanoo toolchain as well.

I would love a how to build that ;)

#6 Farox

Farox

    GP Mania

  • GP Guru
  • 491 posts
  • Gender:Male
  • Location:Italy
  • Interests:Pandora
    GP2X
    Caanoo

Posted 15 May 2012 - 08:47 PM

If there is interest, I might be able to compile a Caanoo toolchain as well.

This will be very usefull i think... :)

#7 hmn

hmn

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 168 posts

Posted 30 May 2012 - 09:49 PM

Sorry guys, I was busy with real life and other projects and totally forgot about the toolchain until Dave18 PMed me about it today :-) I may be able to come up with a finished toolchain sometime next week.

Feel free to ping me again if you have not heard from me by the end of next week ;-)

#8 Farox

Farox

    GP Mania

  • GP Guru
  • 491 posts
  • Gender:Male
  • Location:Italy
  • Interests:Pandora
    GP2X
    Caanoo

Posted 31 May 2012 - 11:23 AM

Thanks ... :)

#9 hmn

hmn

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 168 posts

Posted 04 June 2012 - 09:48 PM

caanoo-toolchain-4.6.3-2-linux-i486.tar.bz2 [159MB]

I compiled some test programs and they *look* compatible in objdump, but they are completely untested (no Caanoo here). Let me know whether it works or not.

Build script is here.

#10 Dave18

Dave18

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 166 posts

Posted 05 June 2012 - 10:14 AM

Thanks, I'll test as soon as I get a chance and let you know the result.

#11 Farox

Farox

    GP Mania

  • GP Guru
  • 491 posts
  • Gender:Male
  • Location:Italy
  • Interests:Pandora
    GP2X
    Caanoo

Posted 05 June 2012 - 01:48 PM

Thanks i'm downloading now...

#12 Dave18

Dave18

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 166 posts

Posted 05 June 2012 - 03:56 PM

I have mixed results:
Built Gravity Force - works fine
Built Capex front end - works fine
Built the main FBA code, but when I try to run it I get the following error:
./fba.gpe: /lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found (required by ./fba.gpe)

libstdc++.so.6 exists but I guess it is looking for a different version, strange that it doesn't affect the other programs.

Any ideas?

#13 Dave18

Dave18

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 166 posts

Posted 05 June 2012 - 04:27 PM

I copied the libstdc++ lib from the toolchain into the fba caanoo directory and everything worked.

I assume I can copy the libstdc++ from the caanoo itself into the toolchain to avoid this error in future, or is this likely to cause other problems?

Thanks

#14 hmn

hmn

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 168 posts

Posted 05 June 2012 - 07:29 PM

I copied the libstdc++ lib from the toolchain into the fba caanoo directory and everything worked.

I assume I can copy the libstdc++ from the caanoo itself into the toolchain to avoid this error in future, or is this likely to cause other problems?

Thanks


No, you should copy the libstdc++ from the toolchain along with your program (see my original comment about the Wiz toolchain). The C++ runtime lib has to match the
compiler version. In some cases you can turn off certain runtime features (such as exception support) in the compiler flags to achive binary compatibility to an older runtime.

#15 sebt3

sebt3

    homebrew player (P. & C.)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1897 posts
  • Gender:Male
  • Location:QC

Posted 06 June 2012 - 10:51 AM

Build script is here.


Cool, I guess SYSROOT point to the sysroot from the original toolchain, right ?