Compiling for x86_64

Article contributed by xyzzy on Wed, 2012-11-21 08:54

x86_64 Compiler Toolset

Building the x86_64 compiler toolset is quite easy and involves generating GCC binaries for your platform. For a complete list of flags for the configure script, see Haiku's Configure Options.

x86_64 exclusively uses GCC 4, different from x86 which can be built with both GCC 2 and GCC 4. From the Haiku source directory, run the following to compile the build tools (be sure to adjust the options to match your build environment):

./configure --build-cross-tools x86_64 ../buildtools

x86_64 Haiku Builds

These builds require a valid x86_64 compiler toolset (see above), and might also need additional software packages installed -- see the pre-requisite software page for more details.

Compiling a basic raw Haiku disk image

This is the most basic build, it generally is good for quickly testing the OS after making modifications as it doesn't contain a lot of extra applications. Be sure to modify -j2 with the number of cpu cores on your build system to ensure the fastest build times.

jam -q -j2 haiku-image

Compiling raw nightly disk images

This is the default nightly image build target. This contains a complete system with an included compiler. Be sure to modify -j2 with the number of cpu cores on your build system to ensure the fastest build times.

jam -q -j2 @nightly-raw

Comments

Re: Compiling for x86_64

Does it work too on Haiku x86 and x86_64?