<div dir="ltr"><div class="gmail_default" style="font-size:small">[Before I address this issue, I would like to appeal to other people subscribed to ncl-install to see if anybody has successfully built NCL using the "clang" compiler on MacOS, paired with a fortran compiler like "gfortran".]</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Hi David,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The config.log file was very helpful, thanks.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I hate to deflect this, but this looks like an issue that perhaps the HDF-EOS5 people need to address.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The problem is that "h5cc" is being used build HDF-EOS5, which is what it should do, but apparently HDF5 was built with "clang", so this got put into "h5cc", and HDF-EOS5 doesn't seem to work with "clang". Here's the place in the "config.log" file that I think is the source of the problem:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">configure:22754: checking for hdf5 szip encoding filter</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">configure:22796: /usr/local/hdf5-1.8.15/bin/h5cc -o conftest -g -O2 -I/usr/local/hdf5-1.8.15</font><font face="monospace, monospace">//include -I/usr/local/zlib-1.2.8//include -I/usr/local/szip-2.1//include -I/usr/local/hdf5</font><font face="monospace, monospace">-1.8.15//include -L/usr/local/zlib-1.2.8//lib -L/usr/local/szip-2.1//lib -L/usr/local/hdf5-</font><span style="font-family:monospace,monospace">1.8.15//lib conftest.c -lhdf5_hl -lhdf5 -lsz -lz -lm >&5</span></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">clang: warning: argument unused during compilation: '-L/usr/local/zlib-1.2.8//lib'</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">clang: warning: argument unused during compilation: '-L/usr/local/szip-2.1//lib'</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">clang: warning: argument unused during compilation: '-L/usr/local/hdf5-1.8.15//lib'</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">conftest.c:41:21: warning: implicitly declaring library function 'exit' with type 'void (int</font><span style="font-family:monospace,monospace">) __attribute__((noreturn))'</span></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> if (ret < 0) exit(1);</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> ^</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">conftest.c:41:21: note: please include the header <stdlib.h> or explicitly provide a declara</font><span style="font-family:monospace,monospace">tion for 'exit'</span></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">1 warning generated.</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">configure:22799: $? = 0</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">configure:22805: ./conftest</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">HDF5-DIAG: Error detected in HDF5 (1.8.15) thread 0:</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> #000: H5Z.c line 1673 in H5Zget_filter_info(): Filter info not retrieved</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> major: Data filters</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> minor: Can't get value</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> #001: H5Z.c line 1703 in H5Z_get_filter_info(): Filter not defined</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> major: Data filters</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> minor: Bad value</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> #002: H5Z.c line 1247 in H5Z_find(): required filter is not registered</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> major: Data filters</font></div><div style><div style><font face="monospace, monospace"> minor: Object not found</font></div><div style><font face="monospace, monospace">configure:22808: $? = 1</font></div><div style><font face="monospace, monospace">configure: program exited with status 1</font></div></div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">My general recommendation, as a work-around for now, is to try to build things with gcc/gfortran, and not clang. This means you would need to rebuild HDF5, and potentially szip and zlib with gcc/gfortran.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Or, you can appeal to the HDF-EOS5 folks to see if they know how to get this library built with clang.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I hope to attempt a clang build soon, which I believe will have to be paired with gfortran because Apple hasn't provided a native Fortran compiler that I know of. Clang is supposed to work interchangeably with gcc, but I haven't had a chance to verify this.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Let me know if you want to try the gcc/gfortran build solution, but are not sure where to start.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 28, 2015 at 3:02 PM, David Stanfel <span dir="ltr"><<a href="mailto:dstanfel@ualberta.ca" target="_blank">dstanfel@ualberta.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:13px">Hello,</span><div style="font-size:13px"><br></div><div style="font-size:13px">I am trying to make the HDF-EOS5 software on my Macbook Pro (OS X 10.9.5) to build and install NCL but I am having some issues. </div><div style="font-size:13px"><br></div><div style="font-size:13px">I tried to use the 'make all install' command but that produced:</div><div style="font-size:13px"><br></div><div style="font-size:13px"><p style="margin:0px;font-size:11px;font-family:Menlo">make: *** No rule to make target `all'. Stop.</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p></div><div style="font-size:13px">When trying to run the 'make' command: </div><div style="font-size:13px"><br></div><div style="font-size:13px"><p style="margin:0px;font-size:11px;font-family:Menlo">dstanfel:hdfeos5 ninjawarrior343$ make</p><p style="margin:0px;font-size:11px;font-family:Menlo">This file is for use by ECS Configuration Management processes only.</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px"><font face="arial, helvetica, sans-serif"> I have attached the config.log in case it is of some use.</font></p><p style="margin:0px"><font face="arial, helvetica, sans-serif"><br></font></p><p style="margin:0px"><font face="arial, helvetica, sans-serif">Thanks,</font></p><p style="margin:0px"><font face="arial, helvetica, sans-serif"><br></font></p><p style="margin:0px"><font face="arial, helvetica, sans-serif">David </font></p></div></div>
<br>_______________________________________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
<br></blockquote></div><br></div>