Panayotis Katsaloulis
2006-03-01 13:21:01 UTC
Hello
I was trying to compile pearpc under the intel imac, but this is not possible.
It looks like a linking problem, which is really strange.
configuration results:
================================================================================
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
================================================================================
Here is where compilation breaks:
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
Even if I changer the CPU type to "generic", compilation still breaks
with this information:
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_generic/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:
_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
--
Δεν περιμένω τίποτ�
I was trying to compile pearpc under the intel imac, but this is not possible.
It looks like a linking problem, which is really strange.
configuration results:
================================================================================
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
================================================================================
Here is where compilation breaks:
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
Even if I changer the CPU type to "generic", compilation still breaks
with this information:
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_generic/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:
_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
--
Δεν περιμένω τίποτ