Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 808633 - sci-libs/hdf5-1.12.1: fails to compile when an earlier copy of hdf5 is already installed (Error: Symbol ‘h5i_invalid_hid_f’ at (1) has no IMPLICIT type.)
Summary: sci-libs/hdf5-1.12.1: fails to compile when an earlier copy of hdf5 is alread...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL: https://github.com/HDFGroup/hdf5/issu...
Whiteboard:
Keywords: PullRequest
: 817920 (view as bug list)
Depends on:
Blocks: hdf5-1.12
  Show dependency tree
 
Reported: 2021-08-16 19:46 UTC by Toralf Förster
Modified: 2022-05-31 23:44 UTC (History)
26 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.88 KB, text/plain)
2021-08-16 19:46 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,321.64 KB, text/plain)
2021-08-16 19:46 UTC, Toralf Förster
Details
environment (environment,95.99 KB, text/plain)
2021-08-16 19:46 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,48.57 KB, application/x-bzip)
2021-08-16 19:46 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,13.91 KB, application/x-bzip)
2021-08-16 19:46 UTC, Toralf Förster
Details
sci-libs:hdf5-1.12.1:20210816-193359.log.bz2 (sci-libs:hdf5-1.12.1:20210816-193359.log.bz2,46.88 KB, application/x-bzip)
2021-08-16 19:46 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,71.57 KB, application/x-bzip)
2021-08-16 19:46 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-08-16 19:46:40 UTC
ninja: build stopped: subcommand failed.
 * ERROR: sci-libs/hdf5-1.12.1::gentoo failed (compile phase):
 *   ninja -v -j3 -l0 failed
 * 
 * Call stack:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-j3-20210813-003635

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 12.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.1
Python 3.9.6
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.54.0 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  HEAD of ::gentoo
commit 208f7cdcb3b3be74aeaa88a099e5904ba536773f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Aug 16 18:21:43 2021 +0000

    2021-08-16 18:21:42 UTC

emerge -qpvO sci-libs/hdf5
[ebuild     U ] sci-libs/hdf5-1.12.1 [1.10.5-r1] USE="fortran hl zlib -cxx -debug -doc% -examples (-mpi) -szip -test% -threads -unsupported"
Comment 1 Toralf Förster gentoo-dev 2021-08-16 19:46:41 UTC
Created attachment 733366 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-08-16 19:46:43 UTC
Created attachment 733369 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-08-16 19:46:44 UTC
Created attachment 733372 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-08-16 19:46:46 UTC
Created attachment 733375 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-08-16 19:46:47 UTC
Created attachment 733378 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-08-16 19:46:48 UTC
Created attachment 733381 [details]
sci-libs:hdf5-1.12.1:20210816-193359.log.bz2
Comment 7 Toralf Förster gentoo-dev 2021-08-16 19:46:49 UTC
Created attachment 733384 [details]
temp.tar.bz2
Comment 8 Alexandre Ferreira 2021-08-17 15:01:56 UTC
same here.
Comment 9 Kobboi 2021-08-17 19:19:59 UTC
Actual error: Error: Symbol ‘h5i_invalid_hid_f’ at (1) has no IMPLICIT type. Please change the subject accordingly
Comment 10 email200202 2021-08-18 04:50:30 UTC
same here
Comment 11 Andrey Grozin gentoo-dev 2021-08-18 06:57:03 UTC
I have:

FAILED: fortran/src/CMakeFiles/hdf5_fortran-static.dir/H5Lff.F90.o bin/static/h5l.mod 
/usr/bin/x86_64-pc-linux-gnu-gfortran -I/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1/fortr
an/src -I/usr/include -I/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1/fortran/src -I/var/tm
p/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1_build/bin/static -I/var/tmp/portage/sci-libs/hdf5-1.
12.1/work/hdf5-1.12.1_build/fortran -I/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1_build/f
ortran/src -I/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1_build/src -I/var/tmp/portage/sci
-libs/hdf5-1.12.1/work/hdf5-1.12.1/src -O2 -march=native -pipe -O2 -march=native -pipe -fdiagnostics
-urls=never -fno-diagnostics-color -Jbin/static -fPIC -Waliasing -Wall -Wcharacter-truncation -Wextr
a -Wimplicit-interface -Wsurprising -Wunderflow -pedantic -ffree-form -fimplicit-none -std=f2008 -Wa
rray-temporaries -Wintrinsics-std -Wimplicit-procedure -Wreal-q-constant -Wfunction-elimination -Wre
alloc-lhs -Wrealloc-lhs-all -Wno-c-binding-type -fpreprocessed -o fortran/src/CMakeFiles/hdf5_fortra
n-static.dir/H5Lff.F90.o -c fortran/src/CMakeFiles/hdf5_fortran-static.dir/H5Lff.F90-pp.f90
/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1/fortran/src/H5Lff.F90:49:28:

   49 |      TYPE(H5O_TOKEN_T_F) :: token
      |                            1
Error: Derived type at (1) has not been previously defined and so cannot appear in a derived type definition
/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1/fortran/src/H5Lff.F90:644:24:

  644 |     TYPE(H5O_TOKEN_T_F), INTENT(OUT), TARGET :: token ! If the link is a hard link, token specifies the object token that the link points to
      |                        1
Error: Derived type ‘h5o_token_t_f’ at (1) is being used before it is defined
/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1/fortran/src/H5Lff.F90:660:47:

  660 |          IMPORT :: HID_T, SIZE_T, H5O_TOKEN_T_F
      |                                               1
Error: Cannot IMPORT ‘h5o_token_t_f’ from host scoping unit at (1) - does not exist.
/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1/fortran/src/H5Lff.F90:667:29:

  667 |          TYPE(H5O_TOKEN_T_F), INTENT(OUT) :: token
      |                             1
Error: Derived type ‘h5o_token_t_f’ at (1) is being used before it is defined
/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1/fortran/src/H5Lff.F90:753:24:

  753 |     TYPE(H5O_TOKEN_T_F), INTENT(OUT), TARGET :: token  ! If the link is a hard link, token specifies the object token that the link points to
      |                        1
Error: Derived type ‘h5o_token_t_f’ at (1) is being used before it is defined
/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1/fortran/src/H5Lff.F90:771:56:

  771 |          IMPORT :: HID_T, SIZE_T, HSIZE_T, H5O_TOKEN_T_F
      |                                                        1
Error: Cannot IMPORT ‘h5o_token_t_f’ from host scoping unit at (1) - does not exist.
/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1/fortran/src/H5Lff.F90:783:29:

  783 |          TYPE(H5O_TOKEN_T_F), INTENT(OUT) :: token
      |                             1
Error: Derived type ‘h5o_token_t_f’ at (1) is being used before it is defined
/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1/fortran/src/H5Lff.F90:730:53:

  730 |        link_type, f_corder_valid, corder, cset, token, val_size, hdferr, lapl_id)
      |                                                     1
Error: Symbol ‘token’ at (1) has no IMPLICIT type
/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1/fortran/src/H5Lff.F90:628:53:

  628 |        cset, corder, f_corder_valid, link_type, token, val_size, &
      |                                                     1
Error: Symbol ‘token’ at (1) has no IMPLICIT type
/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1/fortran/src/H5Lff.F90:768:56:

  768 |             link_type, corder_valid, corder, cset, token, val_size, lapl_id_default) &
      |                                                        1
Error: Symbol ‘token’ at (1) has no IMPLICIT type
/var/tmp/portage/sci-libs/hdf5-1.12.1/work/hdf5-1.12.1/fortran/src/H5Lff.F90:657:56:

  657 |             cset, corder, corder_valid, link_type, token, val_size, &
      |                                                        1
Error: Symbol ‘token’ at (1) has no IMPLICIT type

