Discussion:
[Pearpc-devel] typo bugs in PearPC 0.4
JD
2010-03-22 06:41:57 UTC
Permalink
if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I ../.. -Wundef -Wall
-Woverloaded-virtual -fsigned-char -O2 -fomit-frame-pointer
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -MT ppc_alu.o -MD -MP
-MF ".deps/ppc_alu.Tpo" -c -o ppc_alu.o ppc_alu.cc; \
then mv -f ".deps/ppc_alu.Tpo" ".deps/ppc_alu.Po"; else rm -f
".deps/ppc_alu.Tpo"; exit 1; fi
In file included from jitc.h:25,
from ppc_alu.cc:29:
x86asm.h:387: error: redefinition of 'JitcFloatReg hint1'
x86asm.h:387: error: 'JitcFloatReg hint1' previously declared here
In file included from jitc.h:25,
from ppc_alu.cc:29:
x86asm.h:388: error: redefinition of 'JitcFloatReg hint1'
x86asm.h:388: error: 'JitcFloatReg hint1' previously declared here

So, I modified file src/cpu/cpu_jitc_x86/x86asm.h, please change these
2 lines, by changing the second occurrence of
hint1 to hint2
---------------------------------------------------

387: JitcFloatReg FASTCALL jitcGetClientFloatRegister(int creg,
JitcFloatReg hint1=JITC_FLOAT_REG_NONE, JitcFloatReg
hint2=JITC_FLOAT_REG_NONE);
388: JitcFloatReg FASTCALL jitcGetClientFloatRegisterUnmapped(int
creg, JitcFloatReg hint1=JITC_FLOAT_REG_NONE, JitcFloatReg
hint2=JITC_FLOAT_REG_NONE);


=====================
./src/system/file.cc

file.cc: In function 'int sys_basename(char*, const char*)':
file.cc:130: error: invalid conversion from 'const char*' to 'char*'
file.cc:131: error: invalid conversion from 'const char*' to 'char*'
file.cc: In function 'int sys_dirname(char*, const char*)':
file.cc:146: error: invalid conversion from 'const char*' to 'char*'
file.cc:147: error: invalid conversion from 'const char*' to 'char*'
file.cc: In function 'char* sys_filename_suffix(const char*)':
file.cc:274: error: invalid conversion from 'const char*' to 'char*'

So, I modified lines 130-131, 146-147 , 274 as follows:
130 char *slash1 = strrchr(*(char *)*filename, '/');
131 char *slash2 = strrchr(*(char *)*filename, '\\');
....
146 char *slash1 = strrchr(*(char *)*filename, '/');
147 char *slash2 = strrchr(*(char *)*filename, '\\');
....
274 char *p = s ? strrchr(*(char *)*s, '.') : NULL;

and that let me build the emulator to the finish.

Loading...