Hello folks!
I am trying to compile pearpc under Tiger on my new iMac Core Duo.
I am not a programmer, let's say that I used to write C code a LONG time ago...
Anyhow, I've modified the configure file to get a successful configuration.
Here is the configure summary:
./configure successful.
================================================== =
Configuration summary
================================================== =
cpu emulation method: cpu_jitc_x86
compiled for architecture: x86
compiled for OS-API: posix
compiled for UI system: x11
enable debug: no
enable profiling: no
make release build: yes
omit frame pointer: yes
final C compiler flags: -Wundef -Wall -fsigned-char -O2 -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pipe
final C++ compiler flags: -Wundef -Wall -Woverloaded-virtual -fsigned-char -O2 -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pipe
final linker flags: -L/usr/X11R6/lib
final linker add: -lX11
================================================== =
Btw, I also changed in the configure file from NASM_OPTS="-f elf" to NASM_OPTS="-f macho".
is that correct?
When I run "make" the files compile, with several warnings.
When it comes to the linker, I guess, I get errors:
.....
g++ -Wundef -Wall -Woverloaded-virtual -fsigned-char -O2 -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -o ppc -L/usr/X11R6/lib main.o ppc_img.o ppc_font.o ppc_button_changecd.o configparser.o cpu/cpu_jitc_x86/libcpu.a io/graphic/libgraphic.a io/ide/libide.a system/ui/x11/libui.a debug/libdebug.a io/libio.a io/prom/libprom.a io/prom/fs/libfs.a io/prom/fs/hfs/libhfs.a io/prom/fs/hfsplus/libhfsplus.a io/pic/libpic.a io/pci/libpci.a io/macio/libmacio.a io/nvram/libnvram.a io/cuda/libcuda.a io/3c90x/lib3c90x.a io/rtl8139/librtl8139.a io/usb/libusb.a tools/libtools.a system/libsystem.a system/arch/x86/libsarch.a system/osapi/posix/libsosapi.a -lX11
/usr/bin/ld: Undefined symbols:
_ppc_cpu_atomic_raise_dec_exception
_ppc_start_jitc_asm
_ppc_no_fpu_exception_asm
_ppc_no_vec_exception_asm
_ppc_program_exception_asm
_ppc_dsi_exception_special_asm
_ppc_cpu_atomic_cancel_ext_exception
_ppc_cpu_atomic_raise_ext_exception
_ppc_mmu_tlb_invalidate_all_asm
_ppc_opc_lswi_asm
_ppc_opc_stswi_asm
_ppc_read_effective_byte_asm
_ppc_read_effective_dword_asm
_ppc_read_effective_half_s_asm
_ppc_read_effective_half_z_asm
_ppc_read_effective_qword_asm
_ppc_read_effective_word_asm
_ppc_write_effective_byte_asm
_ppc_write_effective_dword_asm
_ppc_write_effective_half_asm
_ppc_write_effective_qword_asm
_ppc_write_effective_word_asm
_ppc_flush_flags_asm
_ppc_heartbeat_ext_rel_asm
_ppc_mmu_tlb_invalidate_entry_asm
_ppc_new_pc_asm
_ppc_new_pc_rel_asm
_ppc_new_pc_this_page_asm
_ppc_opc_icbi_asm
_ppc_sc_exception_asm
_ppc_set_msr_asm
_ppc_cpuid_asm
_x86_convert_2be555_to_2le555
_x86_convert_2be555_to_2le565
_x86_convert_2be555_to_4le888
_x86_convert_4be888_to_4le888
collect2: ld returned 1 exit status
make[3]: *** [ppc] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Any hint? What am I doing wrong? (I guess how many
things am I doing wrong?
My guess is that the output of the nasm is somehow wrong,
or I am not passing some linker parameters that are needed.
The .o and .a files from the .asm sources are generated (checked that already).
I can't wait to see PearPC running on Mac OSX X86!!
PLEASE HELP ME!!
Thanks,
iNic69