Skip to content

Installation issue: magics with gcc 14+ and spack 1.1.1 #5237

Description

@HansVahlenkamp

Steps to reproduce the issue

$ spack spec magics%gcc@14.3.0
[+]  magics@4.15.3~bufr~cairo~fortran~ipo~metview+netcdf~qt build_system=cmake build_type=RelWithDebInfo generator=make platform=linux os=rhel8 target=skylake %c,cxx,fortran=gcc@14.3.0
[+]      ^boost@1.90.0~atomic~charconv~chrono~clanglibcpp~container~context~contract~conversion~date_time~debug+exception~fiber~filesystem~graph~graph_parallel~icu~iostreams~json~locale~log~math~mpi~mqtt5+multithreaded~nowide~numpy~openmethod~pic~program_options~python~random~regex~serialization+shared~signals2~singlethreaded~stacktrace~system~taggedlayout~test~thread~timer~type_erasure~url~versionedlayout~wave build_system=generic cxxstd=11 patches:=a440f96 visibility=hidden platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]      ^cmake@3.31.11~doc+ncurses+ownlibs~qtgui build_system=generic build_type=Release platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]          ^curl@8.20.0~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs:=shared,static tls:=openssl platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]              ^nghttp2@1.67.1 build_system=autotools platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]          ^ncurses@6.6~symlinks+termlib abi=none build_system=autotools patches:=7a351bc platform=linux os=rhel8 target=skylake %c,cxx=gcc@8.5.0
[+]      ^compiler-wrapper@1.1.0 build_system=generic platform=linux os=rhel8 target=skylake 
[+]      ^eccodes@2.47.0+aec~fortran~geo~ipo~memfs~netcdf~openmp~png~pthreads+shared~tools build_system=cmake build_type=Release extra_definitions:=none generator=make jp2k=openjpeg platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]          ^libaec@1.1.4~ipo+shared build_system=cmake build_type=Release generator=make platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]          ^openjpeg@2.3.1~codec~ipo build_system=cmake build_type=Release generator=make platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]      ^expat@2.8.1+libbsd build_system=autotools platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]          ^libbsd@0.12.2 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]              ^libmd@1.1.0 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]      ^gcc@14.3.0+binutils+bootstrap~graphite+libsanitizer~mold~nvptx~piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran' patches:=8b79314 platform=linux os=rhel8 target=skylake %c,cxx=gcc@8.5.0
[+]          ^binutils@2.46.0~debuginfod+gas~gprofng~headers~interwork+ld~libiberty~lto~nls~pgo+plugins build_system=autotools compress_debug_sections=zlib libs:=shared,static platform=linux os=rhel8 target=skylake %c,cxx=gcc@8.5.0
[+]          ^diffutils@3.12 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]              ^libiconv@1.18 build_system=autotools libs:=shared,static platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]          ^gawk@5.4.0~nls build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[e]          ^gcc@8.5.0+binutils+bootstrap~graphite+libsanitizer~nvptx~piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran' platform=linux os=rhel8 target=x86_64 
[+]          ^gcc-runtime@8.5.0 build_system=generic platform=linux os=rhel8 target=skylake 
[+]          ^gmp@6.3.0+cxx build_system=autotools libs:=shared,static platform=linux os=rhel8 target=skylake %c,cxx=gcc@8.5.0
[+]              ^autoconf@2.72 build_system=autotools platform=linux os=rhel8 target=skylake 
[+]              ^automake@1.18.1 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]              ^m4@1.4.21+sigsegv build_system=autotools platform=linux os=rhel8 target=skylake %c,cxx=gcc@8.5.0
[+]                  ^libsigsegv@2.15 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]          ^libtool@2.5.4 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]              ^file@5.46+static build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]              ^findutils@4.10.0 build_system=autotools patches:=440b954 platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]          ^mpc@1.4.1 build_system=autotools libs:=shared,static platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]          ^mpfr@4.2.2 build_system=autotools libs:=shared,static platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]              ^autoconf-archive@2024.10.16 build_system=autotools platform=linux os=rhel8 target=skylake 
[+]          ^texinfo@7.2~xs build_system=autotools platform=linux os=rhel8 target=skylake %c,cxx=gcc@8.5.0
[+]          ^zstd@1.5.7+programs build_system=makefile compression:=none libs:=shared,static platform=linux os=rhel8 target=skylake %c,cxx=gcc@8.5.0
[+]      ^gcc-runtime@14.3.0 build_system=generic platform=linux os=rhel8 target=skylake 
[e]      ^glibc@2.28 build_system=autotools platform=linux os=rhel8 target=x86_64 
[+]      ^gmake@4.4.1~guile build_system=generic platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]      ^libpng@1.6.58~ipo~pic build_system=cmake build_type=Release generator=make libs:=shared,static platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]      ^netcdf-cxx@4.2+netcdf4 build_system=autotools patches:=8892291 platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]          ^netcdf-c@4.10.0+blosc~byterange~dap~fsync~hdf4~jna~logging+mpi~nczarr_zip+optimize~parallel-netcdf+pic+shared+szip+zstd build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]              ^c-blosc@1.21.6+avx2~ipo build_system=cmake build_type=Release generator=make platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]                  ^lz4@1.10.0+pic build_system=makefile libs:=shared,static platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]                  ^snappy@1.2.1~ipo+pic+shared build_system=cmake build_type=Release generator=make platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]              ^hdf5@1.14.6~cxx~fortran+hl~ipo~java~map+mpi+shared~subfiling~szip~threadsafe+tools api=default build_system=cmake build_type=Release generator=make platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]              ^openmpi@5.0.10+atomics~cuda~debug+fortran~gpfs~internal-hwloc~internal-libevent~internal-pmix~ipv6~java~lustre~memchecker~openshmem~rocm~romio+rsh~static~two_level_namespace+vt+wrapper-rpath build_system=autotools fabrics:=none patches:=646eb1a romio-filesystem:=none schedulers:=none platform=linux os=rhel8 target=skylake %c,cxx,fortran=gcc@14.3.0
[+]                  ^hwloc@2.13.0~cairo~cuda~gl~level_zero~libudev+libxml2~nvml~opencl+pci~rocm build_system=autotools libs:=shared,static patches:=b4db98b platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]                      ^libpciaccess@0.17 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]                          ^util-macros@1.20.2 build_system=autotools platform=linux os=rhel8 target=skylake 
[+]                  ^libevent@2.1.12+openssl build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]                  ^numactl@2.0.19 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]                  ^openssh@10.3p1+gssapi build_system=autotools platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]                      ^krb5@1.22.2+shared build_system=autotools platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]                          ^bison@3.8.2~color build_system=autotools platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]                      ^libedit@3.1-20251016 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]                      ^libxcrypt@4.5.2~obsolete_api build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]                  ^pmix@6.1.0~munge~python build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]                  ^prrte@4.1.0 build_system=autotools patches:=64faa1a,91b28f5 schedulers:=none platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]                      ^flex@2.6.3+lex~nls build_system=autotools platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]      ^perl@5.42.0+cpanm+opcode+open+shared+threads build_system=generic platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]          ^berkeley-db@18.1.40+cxx~docs+stl build_system=autotools patches:=26090f4,b231fcc platform=linux os=rhel8 target=skylake %c,cxx=gcc@8.5.0
[+]          ^bzip2@1.0.8~debug~pic+shared build_system=generic platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]          ^gdbm@1.26 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]          ^less@692 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]      ^perl-xml-parser@2.47 build_system=perl platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]          ^perl-libwww-perl@6.68 build_system=perl platform=linux os=rhel8 target=skylake 
[+]              ^perl-clone@0.46 build_system=perl platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]              ^perl-encode-locale@1.05 build_system=perl platform=linux os=rhel8 target=skylake 
[+]              ^perl-file-listing@6.16 build_system=perl platform=linux os=rhel8 target=skylake 
[+]              ^perl-html-parser@3.72 build_system=perl platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]                  ^perl-html-tagset@3.24 build_system=perl platform=linux os=rhel8 target=skylake 
[+]              ^perl-http-cookies@6.11 build_system=perl platform=linux os=rhel8 target=skylake 
[+]              ^perl-http-daemon@6.16 build_system=perl platform=linux os=rhel8 target=skylake 
[+]                  ^perl-module-build-tiny@0.048 build_system=perl platform=linux os=rhel8 target=skylake 
[+]                      ^perl-extutils-config@0.010 build_system=perl platform=linux os=rhel8 target=skylake 
[+]                      ^perl-extutils-helpers@0.026 build_system=perl platform=linux os=rhel8 target=skylake 
[+]                      ^perl-extutils-installpaths@0.013 build_system=perl platform=linux os=rhel8 target=skylake 
[+]                      ^perl-module-build@0.4234 build_system=perl platform=linux os=rhel8 target=skylake 
[+]              ^perl-http-date@6.06 build_system=perl platform=linux os=rhel8 target=skylake 
[+]              ^perl-http-message@6.45 build_system=perl platform=linux os=rhel8 target=skylake 
[+]                  ^perl-io-html@1.004 build_system=perl platform=linux os=rhel8 target=skylake 
[+]              ^perl-http-negotiate@6.01 build_system=perl platform=linux os=rhel8 target=skylake 
[+]              ^perl-lwp-mediatypes@6.04 build_system=perl platform=linux os=rhel8 target=skylake 
[+]              ^perl-net-http@6.23 build_system=perl platform=linux os=rhel8 target=skylake 
[+]              ^perl-try-tiny@0.31 build_system=perl platform=linux os=rhel8 target=skylake 
[+]              ^perl-uri@5.08 build_system=perl platform=linux os=rhel8 target=skylake 
[+]                  ^perl-test-needs@0.002010 build_system=perl platform=linux os=rhel8 target=skylake 
[+]              ^perl-www-robotrules@6.02 build_system=perl platform=linux os=rhel8 target=skylake 
[+]      ^pkgconf@2.5.1 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]      ^proj@9.7.0+curl~ipo~pic+shared+tiff build_system=cmake build_type=Release generator=make platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]          ^libtiff@4.7.1+ccitt~ipo~jbig+jpeg~jpeg12~lerc~libdeflate+logluv~lzma+lzw+next~old-jpeg~opengl+packbits~pic~pixarlog+shared+thunder~webp+zlib~zstd build_system=cmake build_type=Release generator=make platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]              ^libjpeg-turbo@3.1.3~ipo~jpeg8~partial_decoder+pic build_system=cmake build_type=Release generator=make libs:=shared,static platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]                  ^nasm@2.16.03 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]          ^sqlite@3.53.1+column_metadata+fts+rtree build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]      ^py-jinja2@3.1.6~i18n build_system=python_pip platform=linux os=rhel8 target=skylake 
[+]          ^py-flit-core@3.12.0 build_system=python_pip platform=linux os=rhel8 target=skylake 
[+]          ^py-markupsafe@3.0.3 build_system=python_pip platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]              ^py-setuptools@82.0.1 build_system=generic platform=linux os=rhel8 target=skylake 
[+]          ^py-pip@26.1 build_system=generic platform=linux os=rhel8 target=skylake 
[+]          ^py-wheel@0.45.1 build_system=generic platform=linux os=rhel8 target=skylake 
[+]          ^python-venv@1.0 build_system=generic platform=linux os=rhel8 target=skylake 
[+]      ^python@3.14.5+bz2+ctypes+dbm~debug~freethreading+libxml2+lzma~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~static~tests~tkinter+uuid+zlib+zstd build_system=generic platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]          ^gettext@1.0+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools platform=linux os=rhel8 target=skylake %c,cxx=gcc@8.5.0
[+]              ^libxml2@2.15.3+pic~python+shared build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]              ^tar@1.35 build_system=autotools zip=pigz platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]                  ^pigz@2.8 build_system=makefile platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]          ^libffi@3.5.2 build_system=autotools platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]          ^openssl@3.6.1~docs+shared build_system=generic certs=mozilla platform=linux os=rhel8 target=skylake %c,cxx=gcc@14.3.0
[+]              ^ca-certificates-mozilla@2026-03-19 build_system=generic platform=linux os=rhel8 target=skylake 
[+]          ^readline@8.3 build_system=autotools patches:=21f0a03,72dee13,e273643 platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]          ^util-linux-uuid@2.41 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@14.3.0
[+]          ^xz@5.8.3~pic build_system=autotools libs:=shared,static platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]      ^zlib-ng@2.3.3+compat+new_strategies+opt+pic+shared build_system=autotools platform=linux os=rhel8 target=skylake %c,cxx=gcc@8.5.0
$ spack install magics%gcc@14.3.0

Error message

Error message
...
     1653    /tmp/Hans.Vahlenkamp/spack-stage/spack-stage-magics-4.15.3-fnaism3iz2u6gaxdbuh46bqsdgvi7ios/spack-src/src/dr
             ivers/minizip/zip.c: In function 'zipOpenNewFileInZip3':
  >> 1654    /tmp/Hans.Vahlenkamp/spack-stage/spack-stage-magics-4.15.3-fnaism3iz2u6gaxdbuh46bqsdgvi7ios/spack-src/src/dr
             ivers/minizip/zip.c:883:28: error: assignment to 'const long unsigned int *' from incompatible pointer type 
             'const uint32_t *' {aka 'const unsigned int *'} [-Wincompatible-pointer-types]
     1655      883 |         zi->ci.pcrc_32_tab = get_crc_table();
     1656          |                            ^
  >> 1657    make[2]: *** [src/CMakeFiles/MagPlus.dir/build.make:6522: src/CMakeFiles/MagPlus.dir/drivers/minizip/zip.c.o
             ] Error 1
...

Information on your system

Red Hat Enterprise Linux release 8.10 (Ootpa) running on an x86_64 system.

Additional information

Here is a simple fix for the magics "package.py" to make it compatible with gcc 14+:

> diff package.py package.py.orig 
113,114d112
<         if self.spec.satisfies("%gcc@14:"):
<             args.append("-DCMAKE_C_FLAGS=-Wno-error=incompatible-pointer-types")

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have run spack maintainers <name-of-the-package> and @mentioned any maintainers
  • I have uploaded the build log and environment files
  • I have searched the issues of this repo and believe this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions