First post, by vanfanel
- Rank
- Newbie
Hello there,
I can't, for the love of me, generate a 32bits executable on osx (Snow Leopard, 10.6.8 ). This is what I'm trying. First, the exports:
export CFLAGS='-I/usr/local/include -O2 -arch i386'
export CXXFLAGS=$CFLAGS
export CPPFLAGS=$CXXFLAGS
export LDFLAGS='-L/usr/local/lib -O2 -arch i386'
export CC='/usr/bin/gcc-4.2 -arch i386'
export CXX='/usr/bin/g++-4.2 -arch i386'
export GCOV='/usr/bin/gcov-4.2 -arch i386'
(yes, libsdl was installed from sources in /usr/local, no macports used)
then I run ./autogen.sh in the sources root directory.
Next I run ./configure. No errors at all. But I get the following errors during the compilation process:
In file included from core_dyn_x86.cpp:181:
core_dyn_x86/risc_x86.h: In member function ‘void GenReg::Load(DynReg*, bool)’:
core_dyn_x86/risc_x86.h:60: 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:68: 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:310: 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:324: 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:398: 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:486: 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:579: 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:602: 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:871: error: cast from ‘void*’ to ‘Bit32u’ loses precision
core_dyn_x86/risc_x86.h:871: 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:943: error: cast from ‘bool (*)(PhysPt, Bit8u)’ to ‘Bit32u’ loses precision
core_dyn_x86/risc_x86.h:943: error: cast from ‘Bit8u*’ to ‘Bit32u’ loses precision
core_dyn_x86/risc_x86.h:944: error: cast from ‘bool (*)(PhysPt, Bit16u)’ 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, Bit32u)’ 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: In function ‘void gen_jmp_ptr(void*, Bits)’:
core_dyn_x86/risc_x86.h:999: 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:1030: 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:1048: error: cast from ‘Bitu*’ to ‘Bit32u’ loses precision
In file included from core_dyn_x86.cpp:234:
core_dyn_x86/decoder.h: In function ‘void dyn_fill_blocks()’:
core_dyn_x86/decoder.h:406: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:409: 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:491: 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:509: error: cast from ‘Bit8u**’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:521: error: cast from ‘bool (*)(PhysPt)’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:521: error: cast from ‘Bit8u*’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:529: 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:547: error: cast from ‘Bit8u**’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:559: error: cast from ‘bool (*)(PhysPt)’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:559: error: cast from ‘Bit8u*’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:567: 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:602: error: cast from ‘Bit8u**’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:617: error: cast from ‘bool (*)(PhysPt)’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:617: 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:648: error: cast from ‘Bit8u**’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:663: error: cast from ‘bool (*)(PhysPt)’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:663: 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:707: 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:721: error: cast from ‘Bit8u**’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:737: error: cast from ‘bool (*)(PhysPt, Bit8u)’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:737: 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:760: error: cast from ‘Bit8u**’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:776: error: cast from ‘bool (*)(PhysPt, Bit8u)’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:776: 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:804: error: cast from ‘Bit8u**’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:820: error: cast from ‘bool (*)(PhysPt, Bit32u)’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:820: 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:853: error: cast from ‘Bit8u**’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:869: error: cast from ‘bool (*)(PhysPt, Bit32u)’ to ‘Bit32u’ loses precision
core_dyn_x86/decoder.h:869: error: cast from ‘Bit8u*’ to ‘Bit32u’ loses precision
In file included from core_dyn_x86/decoder.h:1974,
from core_dyn_x86.cpp:234:
core_dyn_x86/dyn_fpu_dh.h: In function ‘void dh_fpu_esc0()’:
core_dyn_x86/dyn_fpu_dh.h:161: 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:179: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:187: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:193: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:200: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:206: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:211: 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:234: 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:264: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘Bitu’
core_dyn_x86/dyn_fpu_dh.h:264: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘Bitu’
core_dyn_x86/dyn_fpu_dh.h:280: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:288: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:294: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:301: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:306: 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:327: 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:345: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:353: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:359: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:366: error: cast from ‘Bit8u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:371: error: cast from ‘Bit8u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:379: 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:400: 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:428: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:449: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:457: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:463: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:470: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:476: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:481: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
core_dyn_x86/dyn_fpu_dh.h:487: error: cast from ‘Bit32u*’ to ‘Bit32u’ loses precision
In file included from core_dyn_x86/decoder.h:1988,
from core_dyn_x86.cpp:234:
core_dyn_x86/dyn_fpu.h: In function ‘void dyn_fpu_esc3()’:
core_dyn_x86/dyn_fpu.h:382: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘Bitu’
core_dyn_x86/dyn_fpu.h:382: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘Bitu’
In file included from core_dyn_x86.cpp:234:
core_dyn_x86/decoder.h: In function ‘CacheBlock* CreateCacheBlock(CodePageHandler*, PhysPt, Bitu)’:
core_dyn_x86/decoder.h:2005: 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
can you lend a hand, please?