On Sep 17, 2012, at 4:32 AM, Luc Bourhis
Hi,
I found if I created a symbolic link from a g++4.7 compiler to /usr/bin/g++, I could "trick" phaser into compiling with OpenMP enabled.
This is kind of an ugly hack. How do I force it to use /sw/bin/g++-4 ? Is there some place in the source code for cctbx (or phaser) that I can make such a change?
May I ask on which platform you work?
OS X, 10.8.1, most recent dev tools. gcc-4.7 installed via fink: % /usr/bin/gcc --version |head -n 1 i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) % /usr/bin/cc --version |head -n 1 Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn) % /sw/bin/gcc-4 --version |head -n 1 gcc-4 (GCC) 4.7.1
In any case, the orthodox way to do that would be to pass --compiler=gcc-4.7 to libtbx/configure.py but one would need to modify libtbx/SConscript to support that version. I suggest searching for the string "darwin_gcc-4.2" in that file to see how it has been done for --compiler=gcc-4.2. This SConscript is already an utter mess but well…
OK, I'll dig into it. I didn't know where to begin. Thanks. Bill
Best wishes,
Luc
_______________________________________________ cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb