[haiku-development] Re: Build Issue

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 28 Nov 2019 07:37:29 +0000

To keep the situation simple, I have setup a fresh x86_64 Haiku nightly and 
have tried to execute a
build on that virtual host. I have performed the following steps;

1) Cloned the 'haiku' repo
2) Created a sibling folder 'generated'
3) Set pwd to 'generated'
3) ../haiku/configure

This is not working for x86_64, you need to build the buildtools there. As 
mentionned, for the 64bit version of Haiku, we need to build some 32bit code 
for the BIOS loader, and for this, we need a 32bit compiler. The one created 
with --build-cross-tools works, but the one shipped with Haiku doesn't.

https://www.haiku-os.org/guides/building/compiling-x86_64

In general, if you are building the whole OS, it is recommended to use the 
matching buildtools and not attempt to reuse the existing buildtools of the 
running system. If you are however building just one application (for example 
jam -q HaikuDepot), you can use the existing buildtools, and then run your app 
in the same running system.

4) DEBUG=1 jam -q @release-raw

Setting DEBUG=1 like this is not recommended. You should instead set DEBUG for 
specific parts of the code only, using SetConfigVar DEBUG in 
build/jam/UserBuildConfig

-- 
Adrien.


Other related posts: