Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacRumoron

macrumors 6502
Original poster
Sep 6, 2005
324
0
This is a weird error that occurs out of nowhere when I try to compile a program that was previously able to compile. It has happened to me twice already and eventually goes away.

error: couldn't run '/usr/bin/gcc-4.0' because an internal error occurred (Resource temporarily unavailable)

Terminal.app also doesn't work when I see this message. Does anyone know what is causing this or is this normal? How can I fix it?

Thanks.
 

plinden

macrumors 601
Apr 8, 2004
4,029
142
MacRumoron said:
This is a weird error that occurs out of nowhere when I try to compile a program that was previously able to compile. It has happened to me twice already and eventually goes away.

error: couldn't run '/usr/bin/gcc-4.0' because an internal error occurred (Resource temporarily unavailable)

Terminal.app also doesn't work when I see this message. Does anyone know what is causing this or is this normal? How can I fix it?

Thanks.
You are likely to have lots (10s or 100s) of a single process running. You need to try to get access to Activiy Monitor to see which one. However, when it happens you are unlikely to be able to open Activity Monitor - you can keep it open waiting for this to happen again, or you can try closing down all other programs and immediately accessing Activity Monitor.

In my experience, it is smbd that does this. Do you have Windows sharing enabled?
 

MacRumoron

macrumors 6502
Original poster
Sep 6, 2005
324
0
plinden said:
You are likely to have lots (10s or 100s) of a single process running. You need to try to get access to Activiy Monitor to see which one. However, when it happens you are unlikely to be able to open Activity Monitor - you can keep it open waiting for this to happen again, or you can try closing down all other programs and immediately accessing Activity Monitor.

In my experience, it is smbd that does this. Do you have Windows sharing enabled?

yes i do

Could it be caused by the program I am working on in Xcode? I am new to programming and probably have bad coding that could cause this. Is that possible?
 

plinden

macrumors 601
Apr 8, 2004
4,029
142
If it is indeed runaway smbd processes causing this (as is likely), there are a couple of fixes I've heard for this - one is to add "max smbd processes = 10" to /etc/smb.conf, or to download and install the last combo software update.

I got this a couple of times with Windows sharing with a Windows install on Parallels. I no longer have a Windows install so I no longer have Windows sharing enabled, and I haven't seen this happen since.

It seems to be a common problem with Windows Sharing on Macs - http://www.google.com/search?hl=en&q=Mac+runaway+smbd+processes&btnG=Google+Search

MacRumoron said:
Could it be caused by the program I am working on in Xcode? I am new to programming and probably have bad coding that could cause this. Is that possible?
Highly unlikely - more likely a problem with another computer trying to access yours - do you have PCs networked?
 

MacRumoron

macrumors 6502
Original poster
Sep 6, 2005
324
0
plinden said:
If it is indeed runaway smbd processes causing this (as is likely), there are a couple of fixes I've heard for this - one is to add "max smbd processes = 10" to /etc/smb.conf, or to download and install the last combo software update.
Ok thanks, I'll try that.

plinden said:
Highly unlikely - more likely a problem with another computer trying to access yours - do you have PCs networked?

yes i have 3 pcs and 2 macs networked..
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.