-
Notifications
You must be signed in to change notification settings - Fork 280
Closed
Description
Building the netcdf package on Fedora Rawhide is failing on i686 with:
Making all in libhdf4
make[2]: Entering directory '/builddir/build/BUILD/netcdf-c-4.9.2/build/libhdf4'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../libhdf4 -I.. -I../include -I../../include -I../../oc2 -I../../libnczarr -I/usr/include/hdf -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -fno-strict-aliasing -c -o hdf4file.lo ../../libhdf4/hdf4file.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../libhdf4 -I.. -I../include -I../../include -I../../oc2 -I../../libnczarr -I/usr/include/hdf -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -fno-strict-aliasing -c ../../libhdf4/hdf4file.c -fPIC -DPIC -o .libs/hdf4file.o
make[2]: Leaving directory '/builddir/build/BUILD/netcdf-c-4.9.2/build/libhdf4'
../../libhdf4/hdf4file.c: In function 'hdf4_read_var':
../../libhdf4/hdf4file.c:514:43: error: passing argument 3 of 'SDgetchunkinfo' from incompatible pointer type [-Wincompatible-pointer-types]
514 | if (SDgetchunkinfo(sdsid, &chunkdefs, &flag))
| ^~~~~
| |
| int *
In file included from ../../libhdf4/hdf4file.c:14:
/usr/include/hdf/mfhdf.h:394:13: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
394 | int32 *flags /* IN/OUT: flags */);
| ~~~~~~~^~~~~
make[2]: *** [Makefile:549: hdf4file.lo] Error 1
and
gcc -DHAVE_CONFIG_H -I. -I../../ncgen -I.. -I../include -I../../include -I../../oc2 -I../../libnczarr -I/usr/include/hdf -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -fno-strict-aliasing -c -o ncgeny.o ../../ncgen/ncgeny.c
ncgen.y: In function ‘ncgparse’:
ncgen.y:378:59: error: passing argument 2 of ‘ncaux_class_alignment’ from incompatible pointer type [-Wincompatible-pointer-types]
In file included from ../../ncgen/includes.h:46,
from ncgen.y:15:
../../include/netcdf_aux.h:78:56: note: expected ‘size_t *’ {aka ‘unsigned int *’} but argument is of type ‘long unsigned int *’
78 | EXTERNL int ncaux_class_alignment(int ncclass, size_t* alignp);
| ~~~~~~~~^~~~~~
ncgen.y:392:57: error: passing argument 2 of ‘ncaux_class_alignment’ from incompatible pointer type [-Wincompatible-pointer-types]
../../include/netcdf_aux.h:78:56: note: expected ‘size_t *’ {aka ‘unsigned int *’} but argument is of type ‘long unsigned int *’
78 | EXTERNL int ncaux_class_alignment(int ncclass, size_t* alignp);
| ~~~~~~~~^~~~~~
ncgen.y: In function ‘makeprimitivetype’:
ncgen.y:983:40: error: passing argument 2 of ‘ncaux_class_alignment’ from incompatible pointer type [-Wincompatible-pointer-types]
../../include/netcdf_aux.h:78:56: note: expected ‘size_t *’ {aka ‘unsigned int *’} but argument is of type ‘long unsigned int *’
78 | EXTERNL int ncaux_class_alignment(int ncclass, size_t* alignp);
| ~~~~~~~~^~~~~~
make[2]: *** [Makefile:666: ncgeny.o] Error 1
Metadata
Metadata
Assignees
Labels
No labels