[haiku-bugs] Re: [Haiku] #12031: Can't build Haiku under Haiku 49058 with GCC 2 or 4

  • From: "danboid" <trac@xxxxxxxxxxxx>
  • Date: Tue, 28 Apr 2015 09:41:51 -0000

#12031: Can't build Haiku under Haiku 49058 with GCC 2 or 4
----------------------------+----------------------------
Reporter: danboid | Owner: bonefish
Type: bug | Status: closed
Priority: normal | Milestone: Unscheduled
Component: Build System | Version: R1/Development
Resolution: invalid | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------+----------------------------

Comment (by danboid):

Hi waddlesplash

Thanks for the Haiku compilation tips!

I would suggest that the example configure commands on https://www.haiku-
os.org/guides/building/compiling-x86 are changed and explained better.

Under the gcc2 section of that page, I would suggest it says something
like:

-----------------------

gcc2 is the default build planned for R1 given it's BeOS binary
compatibility enabling native binary BeOS applications to run on Haiku.

If you are compiling under Haiku and just want to do a basic build to test
some new code, you can probably just run `./configure` with no extra
parameters.

If you want to cross-compile Haiku for a different architecture, you'd use
a command such as this:


{{{
./configure --build-cross-tools x86_gcc2 ../buildtools
}}}


gcc4

gcc4 is the default build planned for post-R1. gcc4 doesn't offer complete
BeOS binary compatibility, however benefits from using a more-modern
toolchain.

To cross-compile using gcc4, run a command such as:


{{{
./configure --build-cross-tools x86 ../buildtools
}}}

--
Ticket URL: <https://dev.haiku-os.org/ticket/12031#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: