Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems compiling project with x86 .asm files as Universal Binary



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.