[quake3] Mac OS X Universal Binary (2nd try)

Tony J. White tjw at webteam.net
Tue Jun 13 21:40:29 EDT 2006


On Thu, 8 Jun 2006 18:31:29 -0700
 Daniel Lord <daniellord at mac.com> wrote:
>
> On Jun 8, 2006, at 18:10, Tony J. White wrote:
>
> >On Thu, Jun 08, 2006 at 03:27:31PM -0700, Daniel Lord wrote:
> >
> >>Reading symbols for shared libraries warning: Can't find
> >>LC_SEGMENT.__DATA.__data section in symbol file
> >>. done
> >
> >>Loading vm file vm/ui.qvm...
> >>VM file ui compiled to 594408 bytes of code
> >>ui loaded in 1368576 bytes on the hunk
> >>35 arenas parsed
> >>32 bots parsed
> >>
> >>Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/
> >>operand.
> >>0x8fe136e4 in __dyld_stub_binding_helper_interface ()
> >>(gdb) backtrace
> >>#0 0x8fe136e4 in __dyld_stub_binding_helper_interface ()
> >>#1 0x00000000 in ?? ()

Just a status update, I've been able to reproduce the problem running
darwinx86 in qemu. It's looking like this is a compiler bug with gcc-4.0
(at least Apple's) and vm_x86.c.

I was able to build a working tremded.x86 using gcc 3.3 on darwin, but
building with the included gcc 4.0 compiler had the same issue running the
.qvm as people report with my ioquake3 UB.

Unfortunately you _must_ use gcc 4.0 to use the MacOS 10.4u SDK, so this will
have to be fixed (or worked around in vm_x86.c).

The gcc-4.0 that comes with XCode 2.2 is 4.0.1, so maybe it's been fixed since
the current release is 4.0.3. I'm downloading Xcode 2.3 with my fingers crossed.

Has anyone tried building ioquake3 with gcc 4.0 on any other x86 platform?

-Tony



More information about the quake3 mailing list