• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating universal binary on PowerPC with 10.4.11?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating universal binary on PowerPC with 10.4.11?


  • Subject: Re: Creating universal binary on PowerPC with 10.4.11?
  • From: Andre-John Mas <email@hidden>
  • Date: Fri, 18 Jan 2008 00:36:03 -0500


On 17-Jan-08, at 22:34 , Terry Lambert wrote:

On Jan 17, 2008, at 6:34 PM, Andre-John Mas wrote:
Hi,

I recently updated a configure script for a project I am working on and thought that simply ensuring that the availability of the 10.4u SDK was enough to be able to build a universal binary. When I run this make file resulting from the configure script I get told that:

/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning fat file: / usr/lib/libSystem.dylib does not contain an architecture that matches the specified -arch flag: i386 (file ignored)

Is it not possible to build a universal binary on a PowerPC based system?

If it is using the system library instead of the SDK library, you have improperly specified your arguments. Most likely you have installed new tools on an old system which predates Intel support, and failed to use the appropriate argument to the "-syslibroot" directive to the linker.

Should I be using -isysroot or -syslibroot?

The Mac specific sections looks like:


AC_PATH_PROG(XCODE_SELECT,xcode-select,no)

further on:

#fix_mac_groups
#fix_parameters $JPATH/lib/javax.comm.properties
if test $XCODE_SELECT = no; then
SDKPATH="/Developer"
else
SDKPATH=`$XCODE_SELECT -print-path`
fi
SDK="$SDKPATH/SDKs/MacOSX10.4u.sdk"
if test "x$enable_universallib" != xno; then
if test -d "/Developer/SDKs/MacOSX10.4u.sdk"; then
echo "library os.arch... universal (i386 ppc)"
echo "SDK: $SDK"
CFLAGS="$CFLAGS -O -g -mmacosx-version- min=10.4 -isysroot $SDK -arch i386 -arch ppc"
LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
else
echo "Warning: no universal SDK, will not build universal"
echo "library os.arch... "${OS_ARCH}
fi
else
echo "User disabled building of universal library"
echo "library os.arch... "${OS_ARCH}
fi


GLIBTOOL="\$(SHELL) glibtool"
LINK="cc $LDFLAGS -bundle -framework CoreFoundation - framework IOKit -o librxtx\$*.jnilib "
OBJECT_EXTENSION="o"
LIB_EXTENSION="jnilib"


Does this look right? Note this build find with Intel/10.5.1 but fails with PPC/10.4.11

Andre




_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Creating universal binary on PowerPC with 10.4.11?
      • From: Andre-John Mas <email@hidden>
References: 
 >Creating universal binary on PowerPC with 10.4.11? (From: Andre-John Mas <email@hidden>)
 >Re: Creating universal binary on PowerPC with 10.4.11? (From: Terry Lambert <email@hidden>)

  • Prev by Date: Re: Creating universal binary on PowerPC with 10.4.11?
  • Next by Date: How to eject a USB Hard drive
  • Previous by thread: Re: Creating universal binary on PowerPC with 10.4.11?
  • Next by thread: Re: Creating universal binary on PowerPC with 10.4.11?
  • Index(es):
    • Date
    • Thread