Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Alternative Operating Systems > Compiling PearPC on OSX Tiger X86

Compiling PearPC on OSX Tiger X86
Thread Tools
Fresh-Faced Recruit
Join Date: Feb 2006
Status: Offline
Reply With Quote
Feb 8, 2006, 11:26 PM
 
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
     
Fresh-Faced Recruit
Join Date: Feb 2006
Status: Offline
Reply With Quote
Feb 28, 2006, 06:05 PM
 
Hello

Did you find any solution to this?
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Feb 28, 2006, 07:43 PM
 
Since it wouldn't make sense to use PearPC to run OS X apps, I'm guessing that you're trying to build PearPC so you can install OS 9 in it. If my guess is correct, you might be interested in SheepShaver instead - I think it should be a lot faster, and you should be able to get a pre-built binary. It's kind of a pain to set up, requiring you to edit config files by hand and pull a ROM file out of one of the Apple ROM updates, but if you can get past those steps, it'll probably be a better solution than PearPC.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
iNic69  (op)
Fresh-Faced Recruit
Join Date: Feb 2006
Status: Offline
Reply With Quote
Feb 28, 2006, 10:26 PM
 
Hmmm,, well like I said I am not a programmer...
wish I knew more... I was hoping to get some help here... :-)
I do have Sheepshaver 2.3 Universal to run OS 9, actually I did try
it with my OS 8.6 - I don't pirate OSes, btw, just in case Apple lawyers
were around, all the software I use IS LEGAL - and YES, OS 8.6 is NOT
installed on any other Mac, HA! I even bought WinXP for experimenting
with Q and qemu, lots of fun!
going back to the topic, I would want to have PearPC Universal to see
Panther running on a Core Duo with 2GB of RAM - I've got two, not one,
legal licences of Panther :-) Why? HA! For fun! would be much easier -
and faster - to turn on one of the PowerPC MACs that I have around the house,
but that would not be fun... I admire so much the efforts of all these people
who offer their talents to the community!! It is so great!!
Btw, I've got PearPC running under Wine under Tiger, I do think it is HIGHLY
unstable though, it's not for primetime.. :-)
And - I do actually use the Mac for computer art and graphics, ohh yeah I am good
at something at least! ;-)
cheers!
     
Fresh-Faced Recruit
Join Date: Feb 2006
Status: Offline
Reply With Quote
Mar 1, 2006, 03:50 PM
 
Originally Posted by CharlesS
Since it wouldn't make sense to use PearPC to run OS X apps ...
Well you are wrong here.
Of course it makes sence, sometimes
I am a developer and I would like to test universal binaries under a ppc architecture, and I would like to have a single working environment, instead of going to&forth my mac mini.

Anyway, I contacted the pearpc-devel list and the people there were very helpful, although for the time being there is no immediate solution.
     
iNic69  (op)
Fresh-Faced Recruit
Join Date: Feb 2006
Status: Offline
Reply With Quote
Mar 1, 2006, 04:44 PM
 
Thanks! Please keep us posted..
and let me know if I can be of any help
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Mar 1, 2006, 05:44 PM
 
Originally Posted by teras
Well you are wrong here.
Of course it makes sence, sometimes
I am a developer and I would like to test universal binaries under a ppc architecture, and I would like to have a single working environment, instead of going to&forth my mac mini.

Anyway, I contacted the pearpc-devel list and the people there were very helpful, although for the time being there is no immediate solution.
There's no substitute for trying it on the real thing, I'm afraid...

I have learned this the hard way myself. Pacifist 1.6.3 has a few issues when run inside Rosetta, because Rosetta's emulation isn't 100% perfect...

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Fresh-Faced Recruit
Join Date: Feb 2006
Status: Offline
Reply With Quote
Mar 3, 2006, 01:41 PM
 
They are doing some foundamental changes in the used assembler.
Just give it a try a couple of days later...
     
Fresh-Faced Recruit
Join Date: Aug 2006
Status: Offline
Reply With Quote
Aug 9, 2006, 08:25 PM
 
It's been a while since I did this but, before I discovered SheepShaver I was tring to get PearPC to run OS9 under OSX. I don't have the cash for a fancy new Intel Mac, so I was just planning for the future. I actually got it to complie and launch (though it wouldn't accept any input) and the trick was using xterm with apple's x11 app. After banging my head into the wall for a while I realized that this is an x11 app so I should try to compile in x11, and it worked. Hope this helps.
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Aug 10, 2006, 08:19 AM
 
This is not an Applications issue, it's an alternative OS issue. Moving to Alternative Operating Systems forum...
Glenn -----
OTR/L, MOT, Tx
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:44 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2