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 > Developer Center > Some help with Universal Binary compiling...

Some help with Universal Binary compiling...
Thread Tools
voiceofra
Forum Regular
Join Date: Feb 2007
Location: Scappoose OR, USA
Status: Offline
Reply With Quote
Mar 2, 2007, 11:36 PM
 
I have searched the forums and it may be my choice of search terms, but I didn't find anything helpful with my issue.
I need some pointers, tips whatever - even if it's "you're SOL, buddy".
I've successfully compiled from source, the latest version of Q, but only as an Intel build.
The source is here.
I'd like to compile a UB, but am running in to a problem that I can't seem to resolve.
Namely, the PPC binary won't compile.
I'm working on a MB with Tiger and the latest version of X Code (2.4.1).
When I attempt run the PPC build script with gcc 4.0, I get the following output:
ERROR: "gcc-3.3" either does not exist or does not work
Makefile:3: config-host.mak: No such file or directory
make: *** No rule to make target `config-host.mak'. Stop.
Makefile:1: ../../tmp/qemu/config-host.mak: No such file or directory
make: *** No rule to make target `../../tmp/qemu/config-host.mak'. Stop.
Makefile:1: ../../tmp/qemu/config-host.mak: No such file or directory
make: *** No rule to make target `../../tmp/qemu/config-host.mak'. Stop.
I switch to gcc 3.3 using the command sudo gcc_select 3.3 and get this:
Could not find a working compiler
make: `libtransmission.a' is up to date.
patching file Makefile.target
patching file pc.c
Hunk #1 succeeded at 188 (offset -4 lines).
patching file block_int.h
Hunk #1 succeeded at 87 (offset 36 lines).
patching file block.c
ERROR: "gcc-3.3" either does not exist or does not work
Makefile:3: config-host.mak: No such file or directory
make: *** No rule to make target `config-host.mak'. Stop.
Makefile:1: ../../tmp/qemu/config-host.mak: No such file or directory
make: *** No rule to make target `../../tmp/qemu/config-host.mak'. Stop.
Makefile:1: ../../tmp/qemu/config-host.mak: No such file or directory
make: *** No rule to make target `../../tmp/qemu/config-host.mak'. Stop.
Do I need a different gcc (say from fink or darwin/mac ports)?
While I'm very comfortable with a CLI and compiling from source (can you say "slackware or gentoo linux"?), editing config files, etc. my actual coding skills are zilch to "hello world".

Am I stuck with an Intel only build, or do any code monsters have any suggestions?
     
smitty825
Forum Regular
Join Date: Sep 2003
Location: San Diego
Status: Offline
Reply With Quote
Mar 3, 2007, 12:38 PM
 
I don't know if this will help you or not...but,

It's my understanding that Apple has only shipped cross compilation support with GCC4. GCC3.3 (as shipped from Apple) is not able to compile for both PPC & Intel.

So, to compile your project as a universal binary, you'll probably have to edit one of the makefiles to use GCC 4.0. (There is a good chance you'll run into other issues compiling when you do that, though)

Granted, this is from a guy still on a 3.5 year old Powerbook G4...you YMMV!
     
   
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 07:27 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,