Skip to content

Installation issue: fftw with gcc 14+ and spack 1.1.1 #5247

Description

@HansVahlenkamp

Steps to reproduce the issue

$ spack spec fftw%gcc@14.3.0
 -   fftw@3.3.11+mpi~openmp~pfft_patches+shared build_system=autotools precision:=double,float platform=linux os=rhel8 target=skylake %c,fortran=gcc@14.3.0
[+]      ^compiler-wrapper@1.1.0 build_system=generic platform=linux os=rhel8 target=skylake 
[+]      ^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
[+]              ^readline@8.3 build_system=autotools patches:=21f0a03,72dee13,e273643 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
[+]              ^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
[+]                  ^xz@5.8.3~pic build_system=autotools libs:=shared,static 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 
[+]          ^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
[+]          ^texinfo@7.2~xs build_system=autotools platform=linux os=rhel8 target=skylake %c,cxx=gcc@8.5.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
[+]                  ^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
[+]              ^ncurses@6.6~symlinks+termlib abi=none build_system=autotools patches:=7a351bc platform=linux os=rhel8 target=skylake %c,cxx=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
[+]          ^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
[+]      ^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
[+]          ^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
[+]          ^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 
[+]              ^libxml2@2.15.3+pic~python+shared build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@8.5.0
[+]          ^libevent@2.1.12+openssl build_system=autotools platform=linux os=rhel8 target=skylake %c=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 
[+]          ^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
[+]          ^pkgconf@2.5.1 build_system=autotools platform=linux os=rhel8 target=skylake %c=gcc@8.5.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
$ spack install fftw%gcc@14.3.0
...

Error message

Error message
...
  >> 1820    .././../mpi/fftw_f77_mpi.h:50:48: error: passing argument 1 of 'MPI_Comm_f2c' makes integer from pointer wit
             hout a cast [-Wint-conversion]
     1821       50 | #  define FFTW_MPI_COMM_F2C(comm) MPI_Comm_f2c(*((MPI_Comm *) comm))
     1822          |                                                ^~~~~~~~~~~~~~~~~~~~
     1823          |                                                |
     1824          |                                                MPI_Comm {aka struct ompi_communicator_t *}
     1825    .././../mpi/fftw_f77_mpi.c:35:32: note: in expansion of macro 'FFTW_MPI_COMM_F2C'
     1826       35 |      *p = fftw_mpi_create_plan(FFTW_MPI_COMM_F2C(comm), *n,dir,*flags);
...

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 fftw "package.py" to make it compatible with gcc 14+:

> diff package.py package.py.orig 
67c67
<             if self.spec.satisfies("%clang@15:") or self.spec.satisfies("%gcc@14:"):
---
>             if self.spec.satisfies("%clang@15:"):

There seems to be no maintainer listed for the fftw package.

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