Pear Pc compiling error

Questions about applications and software
Forum rules
Before you post please read this

Pear Pc compiling error

Postby torque154 on Fri Feb 20, 2009 3:53 am

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
torque154
 

Linux Mint is funded by ads and donations.
 

Re: Pear Pc compiling error

Postby Husse on Sun Feb 22, 2009 5:28 pm

First off - have you installed build-essential?
Code: Select all
apt install build-essential
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19714
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Pear Pc compiling error

Postby torque154 on Mon Feb 23, 2009 1:03 pm

yeah, I have. one of the first things I install.
torque154
 

Re: Pear Pc compiling error

Postby Husse on Mon Feb 23, 2009 1:46 pm

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 :)
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19714
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Pear Pc compiling error

Postby torque154 on Mon Feb 23, 2009 2:10 pm

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

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);
torque154
 


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 23 guests