[haiku-development] Re: Permissible host gcc versions for cross-compiling Haiku?
- From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Mon, 18 Sep 2017 09:06:05 +0000
18 septembre 2017 10:28 "Thomas Mueller" <mueller6723@xxxxxxx> a écrit:
What range of host gcc versions can be used to cross-compile Haiku from
FreeBSD, or Linux or
NetBSD?
I seem to have read on haiku-development list about gcc6 not being supported,
but support being
worked on.
You are still mixing up different things here.
Compiling Haiku needs two compilers:
1) An host compiler, which generates executables for FreeBSD, Linux, NetBSD, or
whatever the host is. Any version of gcc (let's say 4.3 and above or so) should
work here.
2) A cross compiler that targets Haiku. We provide this (in the "buildtools"
git) and it is a fixed version (currently 5.4). This is where gcc6 is
unsupported and being worked on. This compiler is built using 1, so it can run
on the host, and is then used to compile other parts of Haiku.
What brings up this question is
Building cross-tools from NetBSD with gcc5-aux failed, ending in
Checking for compiler with PCH support... (hangs here, all I can do is abort
with Ctrl-C)
I also have gcc6 installed on NetBSD 8.99.1 amd64 (no Ada).
NetBSD is still an unsupported platform, so you are on your own figuring out
what is going on. You could attach a debugger to the blocking test and see what
it is doing and why it gets stuck.
On FreeBSD, I had gcc6-aux, built gcc5-aux thinking gcc6 would not work
cross-compiling Haiku.
gcc5-aux installed, with a notice that gcc5-aux was deprecated in favor of
gcc6-aux, expiration
date Oct 31, 2017.
You should be able to use any compiler provided with FreeBSD. It's likely that
a current version (gcc6) is better supported. I don't know what this -aux thing
is, not being familiar with FreeBSD, but maybe other people can help with that.
--
Adrien.
Other related posts: