Hi,

Dosbox fails to build for me (on 64-bit), apparently because the
precision of various integer types has changed.  As usual advice is
appreciated.

g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I/sw64/include 
-I/sw64/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE  -fast  -MT core_dyn_x86.o 
-MD -MP -MF .deps/core_dyn_x86.Tpo -c -o core_dyn_x86.o core_dyn_x86.cpp
core_dyn_x86/cache.h: In function 'void cache_init(bool)':
core_dyn_x86/cache.h:470: error: cast from 'Bit8u*' to 'int' loses precision
core_dyn_x86/risc_x86.h: In member function 'void GenReg::Load(DynReg*, bool)':
core_dyn_x86/risc_x86.h:61: error: cast from 'void*' to 'Bit32u' loses precision
core_dyn_x86/risc_x86.h: In member function 'void GenReg::Save()':
core_dyn_x86/risc_x86.h:69: error: cast from 'void*' to 'Bit32u' loses precision
core_dyn_x86/risc_x86.h: In function 'void gen_load_host(void*, DynReg*, Bitu)':
core_dyn_x86/risc_x86.h:311: error: cast from 'void*' to 'Bit32u' loses 
precision
core_dyn_x86/risc_x86.h: In function 'void gen_mov_host(void*, DynReg*, Bitu, 
Bit8u)':
core_dyn_x86/risc_x86.h:325: error: cast from 'void*' to 'Bit32u' loses 
precision
core_dyn_x86/risc_x86.h: In function 'void gen_dop_byte_imm_mem(DualOps, 
DynReg*, Bit8u, void*)':
core_dyn_x86/risc_x86.h:399: error: cast from 'void*' to 'Bit32u' loses 
precision
core_dyn_x86/risc_x86.h: In function 'void gen_lea_imm_mem(DynReg*, DynReg*, 
void*)':
core_dyn_x86/risc_x86.h:487: error: cast from 'void*' to 'Bit32u' loses 
precision
core_dyn_x86/risc_x86.h: In function 'void gen_dop_word_imm_mem(DualOps, bool, 
DynReg*, void*)':
core_dyn_x86/risc_x86.h:580: error: cast from 'void*' to 'Bit32u' loses 
precision
core_dyn_x86/risc_x86.h: In function 'void gen_dop_word_var(DualOps, bool, 
DynReg*, void*)':
core_dyn_x86/risc_x86.h:603: error: cast from 'void*' to 'Bit32u' loses 
precision
core_dyn_x86/risc_x86.h: In function 'void gen_call_function(void*, const 
char*, ...)':
core_dyn_x86/risc_x86.h:872: error: cast from 'void*' to 'Bit32u' loses 
precision
core_dyn_x86/risc_x86.h:872: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/risc_x86.h: In function 'void gen_call_write(DynReg*, Bit32u, 
Bitu)':
core_dyn_x86/risc_x86.h:944: error: cast from 'bool (*)(PhysPt, Bit8u)' to 
'Bit32u' loses precision
core_dyn_x86/risc_x86.h:944: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/risc_x86.h:945: error: cast from 'bool (*)(PhysPt, Bit16u)' to 
'Bit32u' loses precision
core_dyn_x86/risc_x86.h:945: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/risc_x86.h:946: error: cast from 'bool (*)(PhysPt, Bit32u)' to 
'Bit32u' loses precision
core_dyn_x86/risc_x86.h:946: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/risc_x86.h: In function 'void gen_jmp_ptr(void*, Bits)':
core_dyn_x86/risc_x86.h:1000: error: cast from 'void*' to 'Bit32u' loses 
precision
core_dyn_x86/risc_x86.h: In function 'void gen_save_host_direct(void*, Bits)':
core_dyn_x86/risc_x86.h:1031: error: cast from 'void*' to 'Bit32u' loses 
precision
core_dyn_x86/risc_x86.h: In function 'void gen_return_fast(BlockReturn, bool)':
core_dyn_x86/risc_x86.h:1049: error: cast from 'Bitu*' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h: In function 'void dyn_fill_blocks()':
core_dyn_x86/decoder.h:383: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h:386: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h: In function 'void dyn_read_intro(DynReg*, bool)':
core_dyn_x86/decoder.h:468: error: cast from 'void*' to 'Bit32u' loses precision
core_dyn_x86/decoder.h: In function 'void dyn_read_byte(DynReg*, DynReg*, 
Bitu)':
core_dyn_x86/decoder.h:486: error: cast from 'Bit8u**' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h:498: error: cast from 'bool (*)(PhysPt)' to 'Bit32u' 
loses precision
core_dyn_x86/decoder.h:498: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h:506: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h: In function 'void dyn_read_byte_release(DynReg*, 
DynReg*, Bitu)':
core_dyn_x86/decoder.h:524: error: cast from 'Bit8u**' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h:536: error: cast from 'bool (*)(PhysPt)' to 'Bit32u' 
loses precision
core_dyn_x86/decoder.h:536: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h:544: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h: In function 'void dyn_read_word(DynReg*, DynReg*, 
bool)':
core_dyn_x86/decoder.h:579: error: cast from 'Bit8u**' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h:594: error: cast from 'bool (*)(PhysPt)' to 'Bit32u' 
loses precision
core_dyn_x86/decoder.h:594: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h: In function 'void dyn_read_word_release(DynReg*, 
DynReg*, bool)':
core_dyn_x86/decoder.h:625: error: cast from 'Bit8u**' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h:640: error: cast from 'bool (*)(PhysPt)' to 'Bit32u' 
loses precision
core_dyn_x86/decoder.h:640: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h: In function 'void dyn_write_intro(DynReg*, bool)':
core_dyn_x86/decoder.h:684: error: cast from 'void*' to 'Bit32u' loses precision
core_dyn_x86/decoder.h: In function 'void dyn_write_byte(DynReg*, DynReg*, 
bool)':
core_dyn_x86/decoder.h:698: error: cast from 'Bit8u**' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h:714: error: cast from 'bool (*)(PhysPt, Bit8u)' to 
'Bit32u' loses precision
core_dyn_x86/decoder.h:714: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h: In function 'void dyn_write_byte_release(DynReg*, 
DynReg*, bool)':
core_dyn_x86/decoder.h:737: error: cast from 'Bit8u**' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h:753: error: cast from 'bool (*)(PhysPt, Bit8u)' to 
'Bit32u' loses precision
core_dyn_x86/decoder.h:753: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h: In function 'void dyn_write_word(DynReg*, DynReg*, 
bool)':
core_dyn_x86/decoder.h:781: error: cast from 'Bit8u**' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h:797: error: cast from 'bool (*)(PhysPt, Bit32u)' to 
'Bit32u' loses precision
core_dyn_x86/decoder.h:797: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h: In function 'void dyn_write_word_release(DynReg*, 
DynReg*, bool)':
core_dyn_x86/decoder.h:830: error: cast from 'Bit8u**' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h:846: error: cast from 'bool (*)(PhysPt, Bit32u)' to 
'Bit32u' loses precision
core_dyn_x86/decoder.h:846: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h: In function 'void dh_fpu_esc0()':
core_dyn_x86/dyn_fpu_dh.h:162: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h: In function 'void dh_fpu_esc1()':
core_dyn_x86/dyn_fpu_dh.h:180: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:188: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:194: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:201: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:207: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:212: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h: In function 'void dh_fpu_esc2()':
core_dyn_x86/dyn_fpu_dh.h:235: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h: In function 'void dh_fpu_esc3()':
core_dyn_x86/dyn_fpu_dh.h:281: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:289: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:295: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:302: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:307: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h: In function 'void dh_fpu_esc4()':
core_dyn_x86/dyn_fpu_dh.h:328: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h: In function 'void dh_fpu_esc5()':
core_dyn_x86/dyn_fpu_dh.h:346: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:354: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:360: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:367: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:372: error: cast from 'Bit8u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:380: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h: In function 'void dh_fpu_esc6()':
core_dyn_x86/dyn_fpu_dh.h:401: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h: In function 'void dh_fpu_esc7()':
core_dyn_x86/dyn_fpu_dh.h:425: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:446: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:454: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:460: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:467: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:473: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:478: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/dyn_fpu_dh.h:484: error: cast from 'Bit32u*' to 'Bit32u' loses 
precision
core_dyn_x86/decoder.h: In function 'CacheBlock* 
CreateCacheBlock(CodePageHandler*, PhysPt, Bitu)':
core_dyn_x86/decoder.h:1982: error: cast from 'CacheBlock*' to 'Bit32u' loses 
precision
make[4]: *** [core_dyn_x86.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
### execution of /var/tmp/tmp.1.Gv3bar failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw64/bin/dpkg-lockwait -r fink-buildlock-dosbox-0.73-1

-- 
If it was so, it might be; and if it were so, it would be; but as
it isn't, it ain't.  That's logic.
    --Lewis Carroll, Through the Looking-Glass

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to