• 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
Re: Bad Arm7 code generation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bad Arm7 code generation?


  • Subject: Re: Bad Arm7 code generation?
  • From: Jonas Maebe <email@hidden>
  • Date: Fri, 12 Aug 2011 14:49:35 +0200


On 12 Aug 2011, at 14:31, Jean-Denis MUYS wrote:

"Unrolling" the build output reveals a bit more information:

/var/folders/sj/_9x5rtbj59bb6wqhgy_ydlxr0000gn/T/cc-jCp4JC.s:703:bad instruction `lock'
/var/folders/sj/_9x5rtbj59bb6wqhgy_ydlxr0000gn/T/cc-jCp4JC.s:704:bad instruction `xaddl r1,(r0)'
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
Command /Xcode4.2/Platforms/iPhoneOS.platform/Developer/usr/bin/ clang failed with exit code 1


So it seems the assembler phase of the llvm compiler was fed a corrupt source file. That source file was the output of the compiler:

That looks like code from a macro containing inline Intel assembler for an atomic "add & exchange". I guess one of the headers you are using was somehow preprocessed for Intel rather than for ARM.



Jonas _______________________________________________ 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: Bad Arm7 code generation?
      • From: Jean-Denis MUYS <email@hidden>
References: 
 >Bad Arm7 code generation? (From: Jean-Denis MUYS <email@hidden>)

  • Prev by Date: Bad Arm7 code generation?
  • Next by Date: Re: Bad Arm7 code generation?
  • Previous by thread: Bad Arm7 code generation?
  • Next by thread: Re: Bad Arm7 code generation?
  • Index(es):
    • Date
    • Thread