[haiku-development] Re: gcc version for cross-compiling Haiku?

  • From: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 1 Oct 2016 12:44:08 +0200

On Sat, Oct 01, 2016 at 07:09:22AM +0000, Thomas Mueller wrote:

What is the requirement for gcc version for cross-compiling Haiku from Linux, 
FreeBSD or possibly NetBSD?

Does it have to be 4.x, or is the newer 5.x or possibly 6.x OK? 

I need to do some system upgrading, and now gcc 5.x and 6.x are more current.

Concern is what is compatible with Haiku: hybrid x86-gcc2, x86 or amd64.

Would there be any specific need to keep gcc 4.x?

Haiku uses GCC 5.4. Any 5.x version should do. 4.x should still work, I
don't know if 6.x was tested yet but it should work as well.

Note that when building Haiku from Linux or *BSD, you will first compile
the version of GCC we use anyway. The host tools are used only for that
and a small set of tools run on the host system (to create hpkg files,
manage file attributes, etc). Haiku itself is always built with its own
compiler from our "buildtools" git repository.

-- 
Adrien.

Other related posts: