Emit a nice error message if the compiler isn't functional

Review Request #2949 - Created Oct. 8, 2015 and submitted

Information
Andy Reitz
pants
a2c6103...
Reviewers
pants-reviews
jsirois, kwlzn

Emit a nice error message if the compiler isn't functional

Upgrade Xcode on my machine, and render gcc broken:

[prometheus pants (areitz/error_if_bad_compiler)]$ gcc -v 2>&1


Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

On master, this error is produced:

[prometheus pants (master)]$ ./pants
Bootstrapping pants_deps with requirements:
  /Users/areitz/workspace/pants/3rdparty/python/requirements.txt
  /Users/areitz/workspace/pants/3rdparty/python/twitter/commons/requirements.txt
  /Users/areitz/workspace/pants/pants-plugins/3rdparty/python/requirements.txt

Failed to create venv.

With this patch:

[prometheus pants (areitz/error_if_bad_compiler)]$ ./pants

ERROR: unable to execute 'gcc'. Please verify that your compiler is installed, in your
       $PATH and functional.

       Hint: on Mac OS X, you may need to accept the XCode EULA: 'sudo xcodebuild -license accept'.
Kris Wilson
John Sirois
Nick Howard (Twitter)
Andy Reitz
Andy Reitz
Review request changed

Status: Closed (submitted)

Loading...