[haiku-development] Re: Trouble building @vmware-image on Mac OS X 10.9 Mavericks

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Mon, 28 Oct 2013 21:02:21 -0400

On Mon, Oct 28, 2013 at 8:37 PM, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> On 10/29/2013 01:16 AM, John Scipione wrote:
>>
>> So, the first problem here is that the BPrivate::Storage::Exception
>> isn't getting caught as it should. Instead of getting an uncaught
>> exception error I should get some sort of error message printed to
>> stderr. Perhaps -f-no-exceptions is getting passed to the compiler
>> somewhere?
>
> I don't think so. If you have access to a usable debugger, you could set an
> exception breakpoint and see what happens.

Here's the backtrace from gdb for the makebootable binary:

Program received signal SIGABRT, Aborted.
0x00007fff88655866 in __pthread_kill ()
(gdb) bt
#0  0x00007fff88655866 in __pthread_kill ()
#1  0x00007fff8cb9835c in pthread_kill ()
#2  0x00007fff8e945bba in abort ()
#3  0x00007fff9194f141 in abort_message ()
#4  0x00007fff91974abc in default_terminate_handler ()
#5  0x00007fff8bbc9322 in _objc_terminate ()
#6  0x00007fff919723e1 in std::__terminate ()
#7  0x00007fff91971e6b in __cxa_throw ()
#8  0x000000010011d8f7 in BPrivate::Storage::ResourceFile::_InitFile ()
#9  0x000000010011d9e6 in BPrivate::Storage::ResourceFile::SetTo ()
#10 0x000000010011ed80 in BResources::SetTo ()
#11 0x00000001000014c9 in main ()

>> The second problem of course is that it isn't setting the vmdk
>> bootable. I'm a little confused here because I can't imagine how this
>> ever worked unless I'm mistaken about the build system trying to read
>> in a Mach-O binary. Perhaps it is suppose to call the Haiku
>> makebootable binary located in
>>
>> generated/objects/haiku/x86_gcc2/release/bin/makebootable/platform/bios_ia32/makebootable
>> instead and not the host binary?
>
> On Darwin the build host makebootable is supposed to use an attribute
> instead of a resource (cf. src/tools/makebootable/platform/bios_ia32/Jamfile
> and src/bin/makebootable/platform/bios_ia32/makebootable.cpp). If that
> doesn't work, the platform detection might not work correctly somewhere.

Okay, that makes sense, platform detection is definitely working else
there's no way I'd have gotten this far, but, maybe attributes aren't
working on 10.9.

Other related posts: