[haiku-development] Re: [PATCH] Buildutils on Solaris (was: Buildutils on powerpc)

  • From: Andreas Färber <andreas.faerber@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 10 Aug 2008 01:03:37 +0200


Am 09.08.2008 um 18:08 schrieb Andreas Färber:

Initializing BFS appears to work, i.e. `jam run ":<build>bfs_shell" --initialize my.image Haiku` writes something into an empty file and does not return an error.

`jam run ":<build>bfs_shell" my.image` however crashes, this is what gdb made of it:

(gdb) bt
#0  0xfecd2e40 in countbytes () from /lib/libc.so.1
#1  0xfed14476 in _ndoprnt () from /lib/libc.so.1
#2  0xfed167ca in vprintf () from /lib/libc.so.1
#3  0x0808b642 in fssh_dprintf ()
#4  0x0808289b in bfs_mount ()
#5  0x08092398 in FSShell::fs_mount ()
#6  0x08092c73 in FSShell::_kern_mount ()
#7  0x0809661f in FSShell::standard_session ()
#8  0x08096a1d in main ()

With Rene's help I tracked this does to an INFORM macro in the BFS kernel add-on. %Ld seems to be the offending part, %lld as suggested by Rene makes it work. A patch is attached but untested on other platforms.

Other than that the only missing piece in SVN is still the regex.h header, which I copied from the cygwin folder. Solaris does have a regex.h header but it's not GNU regex apparently, so if we don't want to take the Cygwin approach (as already prepared in the Jamfile) we'd have to create an intermediate header like for Mac OS X.

The gcc4 x86 image built runs fine in SVN qemu with kqemu 1.4.0pre1 from opensolaris.org. Thanks to everyone involved!

Andreas



Other related posts: