• 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: clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable


  • Subject: Re: clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable
  • From: Mikkel Islay <email@hidden>
  • Date: Sat, 24 Nov 2012 10:30:24 +0100

Rick,

You are likely running up against the OS hard limit on processes pr userid. This could happen if your code spawns child-processes, and doesn't tear them down appropriately, or because Xcode doesn't terminate the processes corresponding to your project runs correctly when you stop them in the UI (among other reasons).

You can determine the current settings with sysctl:
sysctl -a | grep maxproc
Compare this to the number of running processes for your user with ps:
ps aux | grep <rick-userid> | wc -l
Offending processes will be labelled as state 'Z':
ps aux | grep <rick-userid>

Mikkel



On 24 Nov 2012, at 09:46, Rick Mann wrote:

> I'm suddenly getting this error very frequently. What gives? Any way to fix it?
>
>
> clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable
> clang: error: clang frontend command failed due to signal (use -v to see invocation)
> Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
> Target: arm-apple-darwin12.2.0
> Thread model: posix
> clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
> clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable
> clang: note: diagnostic msg: Error generating preprocessed source(s).
> Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 255
>
>
>
> --
> Rick
>
>
>
>
> _______________________________________________
> 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


 _______________________________________________
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

References: 
 >clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable
  • Next by Date: More Provisioning woes
  • Previous by thread: Re: clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable
  • Next by thread: More Provisioning woes
  • Index(es):
    • Date
    • Thread