<div dir="ltr">Hi Lance,<div><br></div><div>Can try adding the &quot;--compiler=gcc&quot; flag to your configure.py command? That should use your custom gcc compiler since it&#39;s the first one that&#39;s found on your path. When you run &quot;make,&quot; you should see a line that looks like &quot;On MacOS, using  gcc 4.8.5&quot;, but with your version of gcc. The latest gcc that I have tested is 5.4.0 on Ubuntu 16.04, so I do not know if everything will compile with gcc 6.3.0</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div>--</div><div><span style="font-size:12.8000001907349px">Billy K. Poon</span><br></div></div><div>Research Scientist, Molecular Biophysics and Integrated Bioimaging</div><div>Lawrence Berkeley National Laboratory</div><div>1 Cyclotron Road, M/S 33R0345</div><div>Berkeley, CA 94720</div><div>Tel: (510) 486-5709</div><div>Fax: (510) 486-5909</div><div>Web: <a href="https://phenix-online.org" target="_blank">https://phenix-online.org</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Aug 16, 2017 at 2:49 PM, Lance Westerhoff <span dir="ltr">&lt;<a href="mailto:lance@quantumbioinc.com" target="_blank">lance@quantumbioinc.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello All-<br>
<br>
How does one introduce an alternate gcc compiler for CCTBX on Mac? I must be missing it in the documentation.<br>
<br>
I don’t want to use the old one in /usr/bin (and instead I want to you my newer one in /opt/gcc). I’ve tried all of the standard methods used by other build systems (change the $PATH, set $CXX and $CC, etc) but to no avail. These environment variables seem to be disregarded. We do use this compiler for building CCTBX on linux without too much trouble, so I think the support should be there.<br>
<br>
Specifically:<br>
<br>
mac-build64:build jenkins$ env | grep CXX<br>
CXX=/opt/gcc/current/bin/g++<br>
<br>
mac-build64:build jenkins$ env | grep CC<br>
CC=/opt/gcc/current/bin/gcc<br>
<br>
mac-build64:build jenkins$ which gcc<br>
/opt/gcc/current/bin/gcc<br>
<br>
mac-build64:build jenkins$ g++ -v<br>
Using built-in specs.<br>
COLLECT_GCC=g++<br>
COLLECT_LTO_WRAPPER=/opt/gcc/<wbr>gcc-6.3.0-08092017/libexec/<wbr>gcc/x86_64-apple-darwin11.4.2/<wbr>6.3.0/lto-wrapper<br>
Target: x86_64-apple-darwin11.4.2<br>
Configured with: ../gcc-6.3.0/configure --prefix=/opt/gcc/gcc-6.3.0-<wbr>08092017 --enable-languages=c,c++,<wbr>fortran,objc --with-gmp=/opt/gcc/gcc-6.3.0-<wbr>08092017 --with-mpfr=/opt/gcc/gcc-6.3.<wbr>0-08092017 --with-mpc=/opt/gcc/gcc-6.3.0-<wbr>08092017 --enable-libgomp --disable-multilib<br>
Thread model: posix<br>
gcc version 6.3.0 (GCC)<br>
<br>
mac-build64:build jenkins$ /opt/python/current/bin/python ../modules/cctbx_project/<wbr>libtbx/configure.py cctbx<br>
Python: 2.7.9 &quot;/opt/python/current/bin/<wbr>python&quot;<br>
Compiler: default<br>
....<br>
This script is only applicable to Linux - exiting.<br>
Done.<br>
<br>
mac-build64:build jenkins$ make<br>
./bin/libtbx.scons -j &quot;`./bin/libtbx.show_number_of_<wbr>processors`&quot;<br>
scons: Reading SConscript files ...<br>
On MacOS, using  clang 4.2.0<br>
Xcode 4.6.3<br>
Build version 4H1503<br>
...<br>
<br>
<br>
Thanks for your help!<br>
<br>
-Lance<br>
____________________<br>
Lance M. Westerhoff, Ph.D.<br>
President and General Manager<br>
QuantumBio Inc.<br>
<br>
WWW:    <a href="http://www.quantumbioinc.com" rel="noreferrer" target="_blank">http://www.quantumbioinc.com</a><br>
Email:    <a href="mailto:lance@quantumbioinc.com">lance@quantumbioinc.com</a><br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/<wbr>mailman/listinfo/cctbxbb</a><br>
</blockquote></div><br></div>