[haiku-development] Re: Error while compiling the haiku code

  • From: "Alexander von Gluck IV" <kallisti5@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 06 Oct 2020 15:20:53 +0000

October 6, 2020 9:19 AM, "Alexander G. M. Smith" <agmsmith@xxxxxx> wrote:

Suhel Mehta wrote on Mon, 5 Oct 2020 23:36:28 +0530:
I have cloned the latest buildtools and also cloned Haiku again but
still, there is a problem. I have also tried to compile without the -j
option but then it shows some different error.

The base error in both cases is some sort of linker missing library problem 
(easier to find if you
use "jam -q -da @nightly-anyboot" where the -q means stop at the first error, 
and the -da means
display the thing it was trying to compile):

/usr/bin/ld: objects/linux/x86_64/release/tools/resattr/resattr.o: undefined 
reference to symbol
'_Znam@@GLIBCXX_3.4'
/usr/bin/ld: /lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO 
missing from command
line

/usr/bin/ld: objects/linux/x86_64/release/tools/package/command_extract.o: 
undefined reference to
symbol '_ZSt7nothrow@@GLIBCXX_3.4'
/usr/bin/ld: /lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO 
missing from command
line

Known bug, waddlesplash was supposed to fix :-)    I'll circle back and see if 
I can dig up my
original fix he hated.

Workaround:

1) Run configure as usual in your generated directory
2) Edit build/BuildConfig
3) Change:
   HOST_GCC_RAW_VERSION           ?= 10.2.0 ;
   to
   HOST_GCC_RAW_VERSION           ?= 9 ;


Run jam.

Our code has trouble parsing two digit host GCC versions.

Jam sees 10 < 2  (1 is less than 2)


 -- Alex

Other related posts: