I'm trying to install pearpc on linux mint 6 and I get this error when I make the file
/usr/bin/make all-recursive
make[1]: Entering directory `/home/milk-jug/pearpc'
Making all in doc
make[2]: Entering directory `/home/milk-jug/pearpc/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/milk-jug/pearpc/doc'
Making all in src
make[2]: Entering directory `/home/milk-jug/pearpc/src'
Making all in cpu
make[3]: Entering directory `/home/milk-jug/pearpc/src/cpu'
Making all in cpu_jitc_x86
make[4]: Entering directory `/home/milk-jug/pearpc/src/cpu/cpu_jitc_x86'
g++ -DHAVE_CONFIG_H -I. -I../../.. -I ../.. -Wundef -Wall -Woverloaded-virtual -fsigned-char -O3 -fomit-frame-pointer -g -fno-inline -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
In file included from jitc.h:25,
from ppc_alu.cc:29:
x86asm.h:368: error: multiple parameters named ‘hint1’
x86asm.h:369: error: multiple parameters named ‘hint1’
make[4]: *** [ppc_alu.o] Error 1
make[4]: Leaving directory `/home/milk-jug/pearpc/src/cpu/cpu_jitc_x86'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/milk-jug/pearpc/src/cpu'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/milk-jug/pearpc/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/milk-jug/pearpc'
make: *** [all] Error 2
I checked if I had g++ installed with the latest. I have 4.3 installed
Pear Pc compiling error
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Pear Pc compiling error
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Pear Pc compiling error
First off - have you installed build-essential?
Code: Select all
apt install build-essential
Re: Pear Pc compiling error
I always ask about build-essential as I have no way of knowing what you know
This seems to be the culprit
x86asm.h:369: error: multiple parameters named ‘hint1’
Time to go hunting for a hint
This seems to be the culprit
x86asm.h:369: error: multiple parameters named ‘hint1’
Time to go hunting for a hint
Re: Pear Pc compiling error
ah, yeah, you make a good point. I see where the mistake is now. however I do not know programming. just hate the thing so I don't know how to fix that file
here is the part where the error is occuring. in case you or someone knows how to fix it.
code from x86asm.h
here is the part where the error is occuring. in case you or someone knows how to fix it.
code from x86asm.h
Code: Select all
#define JITC_FLOAT_REG_NONE 0
NativeFloatReg FASTCALL jitcFloatRegisterToNative(JitcFloatReg r);
bool FASTCALL jitcFloatRegisterIsTOP(JitcFloatReg r);
JitcFloatReg FASTCALL jitcFloatRegisterXCHGToFront(JitcFloatReg r);
JitcFloatReg FASTCALL jitcFloatRegisterDirty(JitcFloatReg r);
void FASTCALL jitcFloatRegisterInvalidate(JitcFloatReg r);
JitcFloatReg FASTCALL jitcFloatRegisterDup(JitcFloatReg r, JitcFloatReg hint=JITC_FLOAT_REG_NONE);
void FASTCALL jitcFloatRegisterClobberAll();
void FASTCALL jitcFloatRegisterStoreAndPopTOP(JitcFloatReg r);
void FASTCALL jitcPopFloatStack(JitcFloatReg hint1, JitcFloatReg hint2);
void FASTCALL jitcClobberClientRegisterForFloat(int creg);
void FASTCALL jitcInvalidateClientRegisterForFloat(int creg);
JitcFloatReg FASTCALL jitcGetClientFloatRegisterMapping(int creg);
JitcFloatReg FASTCALL jitcGetClientFloatRegister(int creg, JitcFloatReg hint1=JITC_FLOAT_REG_NONE, JitcFloatReg hint1=JITC_FLOAT_REG_NONE);
JitcFloatReg FASTCALL jitcGetClientFloatRegisterUnmapped(int creg, JitcFloatReg hint1=JITC_FLOAT_REG_NONE, JitcFloatReg hint1=JITC_FLOAT_REG_NONE);
JitcFloatReg FASTCALL jitcMapClientFloatRegisterDirty(int creg, JitcFloatReg freg=JITC_FLOAT_REG_NONE);