Post

Replies

Boosts

Views

Activity

gcc compilation hangs
When I try to compile a simple hello.c file that prints "hello" with gcc, my terminal just hangs. (I also have this issue when trying to use a Makefile or cmake). I have tried using the gcc with Xcode, command line tools, and homebrew. If I wait for it to finish, my internet eventually goes out and my terminal needs to be restarted.Occasionally, the compilation finishes quickly, but most of the time it does not complete or produces a bad executable.I have tried restarting my laptop, reinstalling my OS, reinstalling Xcode, and reinstalling command line tools. I've also talked with Apple support and went into the Apple store, but they just suggested I post on these forums.I am using a MacBook Air, my Xcode version is 11.3.1, and I am using Catalina 10.15.3. Does anyone have any suggestions on what to do?
2
0
2.0k
Mar ’20