ARPA-SIMC / meteosatlib

OpenMTP/HRI/HRIT C++ access libraries, gdal drivers and other tools
GNU General Public License v2.0
8 stars 2 forks source link

fedora builds are failing (both copr and travis) #25

Closed brancomat closed 3 years ago

brancomat commented 3 years ago

https://travis-ci.org/github/ARPA-SIMC/meteosatlib/builds/742428265

https://copr.fedorainfracloud.org/coprs/simc/stable/build/1752566/

brancomat commented 3 years ago

relevant bit:

make[2]: Entering directory '/builddir/build/BUILD/meteosatlib-1.12-1/tools'
g++ -DHAVE_CONFIG_H   -I.. -I.. -I/usr/include/gdal -I/usr/include/ImageMagick-6 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16   -Werror -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -Wall -Wextra -Wno-unused-parameter -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o image.o image.cpp
In file included from /usr/include/ImageMagick-6/magick/memory_.h:22,
                 from /usr/include/ImageMagick-6/magick/MagickCore.h:125,
                 from /usr/include/ImageMagick-6/Magick++/Include.h:45,
                 from /usr/include/ImageMagick-6/Magick++.h:10,
                 from image.cpp:5:
/usr/include/ImageMagick-6/magick/memory_.h: In function 'MagickCore::MagickBooleanType MagickCore::HeapOverflowSanityCheckGetSize(size_t, size_t, size_t*)':
/usr/include/ImageMagick-6/magick/memory_.h:98:20: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
   98 |   assert(extent != (size_t *const) NULL);
      |                    ^
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:1011: image.o] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/meteosatlib-1.12-1/tools'
spanezz commented 3 years ago

I removed a -Werror that I hadn't noticed, and now it seems to build