[Hdf-forum] Failure to compile HDF

Stohr, Alexander Alexander.Stohr at HDLE.com
Thu Aug 7 02:50:23 CDT 2014


Hello,

looking at your lines and your attachments
I can see /opt/gcc-4.9.1/bin which indicates
you are using Linux and a relatively current GCC version.
Further “uname -r = 2.6.32-131.0.15.el6.x86_64”
does indicate you are using the 64 bit PC version
and thus you will probably target for that in the compile.

The first failure you are showing is about “//” comments operator.
This is supported for a long time by wide spread C compilers – but it is more common to C++.
That should not be a problem unless someone set quite strict standard conformance options.

I have not checked if it’s a frequent practice in HDF5 codes to use such comments.
If it is (you can look up that yourselves) then its probably some bad in the compiler invocation.

For getting more information on that you might enable some verbosity to show up with the
detailed compiler invocation command line for the very first error message. This helps understanding.
Maybe your compile is using a bad switches setup or it is not grabbing the right GCC version.
Invoking the compiler with a “—version” query at that particular place should give more hints.

An alternate idea on the root cause is that the line of code is a rarely active line (for targets
with a certain combination of config and platform) and “//” is forbidden in general for that.

Regards, Alex.

PS: I would ignore these “not-used” warnings for now as they are benign warnings.
In a mid to long term approach an advanced project should be able to hammer out such distracting items from their builds.


Von: Hdf-forum [mailto:hdf-forum-bounces at lists.hdfgroup.org] Im Auftrag von Syed Ahsan Ali Bokhari
Gesendet: Donnerstag, 7. August 2014 06:34
An: HDF Users Discussion List
Betreff: [Hdf-forum] Failure to compile HDF


I have tried different versions of HDF but compilation fails for all. Please have a look at attcched log files. Following are the commands I use to compile

./configure --with-zlib=/opt/zlib-1.2.8/ --prefix=/opt/hdf5-1.8.9

make check install

th5s.c:734:9: error: expected expression before â/â token
         // CHECK(ret, FAIL, "H5Pset_alloc_time");
         ^
In file included from th5s.c:25:0:
th5s.c: At top level:
H5srcdir.h:38:20: warning: âH5_get_srcdir_filenameâ defined but not used [-Wunused-function]
 static const char *H5_get_srcdir_filename(const char *filename)
                    ^
H5srcdir.h:68:20: warning: âH5_get_srcdirâ defined but not used [-Wunused-function]
 static const char *H5_get_srcdir(void)
                    ^
make[1]: *** [th5s.o] Error 1
make: *** [check-recursive] Error 1


Thank you for your help!
--
 Syed Ahsan Ali Bokhari
 Electronic Engineer
 Research & Development Division
 Pakistan Meteorological Department H-8/2, Islamabad.
 Phone # off +92519250361<tel:%2B92519250361>
 Cell # +923155145014<tel:%2B923155145014>
 Fax # +92519250368<tel:%2B92519250368>
 www.pmd.gov.pk<http://www.pmd.gov.pk/>



--
 Syed Ahsan Ali Bokhari
 Electronic Engineer
 Research & Development Division
 Pakistan Meteorological Department H-8/2, Islamabad.
 Phone # off +92519250361
 Cell # +923155145014
 Fax # +92519250368
 www.pmd.gov.pk<http://www.pmd.gov.pk/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.lists.hdfgroup.org/pipermail/hdf-forum_lists.hdfgroup.org/attachments/20140807/59318aea/attachment-0001.html>


More information about the Hdf-forum mailing list