Is it the same bug or something different? h5i_invalid_hid_f is never mentioned in the log file.
Comment 12 Michelangelo Scopelliti 2021-08-19 18:23:04 UTC
Building with MAKEOPTS="-j1", the error "symbol has no IMPLICIT type" applies to h5f_libver_error_f, h5f_libver_nbounds_f, h5f_libver_v110_f, h5f_libver_v112_f... and other 11 symbols (at least). All those symbols are defined in fortran/src/H5f90global.F90
Comment 13 Andreas Proteus 2021-08-19 20:07:46 UTC
Uninstalling the previous version (emerge -C ) before emerging version 1.12.1 worked here.
Comment 14 Pli 2021-08-19 22:08:50 UTC
(In reply to Andreas Proteus from comment #13)
> Uninstalling the previous version (emerge -C ) before emerging version
> 1.12.1 worked here.

it worked for me too
Comment 15 Michelangelo Scopelliti 2021-08-19 23:19:25 UTC
Thus, according to comment #13 and comment #14, h5global.mod from system takes the precedence over the new one; looking at the generated build.ninja, is it possible that -I/usr/include appears too early in the relative INCLUDES?
Comment 16 Justin Keogh 2021-10-07 00:11:30 UTC
(In reply to Andreas Proteus from comment #13)
> Uninstalling the previous version (emerge -C ) before emerging version
> 1.12.1 worked here.

Worked here as well.
Comment 17 Larry the Git Cow gentoo-dev 2021-10-12 06:52:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=225b7ee7e532e58f541e30fbb95d4b193b50236f

commit 225b7ee7e532e58f541e30fbb95d4b193b50236f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-12 06:51:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-12 06:52:24 +0000

    sci-libs/hdf5: workaround build failure with older hdf5 installed
    
    Thanks to upstream for the helpful suggestion!
    
    Bug: https://github.com/HDFGroup/hdf5/issues/1027
    Closes: https://bugs.gentoo.org/808633
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/hdf5/hdf5-1.12.1-r1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-13 02:16:24 UTC
*** Bug 817920 has been marked as a duplicate of this bug. ***
Comment 19 Kobboi 2022-05-19 16:22:18 UTC
I am still getting this error on 1.12.2-r1. I was on 1.10 before, but apparently someone removed some '<1.12' or something recently, making this pop up again.
Comment 20 Kobboi 2022-05-19 16:23:36 UTC
(...)
[487/514] /usr/bin/x86_64-pc-linux-gnu-gfortran -I/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2/fortran/src -I/usr/include -I/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/h
df5-1.12.2/fortran/src -I/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2_build/bin/shared -I/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2_build/fortran -I/var/tmp
/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2_build/fortran/src -I/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2_build/src -I/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/wor
k/hdf5-1.12.2/src -O2 -march=znver3 -pipe -g -ggdb3 -O2 -march=znver3 -pipe -g -ggdb3 -fdiagnostics-urls=never -fno-diagnostics-color -Jbin/shared -fPIC -Waliasing -Wall -Wcharacter-tr
uncation -Wextra -Wimplicit-interface -Wsurprising -Wunderflow -pedantic -ffree-form -fimplicit-none -std=f2008 -Warray-temporaries -Wintrinsics-std -Wimplicit-procedure -Wreal-q-const
ant -Wfunction-elimination -Wrealloc-lhs -Wrealloc-lhs-all -Wno-c-binding-type -Winteger-division -Wfrontend-loop-interchange -fpreprocessed -o fortran/src/CMakeFiles/hdf5_fortran-shar
ed.dir/H5Lff.F90.o -c fortran/src/CMakeFiles/hdf5_fortran-shared.dir/H5Lff.F90-pp.f90
FAILED: fortran/src/CMakeFiles/hdf5_fortran-shared.dir/H5Lff.F90.o bin/shared/h5l.mod 
/usr/bin/x86_64-pc-linux-gnu-gfortran -I/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2/fortran/src -I/usr/include -I/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2
/fortran/src -I/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2_build/bin/shared -I/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2_build/fortran -I/var/tmp/portage/s
ci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2_build/fortran/src -I/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2_build/src -I/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.1
2.2/src -O2 -march=znver3 -pipe -g -ggdb3 -O2 -march=znver3 -pipe -g -ggdb3 -fdiagnostics-urls=never -fno-diagnostics-color -Jbin/shared -fPIC -Waliasing -Wall -Wcharacter-truncation -
Wextra -Wimplicit-interface -Wsurprising -Wunderflow -pedantic -ffree-form -fimplicit-none -std=f2008 -Warray-temporaries -Wintrinsics-std -Wimplicit-procedure -Wreal-q-constant -Wfunc
tion-elimination -Wrealloc-lhs -Wrealloc-lhs-all -Wno-c-binding-type -Winteger-division -Wfrontend-loop-interchange -fpreprocessed -o fortran/src/CMakeFiles/hdf5_fortran-shared.dir/H5L
ff.F90.o -c fortran/src/CMakeFiles/hdf5_fortran-shared.dir/H5Lff.F90-pp.f90
/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2/fortran/src/H5Lff.F90:49:28:

   49 |      TYPE(H5O_TOKEN_T_F) :: token
      |                            1
Error: Derived type at (1) has not been previously defined and so cannot appear in a derived type definition
/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2/fortran/src/H5Lff.F90:644:24:

  644 |     TYPE(H5O_TOKEN_T_F), INTENT(OUT), TARGET :: token ! If the link is a hard link, token specifies the object token that the link points to
      |                        1
Error: Derived type ‘h5o_token_t_f’ at (1) is being used before it is defined
/var/tmp/portage/sci-libs/hdf5-1.12.2-r1/work/hdf5-1.12.2/fortran/src/H5Lff.F90:660:47:

  660 |          IMPORT :: HID_T, SIZE_T, H5O_TOKEN_T_F
      |                                               1

(...)
I was on 1.10.5-r1 to be precise.
Comment 21 Larry the Git Cow gentoo-dev 2022-05-31 23:44:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b5147d4ad8bb8149453c743042e87756d5e11e4

commit 7b5147d4ad8bb8149453c743042e87756d5e11e4
Author:     Roman Beranek <roman.beranek@prusa3d.com>
AuthorDate: 2022-05-31 23:02:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-31 23:43:41 +0000

    sci-libs/hdf5: fix cmake include dir regression
    
    An attempt to build hdf5-1.12.2-r1 with USE='fortran' on a system where
    an older version of the package has already been installed will fail due
    to system headers taking precedence over the ones present in the source
    directory.
    
    This exact issue (#808633) has already been fixed in 225b7ee for 1.12.1,
    though the workaround somehow hadn't made it into the new ebuild. This
    commit brings it in.
    
    Bug: HDFGroup/hdf5#1027
    Closes: https://bugs.gentoo.org/808633
    Signed-off-by: Roman Beranek <roman.beranek@prusa3d.com>
    Closes: https://github.com/gentoo/gentoo/pull/25712
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/hdf5/hdf5-1.12.2-r1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)