Hi,

building latest 1.8.17 I was surprised that 32 bit (i686)
failed while 64 bit (x86_64) worked flawless as usual.

The problem was triggered by the latest review of system
headers that are now very picky on the "-std=c99"
and causing after a long list of undefined function warnings :

In file included from /cygdrive/e/cyg_pub/devel/hdf5/prova2/hdf5-1.8.16-1.i686/s
rc/hdf5-1.8.16/src/H5make_libsettings.c:46:0:
/cygdrive/e/cyg_pub/devel/hdf5/prova2/hdf5-1.8.16-1.i686/src/hdf5-1.8.16/src/H5m
ake_libsettings.c:186:30: error: dereferencing pointer to incomplete type ‘struct passwd’
      if((comma = HDstrchr(pwd->pw_gecos, ','))) {


The solution was to remove
  config/i686-pc-cygwin
without it all the build is fine and all the tests pass.

Please note that
  config/x86_64-pc-cygwin
has been never used as

configure:3753: checking build system type
configure:3767: result: x86_64-unknown-cygwin

so the system was never recognized and the build always worked.

The presence of config/i686-pc-cygwin
is causing an overdefinition of H5_CFLAGS
at least on the cygwin build framework

 CFLAGS: -ggdb -O2 -pipe -Wimplicit-function-declaration

-fdebug-prefix-map=/cygdrive/e/cyg_pub/devel/hdf5/prova2/hdf5-1.8.16-1.i686/build=/usr/src/debug/hdf5-1.8.16-1 -fdebug-prefix-map=/cygdrive/e/cyg_pub/devel/hdf5/prova2/hdf5-1.8.16-1.i686/src/hdf5-1.8.16=/usr/src/debug/hdf5-1.8.16-1

H5_CFLAGS: -std=c99 -pedantic -Wall -Wextra -Wundef -Wshad
ow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings-Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wfloat-equal -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wdisabled-optimization -Wformat=2 -Wunreachable-code -Wendif-labels -Wdeclaration-after-statement -Wold-style-definition -Winvalid-pch -Wvariadic-macros -Winit-self -Wmissing-include-dirs -W switch-default -Wswitch-enum -Wunused-macros -Wunsafe-loop-optimizations -Wc++-compat -Wstrict-overflow -Wlogical-op -Wlarger-than=2048 -Wvla -Wsync-nand -Wframe-larger-than=16384 -Wpacked-bitfield-compat -Wstrict-overflow=5 -Wjump-misses-init -Wunsuffixed-float-constants -Wdouble-promotion -Wsuggest-attribute=const -W trampolines -Wstack-usage=8192 -Wvector-operation-performance -Wsuggest-attribute=pure -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wdate-time -Wopenmp-simd -Warray-bounds=2 -Wc99-c11-compat -O3 -fstdarg-opt

AM_CFLAGS:
CPPFLAGS:
H5_CPPFLAGS:   -DNDEBUG -UH5_DEBUG_API


while without

CFLAGS: -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug
-prefix-map=/cygdrive/e/cyg_pub/devel/hdf5/hdf5-1.8.17-1.i686/build=/usr/src/debug/hdf5-1.8.17-1 -fdebug-prefix-map=/cygdrive/e/cyg_pub/devel/hdf5/hdf5-1.8.17-1.i686/src/hdf5-1.8.17=/usr/src/debug/hdf5-1.8.17-1

H5_CFLAGS:
AM_CFLAGS:
CPPFLAGS:
H5_CPPFLAGS:   -DNDEBUG -UH5_DEBUG_API

Regards
Marco




_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to