Re: Odd Compiler... issue... error... something weird
Re: Odd Compiler... issue... error... something weird
- Subject: Re: Odd Compiler... issue... error... something weird
- From: Chris Espinosa <email@hidden>
- Date: Thu, 26 Mar 2009 08:45:00 -0700
On Mar 26, 2009, at 7:55 AM, Scott Thompson wrote:
We run daily builds of our iPhone application using xcodebuild and a
script system. This morning our builds are failing. The build log
shows the following after a particular command line compile:
{standard input}:23272:invalid offset, value too big (0x000005D6)
{standard input}:23269:invalid offset, value too big (0x000005D8)
{standard input}:23261:invalid offset, value too big (0x000005E0)
These appear to be some kind of error, but they don't follow the
"usual" error reporting template I'm used to seeing. Oddly enough
there are apparently no code changes between a successful build and
one of these failed builds. So the code didn't change, but
something on the system is no longer happy... very strange.
Does anyone recognize what these messages are trying to tell us and
can you suggest what might be causing them?
This looks like it's happening when the output of the compiler (which
is an assembler file) is being piped to the machine-language
assembler, and there are structural errors in the assembler code. For
the device, this is often offsets that are out of range for the
particular CPU code model in use.
If you run the gcc command on the .m file with -S to get the assembler
output, then run the assembler on it separately, you'll see the place
and the instruction that's generating the bad code.
This is probably a compiler bug and it would be very helpful to report
it with the source.
Usually adjusting the size of your switch statements or refactoring a
big method is the way to get around this.
Chris
_______________________________________________
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