hdf5 fortran build failure with gcc 12

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hdf5 is starting to fail to build with gcc 12 in rawhide with:

make[2]: Entering directory '/builddir/build/BUILD/hdf5-1.12.1/build/fortran/test' /bin/sh ../../libtool --tag=FC --mode=link gfortran -std=f2008 -Waliasing -Wall -Wcharacter-truncation -Wextra -Wimplicit-interface -Wsurprising -Wunderflow -pedantic -Warray-temporaries -Wintrinsics-std -Wimplicit-procedure -Wreal-q-constant -Wfunction-elimination -Wrealloc-lhs -Wrealloc-lhs-all -Wno-c-binding-type -Wuse-without-only -Winteger-division -Wfrontend-loop-interchange -fdiagnostics-urls=never -fno-diagnostics-color -s -O3 -I../../fortran/src -I../../fortran/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/hdf5-1.12.1/.package_note-hdf5-1.12.1-2.fc36.x86_64.ld -fPIC -Wl,-z,now -Wl,--as-needed -o fortranlib_test_1_8 tH5O.o tH5A_1_8.o tH5G_1_8.o tH5MISC_1_8.o tHDF5_1_8.o fortranlib_test_1_8.o libh5test_fortran.la ../../test/libh5test.la ../../fortran/src/libhdf5_fortran.la ../../src/libhdf5.la -lsz -lz -ldl -lm libtool: link: gfortran -std=f2008 -Waliasing -Wall -Wcharacter-truncation -Wextra -Wimplicit-interface -Wsurprising -Wunderflow -pedantic -Warray-temporaries -Wintrinsics-std -Wimplicit-procedure -Wreal-q-constant -Wfunction-elimination -Wrealloc-lhs -Wrealloc-lhs-all -Wno-c-binding-type -Wuse-without-only -Winteger-division -Wfrontend-loop-interchange -fdiagnostics-urls=never -fno-diagnostics-color -s -O3 -I../../fortran/src -I../../fortran/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT -Wl,/builddir/build/BUILD/hdf5-1.12.1/.package_note-hdf5-1.12.1-2.fc36.x86_64.ld -fPIC -Wl,-z -Wl,now -Wl,--as-needed -o .libs/fortranlib_test_1_8 tH5O.o tH5A_1_8.o tH5G_1_8.o tH5MISC_1_8.o tHDF5_1_8.o fortranlib_test_1_8.o ./.libs/libh5test_fortran.a ../../test/.libs/libh5test.a ../../fortran/src/.libs/libhdf5_fortran.so /builddir/build/BUILD/hdf5-1.12.1/build/src/.libs/libhdf5.so ../../src/.libs/libhdf5.so -lsz -lz -ldl -lm ../../../fortran/test/tf.F90:169:33: warning: type of 'h5_fixname_c' does not match original declaration [-Wlto-type-mismatch]
  169 |          full_name, full_namelen)
      |                                 ^
../../../fortran/test/t.c:43:1: note: type mismatch in parameter 6
43 | nh5_fixname_c(_fcd base_name, size_t_f *base_namelen, hid_t_f *fapl, _fcd full_name, size_t_f *full_namelen)
      | ^
../../../fortran/test/t.c:43:1: note: type 'void' should match type 'long int' ../../../fortran/test/t.c:43:1: note: 'h5_fixname_c_' was previously declared here ../../../fortran/test/tf.F90:220:56: warning: type of 'h5_cleanup_c' does not match original declaration [-Wlto-type-mismatch]
  220 |     hdferr = h5_cleanup_c(base_name, base_namelen, fapl)
      |                                                        ^
../../../fortran/test/t.c:85:1: note: type mismatch in parameter 4
85 | nh5_cleanup_c(_fcd base_name, size_t_f *base_namelen, hid_t_f *fapl)
      | ^
../../../fortran/test/t.c:85:1: note: type 'void' should match type 'long int' ../../../fortran/test/t.c:85:1: note: 'h5_cleanup_c_' was previously declared here /usr/bin/ld: /tmp/ccYpA0p7.ltrans1.ltrans.o: warning: relocation against `minusone.31' in read-only section `.text' /usr/bin/ld: /tmp/ccYpA0p7.ltrans0.ltrans.o: in function `__th5a_1_8_MOD_attribute_test_1_8.constprop.0': /builddir/build/BUILD/hdf5-1.12.1/build/fortran/test/tf_gen.F90:84: undefined reference to `minusone.46' /usr/bin/ld: /tmp/ccYpA0p7.ltrans1.ltrans.o: in function `__th5a_1_8_MOD_test_attr_info_by_idx.constprop.0': /builddir/build/BUILD/hdf5-1.12.1/build/fortran/test/tf_gen.F90:84: undefined reference to `minusone.18' /usr/bin/ld: /builddir/build/BUILD/hdf5-1.12.1/build/fortran/test/tf_gen.F90:84: undefined reference to `minusone.18' /usr/bin/ld: /builddir/build/BUILD/hdf5-1.12.1/build/fortran/test/tf_gen.F90:84: undefined reference to `minusone.18' /usr/bin/ld: /builddir/build/BUILD/hdf5-1.12.1/build/fortran/test/tf_gen.F90:84: undefined reference to `minusone.18' /usr/bin/ld: /tmp/ccYpA0p7.ltrans1.ltrans.o: in function `__th5a_1_8_MOD_test_attr_delete_by_idx.constprop.0': /builddir/build/BUILD/hdf5-1.12.1/build/fortran/test/tf_gen.F90:84: undefined reference to `minusone.31' /usr/bin/ld: /builddir/build/BUILD/hdf5-1.12.1/build/fortran/test/tf_gen.F90:84: undefined reference to `minusone.31' /usr/bin/ld: /builddir/build/BUILD/hdf5-1.12.1/build/fortran/test/tf_gen.F90:84: undefined reference to `minusone.31' /usr/bin/ld: /builddir/build/BUILD/hdf5-1.12.1/build/fortran/test/tf_gen.F90:84: undefined reference to `minusone.31'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:999: fortranlib_test_1_8] Error 1

I have no idea what is going on here.  Any clues?

--
Orion Poplawski
he/him/his - surely the least important thing about me
Manager of NWRA Technical Systems          720-772-5637
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion@xxxxxxxx
Boulder, CO 80301                 https://www.nwra.com/

<<attachment: smime.p7s>>

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux