PearPC Fails To Compile With Error 2 On Linux Mint 19.2

[ARCHIVED] About PearPC, a mostly obsolete PPC Mac emulator for Windows and Linux to run MacOS X 10.1 up to 10.4. Using QEMU is now recommended.

Moderators: Cat_7, Ronald P. Regensburg

Locked
SC13NC3F1CT10N
Space Cadet
Posts: 1
Joined: Fri Jan 29, 2021 5:39 pm

PearPC Fails To Compile With Error 2 On Linux Mint 19.2

Post by SC13NC3F1CT10N »

I ran the following script in my folder containing PearPC 0.5.0 on Linux Mint 19.2 (my home folder is named "fictionalscience" as it is my username):

Code: Select all

./configure && make
I got the following error with the "make" command:

Code: Select all

ppc_alu.cc: In function ‘void ppc_opc_addox(PPC_CPU_State&)’:
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:158:2: note: in expansion of macro ‘PPC_ALU_ERR’
  PPC_ALU_ERR("addox unimplemented\n");
  ^~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_addcox(PPC_CPU_State&)’:
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:216:2: note: in expansion of macro ‘PPC_ALU_ERR’
  PPC_ALU_ERR("addcox unimplemented\n");
  ^~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_addeox(PPC_CPU_State&)’:
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:279:2: note: in expansion of macro ‘PPC_ALU_ERR’
  PPC_ALU_ERR("addeox unimplemented\n");
  ^~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_addmeox(PPC_CPU_State&)’:
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:473:2: note: in expansion of macro ‘PPC_ALU_ERR’
  PPC_ALU_ERR("addmeox unimplemented\n");
  ^~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_addzeox(PPC_CPU_State&)’:
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:528:2: note: in expansion of macro ‘PPC_ALU_ERR’
  PPC_ALU_ERR("addzeox unimplemented\n");
  ^~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_divwx(PPC_CPU_State&)’:
../../debug/tracers.h:52:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [21]’, ‘long unsigned int’ arguments
 #define PPC_ALU_WARN(msg...) ht_printf("[CPU/ALU] <Warning> "msg)
                                        ^
ppc_alu.cc:1229:3: note: in expansion of macro ‘PPC_ALU_WARN’
   PPC_ALU_WARN("division by zero @%08x\n", aCPU.pc);
   ^~~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_divwox(PPC_CPU_State&)’:
../../debug/tracers.h:52:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [21]’, ‘long unsigned int’ arguments
 #define PPC_ALU_WARN(msg...) ht_printf("[CPU/ALU] <Warning> "msg)
                                        ^
ppc_alu.cc:1270:3: note: in expansion of macro ‘PPC_ALU_WARN’
   PPC_ALU_WARN("division by zero\n");
   ^~~~~~~~~~~~
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:1280:2: note: in expansion of macro ‘PPC_ALU_ERR’
  PPC_ALU_ERR("divwox unimplemented\n");
  ^~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_divwux(PPC_CPU_State&)’:
../../debug/tracers.h:52:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [21]’, ‘long unsigned int’ arguments
 #define PPC_ALU_WARN(msg...) ht_printf("[CPU/ALU] <Warning> "msg)
                                        ^
ppc_alu.cc:1291:3: note: in expansion of macro ‘PPC_ALU_WARN’
   PPC_ALU_WARN("division by zero @%08x\n", aCPU.pc);
   ^~~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_divwuox(PPC_CPU_State&)’:
../../debug/tracers.h:52:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [21]’, ‘long unsigned int’ arguments
 #define PPC_ALU_WARN(msg...) ht_printf("[CPU/ALU] <Warning> "msg)
                                        ^
ppc_alu.cc:1330:3: note: in expansion of macro ‘PPC_ALU_WARN’
   PPC_ALU_WARN("division by zero @%08x\n", aCPU.pc);
   ^~~~~~~~~~~~
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:1338:2: note: in expansion of macro ‘PPC_ALU_ERR’
  PPC_ALU_ERR("divwuox unimplemented\n");
  ^~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_mullwx(PPC_CPU_State&)’:
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:1572:3: note: in expansion of macro ‘PPC_ALU_ERR’
   PPC_ALU_ERR("mullwox unimplemented\n");
   ^~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_negox(PPC_CPU_State&)’:
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:1713:2: note: in expansion of macro ‘PPC_ALU_ERR’
  PPC_ALU_ERR("negox unimplemented\n");
  ^~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_subfox(PPC_CPU_State&)’:
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:2468:2: note: in expansion of macro ‘PPC_ALU_ERR’
  PPC_ALU_ERR("subfox unimplemented\n");
  ^~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_subfcox(PPC_CPU_State&)’:
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:2536:2: note: in expansion of macro ‘PPC_ALU_ERR’
  PPC_ALU_ERR("subfcox unimplemented\n");
  ^~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_subfeox(PPC_CPU_State&)’:
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:2608:2: note: in expansion of macro ‘PPC_ALU_ERR’
  PPC_ALU_ERR("subfeox unimplemented\n");
  ^~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_subfmeox(PPC_CPU_State&)’:
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:2685:2: note: in expansion of macro ‘PPC_ALU_ERR’
  PPC_ALU_ERR("subfmeox unimplemented\n");
  ^~~~~~~~~~~
ppc_alu.cc: In function ‘void ppc_opc_subfzeox(PPC_CPU_State&)’:
../../debug/tracers.h:75:40: error: unable to find string literal operator ‘operator""msg’ with ‘const char [19]’, ‘long unsigned int’ arguments
 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
                                        ^
ppc_alu.cc:2744:2: note: in expansion of macro ‘PPC_ALU_ERR’
  PPC_ALU_ERR("subfzeox unimplemented\n");
  ^~~~~~~~~~~
Makefile:296: recipe for target 'ppc_alu.o' failed
make[4]: *** [ppc_alu.o] Error 1
make[4]: Leaving directory '/home/fictionalscience/pearpc-0.5/src/cpu/cpu_jitc_x86_64'
Makefile:268: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/fictionalscience/pearpc-0.5/src/cpu'
Makefile:396: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/fictionalscience/pearpc-0.5/src'
Makefile:300: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/fictionalscience/pearpc-0.5'
Makefile:238: recipe for target 'all' failed
make: *** [all] Error 2
Here is some system info from the command "neofetch":

Code: Select all


OS: Linux Mint 19.2 Tina x86_64 
Host: MacPro3,1 1.0 
Kernel: 4.15.0-135-generic 
Uptime: 5 hours, 5 mins 
Packages: 2554 
Shell: bash 4.4.20 
Resolution: 1920x1080 
DE: Cinnamon 4.2.4 
WM: Mutter (Muffin) 
WM Theme: Mint-Y-Dark (Mint-Y) 
Theme: Mint-Y [GTK2/3] 
Icons: Mint-Y [GTK2/3] 
Terminal: gnome-terminal 
CPU: Intel Xeon E5462 (8) @ 2.800GHz 
GPU: NVIDIA GeForce 8800 GT 
Memory: 2034MiB / 3938MiB                                                     
Yes, "build-essential", "gcc", and "g++" are installed. The gcc version is 7.5.0 and the g++ version is also 7.5.0.
Can anyone help resolve this? It would be greatly appreciated.
Locked