* Susi Lehtola: > resurrecting the old thread from March 2024, I have now also faced this issue: > OpenMolcas 25.06 fails to build on all architectures in Fedora rawhide with > the > cryptic error > > make[2]: Entering directory > '/builddir/build/BUILD/OpenMolcas-25.06-build/OpenMolcas-v25.06-805c93ebfa2cd5fa185ca03cf965580ebdfeb352/x86_64-redhat-linux-gnu' > [ 65%] Linking Fortran shared library lib/libmolcas.so > /usr/bin/cmake -E cmake_link_script CMakeFiles/libmolcas.dir/link.txt > --verbose=1 > /usr/bin/gfortran -fPIC -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 -m64 > -march=x86-64 -mtune=generic -fasynchronous-unwind-tables > -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 > -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -cpp -fopenmp > -fdefault-integer-8 -fPIC -I/usr/lib64/gfortran/modules > -fallow-argument-mismatch -DNDEBUG > -Wl,--dependency-file=CMakeFiles/libmolcas.dir/link.d -Wl,-z,relro > -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now > -specs=/usr/lib/rpm/redhat/redhat-hardened-ld > -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 > -specs=/usr/lib/rpm/redhat/redhat-package-notes -shared > -Wl,-soname,libmolcas.so > -o lib/libmolcas.so @CMakeFiles/libmolcas.dir/objects1.rsp > @CMakeFiles/libmolcas.dir/objects2.rsp > make[2]: Leaving directory > '/builddir/build/BUILD/OpenMolcas-25.06-build/OpenMolcas-v25.06-805c93ebfa2cd5fa185ca03cf965580ebdfeb352/x86_64-redhat-linux-gnu' > /usr/bin/ld: error: /tmp/cc8rKBj0.ltrans126.ltrans.o: is triggering the > generation of an executable stack (because it has an executable > .note.GNU-stack > section) > /usr/bin/ld: failed to set dynamic section sizes: no more archived files > collect2: error: ld returned 1 exit status > > but the same sources build without issue on Fedora 42.
Can you build CFLAGS="$CFLAGS -Wtrampolines" and see if there are any warnings in the build log? Thanks, Florian -- _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue