Install errors - hd5-1.10.4


#1

Hi, just joined to get help with installing.

I"m on Amazon Linux.
I installed gcc.

I need HDF5 for a NETCDF program, and used their recommendation on configuration, which is:
./configure --prefix=/usr/local/hdf5 --with-zlib=/lib64 --enable-hl

There are a number of errors in the config.log. Here are some at the top.

gcc: error: unrecognized command line option ‘-V’
gcc: error: unrecognized command line option ‘-qversion’; did you mean ‘–version’?
conftest.c:11:10: fatal error: ac_nonexistent.h: No such file or directory
conftest.c:57:20: error: expected expression before ‘)’ token
if (sizeof ((off_t)))
^
I’d like to include the entire config.log file, but it says new users can’t upload files.

Any help is appreciated.


#2

Hello,

First, please make sure that gcc works with some simple C program.

Errors in config.log file may be OK. What is the output from the ./configure command? Could you capture it in a file

./configure --prefix=/usr/local/hdf5 --with-zlib=/lib64 --enable-hl >&c.log&

and check if it finishes with printing SUMMARY of HDF5 configuration?

If configure fails, then you will need to find in the config.log file the last test that fails to get a better clue.

I will check with our FORUM gurus why you couldn’t submit a file.

Thank you!

Elena


#3

Hi Elena,

I confirmed that gcc does indeed work.

Since, I can’t attach files (as a new member), here is the output from the configure:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking shell variables initial values... done
checking if basename works... yes
checking if xargs works... yes
checking for cached host... none
checking for config x86_64-unknown-linux-gnu... no
checking for config x86_64-unknown-linux-gnu... no
checking for config unknown-linux-gnu... no
checking for config unknown-linux-gnu... no
checking for config x86_64-linux-gnu... no
checking for config x86_64-linux-gnu... no
checking for config x86_64-unknown... no
checking for config linux-gnu... found
compiler 'gcc' is GNU gcc-7.3.1
expr: syntax error
checking for config ./config/site-specific/host-ip-172-31-33-210.ec2.internal... no
checking for config ./config/site-specific/host-ec2.internal... no
checking for config ./config/site-specific/host-internal... no
checking build mode... production
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking if unsupported combinations of configure options are allowed... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for off_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for ptrdiff_t... yes
checking whether byte ordering is bigendian... no
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of unsigned... 4
checking size of long... 8
checking size of long long... 8
checking size of __int64... 0
checking size of float... 4
checking size of double... 8
checking size of long double... 16
checking size of __float128... 16
checking size of _Quad... 0
checking quadmath.h usability... yes
checking quadmath.h presence... yes
checking for quadmath.h... yes
checking maximum decimal precision for C... 33
checking if Fortran interface enabled... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/home/ec2-user/captain/setup_files/hdf5-1.10.4':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details

#4

It looks like this is the last of the errors:

|                    Syntax error
configure:8984: /lib/cpp   conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
configure:8984: $? = 1
configure: failed program was:
| /* confdefs.h */

#5

It looks like I can now upload the config.log file:

config.log (67.9 KB)


#6

Please try to set up CXXCPP=‘g++ -E’ and reconfigure.

Elena


#7

Elena, I’m not exactly sure if I understand what you are asking me to try.
Are you saying to set an environmental variable, CXXCPP?


#8

Sorry!

Yes, please set environment variable CXXCPP to “g++ -E” (it looks like g++ is installed on your system)


#9

Success on the configure! I had to install gcc-c++. I set the CXXCPP bash environmental variable, and it configured.

It looks like a got an error on “make check”. Here’s the end of the output:

h5repack tests failed with 1 errors.
2.77user 0.76system 0:02.71elapsed 130%CPU (0avgtext+0avgdata 13344maxresident)k
8872inputs+21728outputs (1major+706070minor)pagefaults 0swaps
make[6]: *** [h5repack.sh.chkexe_] Error 1
make[6]: Leaving directory `/mnt/captain/setup_files/hdf5-1.10.4/tools/test/h5repack'
make[5]: *** [build-check-s] Error 2
make[5]: Leaving directory `/mnt/captain/setup_files/hdf5-1.10.4/tools/test/h5repack'
make[4]: *** [test] Error 2
make[4]: Leaving directory `/mnt/captain/setup_files/hdf5-1.10.4/tools/test/h5repack'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/mnt/captain/setup_files/hdf5-1.10.4/tools/test/h5repack'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/mnt/captain/setup_files/hdf5-1.10.4/tools/test'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/mnt/captain/setup_files/hdf5-1.10.4/tools'
make: *** [check-recursive] Error 1

do i need to address this error, before doing a make install


#10

Hi,

There should be error or failure messages earlier in the output that may shed more light on the problem. Can you upload the log from “make check”, or else search for “FAILED”, “Error” or “error” and post what you find there?


#11

Here is the line that failed:
Verifying h5diff output h5repack_objs.h5 out-gt_mallocsize.h5repack_obFAILED

I’ve attached the make check output here:
make.log (51.6 KB)


#12

Any idea on that error? Thanks.


#13

We think you may be able to work around the issue by removing ‘-c’ after diff in these 6 lines in 2 files in test/h5repack:

h5repack_plugin.sh.in

216: test yes = “$verbose” && diff -c $expect1 $actual1 |sed ‘s/^/ /’

232: test yes = “$verbose” && diff -c $expect2 $actual2 |sed ‘s/^/ /’

h5repack.sh.in

44: DIFF=‘diff -c’

692: test yes = “$verbose” && diff -c $expect $actual |sed ‘s/^/ /’

800: test yes = “$verbose” && diff -c $expect $actual |sed ‘s/^/ /’

852: test yes = “$verbose” && diff -c $expect $actual |sed ‘s/^/ /’

These are the source files. You can make the changes in the same lines in h5repack_plugin.sh and h5repack.sh (in the build directory) after you’ve configured. If you do it in the .in files, you’ll need to run configure again to get the changes into the scripts run be make check. Conversely, if you make the changes in the .sh files and not in the .sh.in files, configuring again will recreate the .sh files without the changes.


#14

Thanks. I edited the .sh files and removed the -c diff option, then ran make check again, but still got the same error with the h5diff:

Verifying h5diff output h5repack_objs.h5 out-gt_mallocsize.h5repack_obFAILED


#15

Any other suggestions to help me with this error? Thank you.