As Graeme mentioned you currently need to use --compiler=gcc to force
compilation with gcc over clang for the latest Xcode/OS X (we should
probably try and figure out how to the configure command use gcc by
default). The cctbx *should* build with the more recent versions of clang
(perhaps Luc could comment on this as I think he uses clang regularly),
although depending on what version of Xcode you are using, Apple used to
ship a relatively old version of clang/llvm with Xcode, so clang
compilation might not necessarily work straight out the box.
What output do you get after running "clang --version"?
After upgrading to OS X 10.8/Xcode 4.4 I get:
Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn)
which is more recent than with older versions of Xcode.
We should probably add a clang build to our nightly builds at some point in
the near future.
Cheers,
Richard
On 1 August 2012 10:13, Marcin Wojdyr
Out of curiosity: i remember reading somewhere that cctbx can be compiled with clang (and that it took a lot of work). Do you plan to support this compiler? Marcin
On 1 August 2012 17:26, Jeffrey Van Voorst
wrote: Apple has been "messing around" with the Xcode and the OS to prefer CLang over gcc (at least that is what I have inferred). It could be that on Mac OS X 10.8 that scons chooses a different compiler, etc. than on Mac OS X 10.6.8 (where cctbx compiles fine).
Hopefully scons has a method to print the toolchain or config to see what differs from previous versions of Mac OS X (e.g. 10.6.8 and 10.8.0) Xcode 3.* or Xcode 4.*?
--Jeff _______________________________________________ cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb
cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb