• 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
Problems compiling project with x86 .asm files as Universal Binary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems compiling project with x86 .asm files as Universal Binary


  • Subject: Problems compiling project with x86 .asm files as Universal Binary
  • From: "E. Wing" <email@hidden>
  • Date: Thu, 19 Jan 2006 13:31:46 -0800

I'm trying to get a library compiled as a Universal Binary. The
library contains optimizations for MMX/SSE which are in separate .asm
files. I have added these files to my Xcode project. I have also found
the "use nasm to Process .asm Files" switch in Xcode and have enabled
it.

I have two separate problems. My first problem is that when compiling
the PowerPC side, /usr/libexec/gcc/darwin/ppc/as is trying to compile
the x86 .asm files which causes the compile to die. How can I instruct
Xcode to only process these files compiling for Intel? I thought about
defining -fno-asm for OTHER_CFLAGS_ppc, but this won't work
unfortunately because the common code base makes use of 'inline'.

My second problem is when I'm compiling on the Intel side, there is a
failure somewhere and I get the following error output:
{standard input}:22:Alignment too large: 15. assumed.
{standard input}:80:Alignment too large: 15. assumed.

When I select/highlight the lines in Xcode, it doesn't take me to the
location of the error as it usually does so I'm not sure what exactly
is failing. But I'm fairly confident that this is related to the
assembly files. But I'm a total noob to compiling assembly so I really
don't have a clue what this means or how to fix it. The library has an
autoconf based build system for Linux (and other Unix platforms) and
uses these same .asm files so I suspect this is more of a build system
setup issue than a code problem.

Thanks,
Eric
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Problems compiling project with x86 .asm files as Universal Binary
      • From: Dave Camp <email@hidden>
  • Prev by Date: Re: Deploying Mac Software.
  • Next by Date: Re: Problems compiling project with x86 .asm files as Universal Binary
  • Previous by thread: RE: Help debugging a framework
  • Next by thread: Re: Problems compiling project with x86 .asm files as Universal Binary
  • Index(es):
    • Date
    • Thread