[haiku-development] Re: Cross-compiling Haiku with jam under Freebsd: fails on package extraction

  • From: "Thomas Mueller" <mueller6723@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 28 Aug 2017 08:02:44 +0000

from Adrien Destugues:

Such a monstrous output with the debugging dissuades me from further using 
"-d 7", but I also notice a package.core dump.

Would that be the fault of something at my FreeBSD end or with the Haiku 
build code?
        
The core file means that the package tool crashed.


I got something similar with amd64 (not using -d 7), but the log began with

/home/nbarlene/haiku/haiku/src/add-ons/kernel/debugger/disasm/x86_64/Jamfile:
 No such file or directory
/home/nbarlene/haiku/haiku/src/bin/debug/ltrace/arch/x86_64/Jamfile: No 
such file or directory
Starting build of type regular ...
Skipping setjmp_test2.S test on non-x86
...patience...

(x86_64 subdirectory was not there)

These warnings are harmless. It's because we haven't implemented the
functionality yet.


So, the next step is examining the core file (I guess it can be opened
in some kind of Debugger in FreeBSD?) and extract a backtrace from it.
Then we can try to understand why the tool crashed.

I believe the debugger to use for FreeBSD and NetBSD is gdb.

Even if I don't get insight into why or how package (produced in the build 
process) crashed, I'll get some idea about gdb.

Since that crash, I booted into an old (December 2014) NetBSD 7.99.1 amd64 
installation and successfully built the Haiku cross-tools, using an older 
gcc-aux build (4.9.2).

More recently, gcc-aux or gcc5-aux has problems in NetBSD relating to PCH 
(precompiled headers), while gcc6-aux is broken on NetBSD (makefile says so):

# Tasking is broken on NetBSD.  The reason for this is unknown
# Until pthread support is fixed, remove NetBSD from PLATFORM list
#                       NetBSD-[5-9]*-i386   \
#                       NetBSD-[5-9]*-x86_64
 
NetBSD base gcc is apparently not good enough to build Haiku cross-tools; 
pkgsrc gcc5 has more tools.

Tom


Other related posts: