[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Chipmunk Physics • View topic - clang 3.1 error: assembler failed compiling ChipmunkSpace

clang 3.1 error: assembler failed compiling ChipmunkSpace

Discuss any Chipmunk bugs here.

clang 3.1 error: assembler failed compiling ChipmunkSpace

Postby carlbrown » Thu Apr 19, 2012 3:13 pm

carlbrown
 
Posts: 2
Joined: Wed Apr 18, 2012 6:38 pm

Re: clang 3.1 error: assembler failed compiling ChipmunkSpac

Postby slembcke » Thu Apr 19, 2012 3:23 pm

Freaking joy. That is almost certainly a compiler bug. There is no conceivable reason why the compiler should spit out code that it can't assemble.

So I've heard a number of people grumble about bizzare issues with Xcode 4.3 and Clang 3.1 now. I've been "in the middle" of a project for months now so I haven't upgraded from Xcode 4.2. This wouldn't be the first time there was a Clang compiler bug that broke Chipmunk. Clang 2.1 was borked too, the optimizer choked on sqrt(x*x + y*y)... seriously, it was a well known optimizer bug.

I'm not sure what I can do about it until I install 4.3 (and Lion) myself to be able to hack up a workaround.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: clang 3.1 error: assembler failed compiling ChipmunkSpac

Postby slembcke » Thu Apr 19, 2012 3:41 pm

In the meantime, the precompiled static library that ships with ChipmunkPro should work just fine. You really only need to recompile if you want to reconfigure something or modify the Chipmunk source.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: clang 3.1 error: assembler failed compiling ChipmunkSpac

Postby carlbrown » Thu Apr 19, 2012 3:58 pm

OK. Thanks.

Also, for the record, as a work around, I seem to be able to get it to build by setting the "Valid Architectures" to "$(ARCHS_STANDARD_32_BIT)" (instead of armv6/armv7) - which means the bug exists only in the ARMv6 code generator of clang 3.1.

So if there's any one else out there running into this problem and who (like me) is an unrepentant geek who wants to be able to look at the source code of what I'm building (which is one of the reasons I upgraded to Pro in the first place), then as long as you're willing to give up support for iPhone 1+3G and iPodTouch 1st+2nd gen (and, let's face it, those are a pain to support now anyway), then you can just tell Xcode to skip armv6 and it seems to work. (But don't forget to require ARMv7 in your info.plist or you'll get rejected).

-Carl
carlbrown
 
Posts: 2
Joined: Wed Apr 18, 2012 6:38 pm

Re: clang 3.1 error: assembler failed compiling ChipmunkSpac

Postby slembcke » Thu Apr 19, 2012 4:29 pm

Oh. Hmm. That's entirely possible. No arm6 device actually supports more that iOS 4.2, so I wouldn't be too surprised if Apple simply didn't bother to test their compiler for arm6.

Actually... I did see that it was compiling for armv6 in the log you posted but forgot if armv6 or armv7 was the new instruction set. :oops: Too many random numbers to memorize and keep in one head. :(
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest