Bug#1078904: silo-llnl: FTBFS against HDF5 1.14

pini at debian.org pini at debian.org
Tue Nov 19 10:50:07 GMT 2024


Control: tags -1 + patch

Le 2024-08-17 15:42, Gilles Filippini a écrit :
> Source: silo-llnl
> Version: 4.11-6
> Severity: important
> 
> Hi,
> 
> The silo-llnl package fails to build from source in a test rebuild 
> against
> hdf5 1.14 currently in experimental:
> 
> libtool: compile:  mpicc -DHAVE_CONFIG_H -I. -I../.. -I./../silo 
> -I./../silo -I./../fpzip -DH5_HAVE_FILTER_ZFP -DH5Z_ZFP_AS_LIB 
> -DAS_SILO_BUILTIN -I./../zfp-0.5.5/include -I/usr/include/hdf5/openmpi 
> -I/usr/inclu
> de/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui 
> -I/usr/include/x86_64-linux-gnu/qt5/QtCore 
> -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets 
> -I/usr/lib/openmpi/include -Wdate-time -D_FORTIFY_SOURCE
> =2 -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -fPIC -D_LARGEFILE_SOURCE -
> D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
> -Wdeclaration-after-statement -c H5FDsilo.c  -fPIC -DPIC -o 
> .libs/H5FDsilo.o
> H5FDsilo.c:502:5: error: initialization of 'unsigned int' from 'char *' 
> makes integer from pointer without a cast [-Wint-conversion]
>   502 |     "silo",                                     /*name          
>         */
>       |     ^~~~~~
> H5FDsilo.c:502:5: note: (near initialization for 'H5FD_silo_g.version')
> H5FDsilo.c:502:5: error: initializer element is not computable at load 
> time
> H5FDsilo.c:502:5: note: (near initialization for 'H5FD_silo_g.version')
> H5FDsilo.c:463:17: warning: overflow in conversion from 'long unsigned 
> int' to 'int' changes value from '9223372036854775807' to '-1' 
> [-Woverflow]
>   463 | #define MAXADDR (((haddr_t)1<<(8*sizeof(file_offset_t)-1))-1)
>       |                 ^
> H5FDsilo.c:503:5: note: in expansion of macro 'MAXADDR'
>   503 |     MAXADDR,                                    /*maxaddr       
>         */
>       |     ^~~~~~~
> H5FDsilo.c:504:5: error: initialization of 'const char *' from 'int' 
> makes pointer from integer without a cast [-Wint-conversion]
>   504 |     H5F_CLOSE_WEAK,                             /* fc_degree    
>         */
>       |     ^~~~~~~~~~~~~~
> H5FDsilo.c:504:5: note: (near initialization for 'H5FD_silo_g.name')
> H5FDsilo.c:508:5: error: incompatible types when initializing type 
> 'enum H5F_close_degree_t' using type 'hsize_t (*)(H5FD_t *)' {aka 'long 
> unsigned int (*)(H5FD_t *)'}
>   508 |     H5FD_silo_sb_size,                          /*sb_size       
>         */
>       |     ^~~~~~~~~~~~~~~~~
> H5FDsilo.c:509:5: error: initialization of 'herr_t (*)(void)' {aka 'int 
> (*)(void)'} from incompatible pointer type 'herr_t (*)(H5FD_t *, char 
> *, unsigned char *)' {aka 'int (*)(H5FD_t *, char *, unsigned char *)'} 
> [-Wincompatible-pointer-types]
>   509 |     H5FD_silo_sb_encode,                        /*sb_encode     
>         */
>       |     ^~~~~~~~~~~~~~~~~~~
> H5FDsilo.c:509:5: note: (near initialization for 
> 'H5FD_silo_g.terminate')
> libtool: compile:  mpicc -DHAVE_CONFIG_H -I. -I../.. -I./../silo 
> -I./../silo -I./../fpzip -DH5_HAVE_FILTER_ZFP -DH5Z_ZFP_AS_LIB 
> -DAS_SILO_BUILTIN -I./../zfp-0.5.5/include -I/usr/include/hdf5/openmpi 
> -I/usr/inclu
> de/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui 
> -I/usr/include/x86_64-linux-gnu/qt5/QtCore 
> -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets 
> -I/usr/lib/openmpi/include -Wdate-time -D_FORTIFY_SOURCE
> =2 -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -fPIC -D_LARGEFILE_SOURCE -
> D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
> -Wdeclaration-after-statement -c H5FDsilo.c  -fPIC -DPIC -o 
> .libs/H5FDsilo.o
> H5FDsilo.c:502:5: error: initialization of 'unsigned int' from 'char *' 
> makes integer from pointer without a cast [-Wint-conversion]
>   502 |     "silo",                                     /*name          
>         */
>       |     ^~~~~~
> H5FDsilo.c:502:5: note: (near initialization for 'H5FD_silo_g.version')
> H5FDsilo.c:502:5: error: initializer element is not computable at load 
> time
> H5FDsilo.c:502:5: note: (near initialization for 'H5FD_silo_g.version')
> H5FDsilo.c:463:17: warning: overflow in conversion from 'long unsigned 
> int' to 'int' changes value from '9223372036854775807' to '-1' 
> [-Woverflow]
>   463 | #define MAXADDR (((haddr_t)1<<(8*sizeof(file_offset_t)-1))-1)
>       |                 ^
> H5FDsilo.c:503:5: note: in expansion of macro 'MAXADDR'
>   503 |     MAXADDR,                                    /*maxaddr       
>         */
>       |     ^~~~~~~
> H5FDsilo.c:504:5: error: initialization of 'const char *' from 'int' 
> makes pointer from integer without a cast [-Wint-conversion]
>   504 |     H5F_CLOSE_WEAK,                             /* fc_degree    
>         */
>       |     ^~~~~~~~~~~~~~
> H5FDsilo.c:504:5: note: (near initialization for 'H5FD_silo_g.name')
> H5FDsilo.c:508:5: error: incompatible types when initializing type 
> 'enum H5F_close_degree_t' using type 'hsize_t (*)(H5FD_t *)' {aka 'long 
> unsigned int (*)(H5FD_t *)'}
>   508 |     H5FD_silo_sb_size,                          /*sb_size       
>         */
>       |     ^~~~~~~~~~~~~~~~~
> H5FDsilo.c:509:5: error: initialization of 'herr_t (*)(void)' {aka 'int 
> (*)(void)'} from incompatible pointer type 'herr_t (*)(H5FD_t *, char 
> *, unsigned char *)' {aka 'int (*)(H5FD_t *, char *, unsigned char *)'} 
> [-Wincompatible-pointer-types]
>   509 |     H5FD_silo_sb_encode,                        /*sb_encode     
>         */
>       |     ^~~~~~~~~~~~~~~~~~~
> H5FDsilo.c:509:5: note: (near initialization for 
> 'H5FD_silo_g.terminate')

Please find attached a patch proposal. I've backported a couple of 
upstream fixes.

Thanks,
_g.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: silo-llnl-1078904.debdiff
Type: text/x-diff
Size: 3006 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20241119/37d22917/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20241119/37d22917/attachment-0001.sig>


More information about the debian-science-maintainers mailing list