Mailing Lists: Apple Mailing Lists

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

Re: Problems compiling project with x86 .asm files as Universal Binary



On Jan 19, 2006, at 1:31 PM, E. Wing wrote:

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'.

Wrap the assembly code with something like #if TARGET_CPU_X86

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.

In the build results window, click the icon to the right of the Warnings button (the button with the little horizontal lines like a sheet of paper). That will show the build log. Often it will show the line numbers where the errors were.


Dave

---
There's an old proverb that says just about whatever you want it to.

_______________________________________________
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
References: 
 >Problems compiling project with x86 .asm files as Universal Binary (From: "E. Wing" <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.