https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119843
Bug ID: 119843 Summary: Failed to build 14.2.1 from sources on AlmaLimux10 Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: shahzad.malik.muzaffar at cern dot ch Target Milestone: --- Created attachment 61147 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61147&action=edit gcc 14.2.1 configure log for gfortran Hi, I am trying to build GCC 14.2.1 from sources under AlmaLinux 10-kitten container. Most part of GCC built fine but I get the following build error when it tries to test gfortan ``` checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether the GNU Fortran compiler is working... no configure: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /data/cmsbld/el10/w/BUILD/el10_amd64_gcc14/external/gcc/14.2.1-475d4640d5186beb85fe6c9d366d668f/gcc-14.2.1/obj/x86_64-redhat-linux/libgfortran/config.log make[1]: *** [Makefile:22123: configure-target-libgfortran] Error 1 ``` x86_64-redhat-linux/libgfortran/config.log file is in attachment and it has the following test failing ``` configure:16365: checking whether the GNU Fortran compiler is working configure:16378: /data/cmsbld/el10/w/BUILD/el10_amd64_gcc14/external/gcc/14.2.1-475d4640d5186beb85fe6c9d366d668f/gcc-14.2.1/obj/./gcc/gfortran -B/data/cmsbld/el10/w/BUILD/el10_amd64_gcc14/external/gcc/14.2.1-475d4640d5186beb85fe6c9d366d668f/gcc-14.2.1/obj/./gcc/ -B/data/cmsbld/el10/w/tmp/BUILDROOT/475d4640d5186beb85fe6c9d366d668f/opt/cmssw/el10_amd64_gcc14/external/gcc/14.2.1-475d4640d5186beb85fe6c9d366d668f/x86_64-redhat-l inux/bin/ -B/data/cmsbld/el10/w/tmp/BUILDROOT/475d4640d5186beb85fe6c9d366d668f/opt/cmssw/el10_amd64_gcc14/external/gcc/14.2.1-475d4640d5186beb85fe6c9d366d668f/x86_64-redhat-linux/lib/ -isystem /data/cmsbld/el10/w/tmp/BUILDROOT/475d4640d5186beb85fe6c9d366d668f/opt/cmssw/el10_amd64_gcc14/external/gcc/14.2.1-475d4640d5186beb85fe6c9d366d668f/x86_64-redhat-linux/include -isystem /data/cmsbld/el10/w/tmp/BUILDROOT/475d4640d5186beb 85fe6c9d366d668f/opt/cmssw/el10_amd64_gcc14/external/gcc/14.2.1-475d4640d5186beb85fe6c9d366d668f/x86_64-redhat-linux/sys-include -c -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -m64 -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules conftest.f >&5 f951: Fatal Error: inaccessible plugin file plugin/annobin.so expanded from short plugin name annobin: No such file or directory compilation terminated. configure:16378: $? = 1 configure: failed program was: | | program foo | real, parameter :: bar = sin (12.34 / 2.5) | end program foo configure:16382: result: no configure:16384: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /data/cmsbld/el10/w/BUILD/el10_amd64_gcc14/external/gcc/14.2.1-475d4640d5186beb85fe6c9d366d668f/gcc-14.2.1/obj/x86_64-redhat-linux/libgfortran/config.log ``` any idea why it is not working?