[haiku-commits] Re: BRANCH pdziepak-github.memcpy-v2 [c4c0758] src/system/kernel/arch/x86/64 src/system/libroot/posix/string/arch/x86_64 src/system/kernel/arch/x86 headers/private/kernel/arch/x86/64

  • From: "Ithamar R. Adema" <ithamar@xxxxxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 14 Sep 2014 13:38:25 +0200

On Sun, Sep 14, 2014 at 12:43 PM, Alex Smith <alex@xxxxxxxxxxxxxxxx> wrote:

> Well, the problem is that the gcc package recipe disables multilib
> when building for x86_64. Comment in the recipe says this is because
> the 32-bit library build tries to link against a 32-bit libroot which
> isn't there. I'm not really sure how to work around that though. I
> don't remember how I built the x86_64 gcc package pre-PM, I did
> successfully build x86_64 from itself before. Might have
> cross-compiled gcc...
>

Multilib support in the build system in general is broken, that's why all
the platforms disable it ;) On ARM it cannot be used either, there are path
assumptions made in the build system that break it (at least for ARM). One
of the major ones is that the gcc includes are assumed to be based from the
"lib" path, which horribly breaks on ARM (where only the lib directory is
separate for multilib, but the headers will be looked up inside that).

Getting multilib to work properly is a task in itself I suspect...

Ithamar.

Other related posts: