[quake3-bugzilla] [Bug 5168] New: ioquake3 won't compile under Xcode4 ans Snow Leopard

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Mon Aug 8 18:23:39 EDT 2011


https://bugzilla.icculus.org/show_bug.cgi?id=5168

           Summary: ioquake3 won't compile under Xcode4 ans Snow Leopard
           Product: ioquake3
           Version: SVN HEAD
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: blocker
          Priority: P3
         Component: Platform
        AssignedTo: zakk at icculus.org
        ReportedBy: pez.marcello at hotmail.it
         QAContact: quake3-bugzilla at icculus.org


SVN release 2139 fail to compile on Mac Os X 10.6.8 and Xcode4 (gcc-4.2) with
following errors:

DED_CC code/server/sv_bot.c
code/server/sv_bot.c:1: error: CPU you selected does not support x86-64
instruction set
code/server/sv_bot.c:1: error: CPU you selected does not support x86-64
instruction set
code/server/sv_bot.c:1: error: -mstackrealign not supported in the 64bit mode
make[2]: *** [build/release-darwin-i386/ded/sv_bot.o] Error 1

This is due to wrong march CFLAG in Makefile:
OPTIMIZEVM += -march=prescott -mfpmath=sse
which should be:
OPTIMIZEVM += -march=core2 -mfpmath=sse

Launching make again:
DED_CC code/server/sv_bot.c
code/server/sv_bot.c:1: error: -mstackrealign not supported in the 64bit mode
make[2]: *** [build/release-darwin-i386/ded/sv_bot.o] Error 1

so i have edited Makefile again and commented out the line:
BASE_CFLAGS += -mstackrealign

Finally make it again and this is the result:
DED_CC code/qcommon/vm_x86.c
{standard input}:4292:invalid character (0xd) in operand 2
{standard input}:4293:invalid character (0xd) in operand 2
{standard input}:4294:invalid character (0xd) in operand 2
{standard input}:4295:invalid character (0xd) in operand 1
{standard input}:4296:invalid character (0xd) in operand 1
{standard input}:4297:invalid character (0xd) in operand 1
{standard input}:4298:invalid character (0xd) in operand 1
{standard input}:4299:invalid character (0xd) in operand 1
{standard input}:4300:invalid character (0xd) in operand 1
{standard input}:4301:invalid character (0xd) in operand 1
{standard input}:4302:invalid character (0xd) in operand 1
{standard input}:4303:invalid character (0xd) in operand 1
make[2]: *** [build/release-darwin-i386/ded/vm_x86.o] Error 1

Reading on the web i have seen that this problem was introduced in an earlier
release so i have tried to track it back and this is what i have obtained for
release 2002:
DED_CC code/qcommon/vm_x86.c
code/qcommon/vm_x86.c:84: warning: cast from pointer to integer of different
size
code/qcommon/vm_x86.c:84: error: initializer element is not constant
code/qcommon/vm_x86.c: In function ‘DoSyscall’:
code/qcommon/vm_x86.c:443: warning: passing argument 1 of ‘savedVM->systemCall’
from incompatible pointer type
code/qcommon/vm_x86.c:458: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘intptr_t’
code/qcommon/vm_x86.c: In function ‘VM_Compile’:
code/qcommon/vm_x86.c:1444: warning: cast from pointer to integer of different
size
code/qcommon/vm_x86.c:1529: warning: cast from pointer to integer of different
size
make[2]: *** [build/release-darwin-i386/ded/vm_x86.o] Error 1

So the bug was introduced with release 2003!!!
Hope it will be fixed as soon as possible
Thx
Tomasini Marcello

-- 
Configure bugmail: https://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list