Project

General

Profile

Bug #213

x86_64 Compiling Issues

Added by axodious almost 20 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
Start date:
2005-02-04
% Done:

100%


Description

I know you do not currently have a 64bit CPU, but I thought I would
try to get this going anyway because I really like JDoom and can't
play it on this computer right now.

For some reason x86_64 doesn't like the menus in JDoom (starts
with the multiplayer menus not sure if all menus are effected.) The
reason I say this is because everytime I compile I get this:

../Common/m_multi.c:118: warning: initialization from incompatible
pointer type
../Common/m_multi.c:119: warning: initialization from incompatible
pointer type
../Common/m_multi.c:120: warning: initialization from incompatible
pointer type
../Common/m_multi.c:124: warning: initialization from incompatible
pointer type
../Common/m_multi.c:125: warning: initialization from incompatible
pointer type
../Common/m_multi.c:126: warning: initialization from incompatible
pointer type
../Common/m_multi.c:130: warning: initialization from incompatible
pointer type
../Common/m_multi.c:131: warning: initialization from incompatible
pointer type
../Common/m_multi.c:204: warning: initialization from incompatible
pointer type
../Common/m_multi.c:205: warning: initialization from incompatible
pointer type
../Common/m_multi.c:206: warning: initialization from incompatible
pointer type
../Common/m_multi.c:207: warning: initialization from incompatible
pointer type
../Common/m_multi.c:208: warning: initialization from incompatible
pointer type
../Common/m_multi.c:209: warning: initializer element is not
computable at load time
../Common/m_multi.c:209: error: initializer element is not constant
../Common/m_multi.c:209: error: (near initialization for
`GameSetupItems14.option')
../Common/m_multi.c:209: error: initializer element is not constant
../Common/m_multi.c:209: error: (near initialization for
`GameSetupItems14')
../Common/m_multi.c:210: warning: initialization from incompatible
pointer type
../Common/m_multi.c:211: warning: initializer element is not
computable at load time
../Common/m_multi.c:211: error: initializer element is not constant
../Common/m_multi.c:211: error: (near initialization for
`GameSetupItems15.option')
../Common/m_multi.c:211: error: initializer element is not constant
../Common/m_multi.c:211: error: (near initialization for
`GameSetupItems15')
../Common/m_multi.c:212: warning: initialization from incompatible
pointer type
../Common/m_multi.c:213: warning: initializer element is not
computable at load time
../Common/m_multi.c:213: error: initializer element is not constant
../Common/m_multi.c:213: error: (near initialization for
`GameSetupItems16.option')
../Common/m_multi.c:213: error: initializer element is not constant
../Common/m_multi.c:213: error: (near initialization for
`GameSetupItems16')
../Common/m_multi.c:214: warning: initialization from incompatible
pointer type
../Common/m_multi.c:215: warning: initializer element is not
computable at load time
../Common/m_multi.c:215: error: initializer element is not constant
../Common/m_multi.c:215: error: (near initialization for
`GameSetupItems17.option')
../Common/m_multi.c:215: error: initializer element is not constant
../Common/m_multi.c:215: error: (near initialization for
`GameSetupItems17')
../Common/m_multi.c:216: warning: initialization from incompatible
pointer type
../Common/m_multi.c:217: warning: initializer element is not
computable at load time
../Common/m_multi.c:217: error: initializer element is not constant
../Common/m_multi.c:217: error: (near initialization for
`GameSetupItems18.option')
../Common/m_multi.c:217: error: initializer element is not constant
../Common/m_multi.c:217: error: (near initialization for
`GameSetupItems18')
../Common/m_multi.c:218: warning: initialization from incompatible
pointer type
../Common/m_multi.c:219: warning: initializer element is not
computable at load time
../Common/m_multi.c:219: error: initializer element is not constant
../Common/m_multi.c:219: error: (near initialization for
`GameSetupItems19.option')
../Common/m_multi.c:219: error: initializer element is not constant
../Common/m_multi.c:219: error: (near initialization for
`GameSetupItems19')
../Common/m_multi.c:220: warning: initialization from incompatible
pointer type
../Common/m_multi.c:221: warning: initializer element is not
computable at load time
../Common/m_multi.c:221: error: initializer element is not constant
../Common/m_multi.c:221: error: (near initialization for
`GameSetupItems110.option')
../Common/m_multi.c:221: error: initializer element is not constant
../Common/m_multi.c:221: error: (near initialization for
`GameSetupItems110')
../Common/m_multi.c:222: warning: initialization from incompatible
pointer type
../Common/m_multi.c:223: warning: initializer element is not
computable at load time
../Common/m_multi.c:223: error: initializer element is not constant
../Common/m_multi.c:223: error: (near initialization for
`GameSetupItems111.option')
../Common/m_multi.c:223: error: initializer element is not constant
../Common/m_multi.c:223: error: (near initialization for
`GameSetupItems111')
../Common/m_multi.c:224: warning: initialization from incompatible
pointer type
../Common/m_multi.c:224: error: initializer element is not constant
../Common/m_multi.c:224: error: (near initialization for
`GameSetupItems112')
../Common/m_multi.c:229: warning: initialization from incompatible
pointer type
../Common/m_multi.c:230: warning: initialization from incompatible
pointer type
../Common/m_multi.c:231: warning: initialization from incompatible
pointer type
../Common/m_multi.c:232: warning: initialization from incompatible
pointer type
../Common/m_multi.c:233: warning: initializer element is not
computable at load time
../Common/m_multi.c:233: error: initializer element is not constant
../Common/m_multi.c:233: error: (near initialization for
`GameSetupItems23.option')
../Common/m_multi.c:233: error: initializer element is not constant
../Common/m_multi.c:233: error: (near initialization for
`GameSetupItems23')
../Common/m_multi.c:234: warning: initialization from incompatible
pointer type
../Common/m_multi.c:235: warning: initializer element is not
computable at load time
../Common/m_multi.c:235: error: initializer element is not constant
../Common/m_multi.c:235: error: (near initialization for
`GameSetupItems24.option')
../Common/m_multi.c:235: error: initializer element is not constant
../Common/m_multi.c:235: error: (near initialization for
`GameSetupItems24')
../Common/m_multi.c:236: warning: initialization from incompatible
pointer type
../Common/m_multi.c:237: warning: initializer element is not
computable at load time
../Common/m_multi.c:237: error: initializer element is not constant
../Common/m_multi.c:237: error: (near initialization for
`GameSetupItems25.option')
../Common/m_multi.c:237: error: initializer element is not constant
../Common/m_multi.c:237: error: (near initialization for
`GameSetupItems25')
../Common/m_multi.c:238: warning: initialization from incompatible
pointer type
../Common/m_multi.c:239: warning: initializer element is not
computable at load time
../Common/m_multi.c:239: error: initializer element is not constant
../Common/m_multi.c:239: error: (near initialization for
`GameSetupItems26.option')
../Common/m_multi.c:239: error: initializer element is not constant
../Common/m_multi.c:239: error: (near initialization for
`GameSetupItems26')
../Common/m_multi.c:240: warning: initialization from incompatible
pointer type
../Common/m_multi.c:241: warning: initializer element is not
computable at load time
../Common/m_multi.c:241: error: initializer element is not constant
../Common/m_multi.c:241: error: (near initialization for
`GameSetupItems27.option')
../Common/m_multi.c:241: error: initializer element is not constant
../Common/m_multi.c:241: error: (near initialization for
`GameSetupItems27')
../Common/m_multi.c:242: warning: initialization from incompatible
pointer type
../Common/m_multi.c:243: warning: initializer element is not
computable at load time
../Common/m_multi.c:243: error: initializer element is not constant
../Common/m_multi.c:243: error: (near initialization for
`GameSetupItems28.option')
../Common/m_multi.c:243: error: initializer element is not constant
../Common/m_multi.c:243: error: (near initialization for
`GameSetupItems28')
../Common/m_multi.c:244: warning: initialization from incompatible
pointer type
../Common/m_multi.c:245: warning: initializer element is not
computable at load time
../Common/m_multi.c:245: error: initializer element is not constant
../Common/m_multi.c:245: error: (near initialization for
`GameSetupItems29.option')
../Common/m_multi.c:245: error: initializer element is not constant
../Common/m_multi.c:245: error: (near initialization for
`GameSetupItems29')
../Common/m_multi.c:246: warning: initialization from incompatible
pointer type
../Common/m_multi.c:247: warning: initializer element is not
computable at load time
../Common/m_multi.c:247: error: initializer element is not constant
../Common/m_multi.c:247: error: (near initialization for
`GameSetupItems210.option')
../Common/m_multi.c:247: error: initializer element is not constant
../Common/m_multi.c:247: error: (near initialization for
`GameSetupItems210')
../Common/m_multi.c:248: warning: initialization from incompatible
pointer type
../Common/m_multi.c:248: error: initializer element is not constant
../Common/m_multi.c:248: error: (near initialization for
`GameSetupItems211')
../Common/m_multi.c:280: warning: initialization from incompatible
pointer type
../Common/m_multi.c:280: warning: initializer element is not
computable at load time
../Common/m_multi.c:280: error: initializer element is not constant
../Common/m_multi.c:280: error: (near initialization for
`PlayerSetupItems0.option')
../Common/m_multi.c:280: error: initializer element is not constant
../Common/m_multi.c:280: error: (near initialization for
`PlayerSetupItems0')
../Common/m_multi.c:281: error: initializer element is not constant
../Common/m_multi.c:281: error: (near initialization for
`PlayerSetupItems1')
../Common/m_multi.c:285: error: initializer element is not constant
../Common/m_multi.c:285: error: (near initialization for
`PlayerSetupItems2')
../Common/m_multi.c:287: warning: initialization from incompatible
pointer type
../Common/m_multi.c:287: error: initializer element is not constant
../Common/m_multi.c:287: error: (near initialization for
`PlayerSetupItems3')
../Common/m_multi.c:288: error: initializer element is not constant
../Common/m_multi.c:288: error: (near initialization for
`PlayerSetupItems4')
../Common/m_multi.c:289: warning: initialization from incompatible
pointer type
../Common/m_multi.c:289: error: initializer element is not constant
../Common/m_multi.c:289: error: (near initialization for
`PlayerSetupItems5')
../Common/m_multi.c: In function `SCGameSetupFunc':
../Common/m_multi.c:665: warning: cast to pointer from integer of
different size
../Common/m_multi.c: In function `SCEditField':
../Common/m_multi.c:1048: warning: cast to pointer from integer of
different size
../Common/m_multi.c: At top level:
../Common/m_multi.c:380: warning: 'MN_DrTextB_CS' defined but
not used
make3: *** [m_multi.lo] Error 1

I've tried several different things to get around this. Not even using
the command 'setarch' which allows you to use 32bit architectures
would allow it to compile. If you could please try to fix this it would
be greatly appreciated.

Labels: Data

History

#1 Updated by danij almost 20 years ago

Logged In: YES
user_id=849456

A lot of these issues are to do with the menu code assuming
a void pointer is the same size as an int pointer, which
obviously it isn't on a 64bit cpu.

I'm working on the menu code atm so I'll see about fixing
these and the other problems listed there.

I can't compile for a 64bit cpu (I'm on WIN32 using the free
vc++ compiler) so someone else will have to do that.

#2 Updated by axodious almost 20 years ago

Logged In: YES
user_id=1192077

If you need someone to test compile on a 64bit cpu I'm on Fedora Core 3
X86_64. I can try compiling it if you need.

#3 Updated by scen about 17 years ago

Logged In: YES
user_id=1570776
Originator: NO

Good news: i've just compiled DENG from SVN (rev.5043) and IT WORKS on my AMD64 Linux box! 8)

It builds fine and starts fine also. There are some other errors, but i think they're related to the natural instability of SVN code.

Keep in mind this report, and contact me if you need some test on Linux AMD64 ( )

#4 Updated by skyjake over 15 years ago

(originally posted by anonymous SF.net user)

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

Also available in: Atom PDF