I just updated to Ruby 2.0.0-p247 through rbenv and in the process of reinstalling all of a project's gems, cabybara-webkit is failing to build its native extension. The build failure looks like the same one that came up a couple of weeks ago.
g++ -c -include webkit_server -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.4/mkspecs/macx-g++ -I. -I/usr/local/Cellar/qt/4.8.4/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtWebKit.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtWebKit.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/include -I. -F/usr/local/Cellar/qt/4.8.4/lib -o Version.o Version.cpp
error: unable to read PCH file webkit_server.gch: 'Is a directory'
make[1]: *** [Version.o] Error 1
make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2
Command 'make' failed
Mac OS X 10.8.4
Xcode 4.6.3 (command line tools are installed)
Qt 4.8.4 from Homebrew (bottle)
Ruby 2.0.0-p247
The biggest change I can think of since the last time I built this gem is that I have a copy of Xcode 5 DP installed on this system. Without completely breaking my NDA, Xcode 5 changes some things related to how the command line tools are managed. While gcc and g++ still find the old version of the tools, clang runs the newer version of the compiler.
$ g++ -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix
$ clang -v
Apple LLVM version 5.0 (clang-500.1.61) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix
I have a Qt 4.8.0 still installed (also through Homebrew), but otherwise no other versions. I'm reluctant to uninstall it, as that'll break my working gem under the older version of Ruby.
Removing Xcode 5 DP doesn't solve the issue, as it doesn't clean up the changes it made to the command line tools.
I realize this is somewhat pre-release stuff, but Xcode 5 is coming this fall and if there are incompatibilities with it and how capybara-webkit builds the native extension, perhaps it's better to fix it before the masses install it.