Subject: bug#24403: Automake fails to build via Homebrew if path to Xcode contains a space

From: Michael Miller <[email-masked]>
Date: Fri, 9 Sep 2016 18:18:07 -0700

Hello GNU folks,

I recently had a problem building automake via Homebrew on OS X. Turns out the problem was that the path to Xcode contained a space: /Applications/Xcode 7.app — Removing the space caused the build to work correctly.

To Reproduce:
1. Install Xcode
2. Change the path from /Applications/Xcode.app to /Applications/Xcode 7.app
3. sudo xcode-select sudo xcode-select --switch /Applications/Xcode\ 7.app/
4. brew install automake

Result:
make: /Applications/Xcode: No such file or directory
make: *** [install-am] Error 1

Workaround:
Rename Xcode 7.app to Xcode7.app (sans the space), and then re-run xcode-select on the new path. The build now works.

Spaces really should be ok though! :)

-Michael