Skip to content

fckit: fix error: no member named 'lookup' in 'eckit::system::Library'#4828

Merged
becker33 merged 1 commit into
spack:developfrom
harshula:fix-fckit
May 20, 2026
Merged

fckit: fix error: no member named 'lookup' in 'eckit::system::Library'#4828
becker33 merged 1 commit into
spack:developfrom
harshula:fix-fckit

Conversation

@harshula
Copy link
Copy Markdown
Contributor

/tmp/root/spack-stage/spack-stage-fckit-0.14.1-o2amrf5abawjgy2dhws4n55poyh7b7e7/spack-src/src/fckit/Log.cc:176:31: error: no member named 'lookup' in 'eckit::system::Library'; did you mean 'eckit::system::LibraryManager::lookup'?
  176 |         if ( Channel& debug = Library::lookup( libname ).debugChannel() ) {
      |                               ^~~~~~~~~~~~~~~
      |                               eckit::system::LibraryManager::lookup

@harshula
Copy link
Copy Markdown
Contributor Author

harshula commented May 13, 2026

Testing

Without this PR:

# spack install fiat %oneapi@2025.2.0
...
==> No binary for eckit-2.0.2-2cxyna55wrccakkcoq5xfmt7miqj5cot found: installing from source
==> Installing eckit-2.0.2-2cxyna55wrccakkcoq5xfmt7miqj5cot [39/41]
==> Fetching https://mirror.spack.io/_source-cache/archive/46/46b9c1f90e0b565698c5c79c54676401d33738ec82995c025d5d5aabeb13ad2b.tar.gz
    [100%]    1.59 MB @   28.1 MB/s
==> No patches needed for eckit
==> eckit: Executing phase: 'cmake'
==> eckit: Executing phase: 'build'
==> eckit: Executing phase: 'install'
==> eckit: Successfully installed eckit-2.0.2-2cxyna55wrccakkcoq5xfmt7miqj5cot
  Stage: 0.92s.  Cmake: 6.33s.  Build: 23.39s.  Install: 0.41s.  Post-install: 0.11s.  Total: 31.20s
[+] /opt/release/linux-x86_64_v4/eckit-2.0.2-2cxyna55wrccakkcoq5xfmt7miqj5cot
==> No binary for fckit-0.14.1-o2amrf5abawjgy2dhws4n55poyh7b7e7 found: installing from source
==> Installing fckit-0.14.1-o2amrf5abawjgy2dhws4n55poyh7b7e7 [40/41]
==> Fetching https://mirror.spack.io/_source-cache/archive/b1/b15c3a30d4c6aaf9b97d8930bf1b7fd94b015746c421daeb3e648170b30bcbcb.tar.gz
    [100%]  172.80 KB @    9.2 MB/s
==> No patches needed for fckit
==> fckit: Executing phase: 'cmake'
==> fckit: Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
    '/opt/release/linux-x86_64_v4/gmake-4.4.1-fylp5rakozbpbqhl46qmh6v4qjvyperz/bin/make' '-j16'

5 errors found in build log:
     208    /opt/release/linux-x86_64_v4/cmake-3.31.11-rb76k3i6arqieue56vcjdu52
            mbo3j6jv/bin/cmake -E touch src/fckit/CMakeFiles/fckit.dir/module/f
            ckit_resource.F90.o.provides.build
     209    /opt/release/linux-x86_64_v4/cmake-3.31.11-rb76k3i6arqieue56vcjdu52
            mbo3j6jv/bin/cmake -E touch src/fckit/CMakeFiles/fckit.dir/module/f
            ckit_exception.F90.o.provides.build
     210    [ 32%] Building Fortran object src/fckit/CMakeFiles/fckit.dir/modul
            e/fckit_shared_ptr.F90.o
     211    cd /tmp/root/spack-stage/spack-stage-fckit-0.14.1-o2amrf5abawjgy2dh
            ws4n55poyh7b7e7/spack-build-o2amrf5/src/fckit && /opt/release/linux
            -x86_64/compiler-wrapper-1.0-spro2dgnjjawulhw7fxxrqskm73cf4dd/libex
            ec/spack/oneapi/ifx -Dfckit_EXPORTS -I/tmp/root/spack-stage/spack-s
            tage-fckit-0.14.1-o2amrf5abawjgy2dhws4n55poyh7b7e7/spack-build-o2am
            rf5/src/fckit -I/tmp/root/spack-stage/spack-stage-fckit-0.14.1-o2am
            rf5abawjgy2dhws4n55poyh7b7e7/spack-src/src -I/tmp/root/spack-stage/
            spack-stage-fckit-0.14.1-o2amrf5abawjgy2dhws4n55poyh7b7e7/spack-bui
            ld-o2amrf5/src -I/tmp/root/spack-stage/spack-stage-fckit-0.14.1-o2a
            mrf5abawjgy2dhws4n55poyh7b7e7/spack-build-o2amrf5/module -I/opt/rel
            ease/linux-x86_64_v4/eckit-2.0.2-2cxyna55wrccakkcoq5xfmt7miqj5cot/i
            nclude -I/opt/release/linux-x86_64_v4/eckit-2.0.2-2cxyna55wrccakkco
            q5xfmt7miqj5cot/include/eckit -I/opt/release/linux-x86_64_v4/openmp
            i-5.0.8-wubptx4w45y76iahxxgnnpz6dxeb67mk/include -I/opt/release/lin
            ux-x86_64_v4/eckit-2.0.2-2cxyna55wrccakkcoq5xfmt7miqj5cot/include/e
            ckit/mpi -O2 -g -module ../../module -fPIC -c /tmp/root/spack-stage
            /spack-stage-fckit-0.14.1-o2amrf5abawjgy2dhws4n55poyh7b7e7/spack-sr
            c/src/fckit/module/fckit_shared_ptr.F90 -o CMakeFiles/fckit.dir/mod
            ule/fckit_shared_ptr.F90.o
     212    /opt/release/linux-x86_64_v4/cmake-3.31.11-rb76k3i6arqieue56vcjdu52
            mbo3j6jv/bin/cmake -E cmake_copy_f90_mod module/fctest.mod src/fcki
            t/CMakeFiles/fckit.dir/fctest.mod.stamp IntelLLVM
     213    /opt/release/linux-x86_64_v4/cmake-3.31.11-rb76k3i6arqieue56vcjdu52
            mbo3j6jv/bin/cmake -E touch src/fckit/CMakeFiles/fckit.dir/fctest.F
            90.o.provides.build
  >> 214    /tmp/root/spack-stage/spack-stage-fckit-0.14.1-o2amrf5abawjgy2dhws4
            n55poyh7b7e7/spack-src/src/fckit/Log.cc:176:31: error: no member na
            med 'lookup' in 'eckit::system::Library'; did you mean 'eckit::syst
            em::LibraryManager::lookup'?
     215      176 |         if ( Channel& debug = Library::lookup( libname ).de
            bugChannel() ) {
     216          |                               ^~~~~~~~~~~~~~~
     217          |                               eckit::system::LibraryManager
            ::lookup
     218    /opt/release/linux-x86_64_v4/eckit-2.0.2-2cxyna55wrccakkcoq5xfmt7mi
            qj5cot/include/eckit/system/LibraryManager.h:61:27: note: 'eckit::s
            ystem::LibraryManager::lookup' declared here
     219       61 |     static const Library& lookup(const std::string& name);
     220          |                           ^
  >> 221    /tmp/root/spack-stage/spack-stage-fckit-0.14.1-o2amrf5abawjgy2dhws4
            n55poyh7b7e7/spack-src/src/fckit/Log.cc:185:31: error: no member na
            med 'lookup' in 'eckit::system::Library'; did you mean 'eckit::syst
            em::LibraryManager::lookup'?
     222      185 |         if ( Channel& debug = Library::lookup( libname ).de
            bugChannel() ) {
     223          |                               ^~~~~~~~~~~~~~~
     224          |                               eckit::system::LibraryManager
            ::lookup
     225    /opt/release/linux-x86_64_v4/eckit-2.0.2-2cxyna55wrccakkcoq5xfmt7mi
            qj5cot/include/eckit/system/LibraryManager.h:61:27: note: 'eckit::s
            ystem::LibraryManager::lookup' declared here
     226       61 |     static const Library& lookup(const std::string& name);
     227          |                           ^
     228    /opt/release/linux-x86_64_v4/cmake-3.31.11-rb76k3i6arqieue56vcjdu52
            mbo3j6jv/bin/cmake -E cmake_copy_f90_mod module/fckit_log_module.mo
            d src/fckit/CMakeFiles/fckit.dir/fckit_log_module.mod.stamp IntelLL
            VM
     229    /opt/release/linux-x86_64_v4/cmake-3.31.11-rb76k3i6arqieue56vcjdu52
            mbo3j6jv/bin/cmake -E touch src/fckit/CMakeFiles/fckit.dir/module/f
            ckit_log.F90.o.provides.build
     230    2 errors generated.
  >> 231    make[2]: *** [src/fckit/CMakeFiles/fckit.dir/build.make:500: src/fc
            kit/CMakeFiles/fckit.dir/Log.cc.o] Error 1
     232    make[2]: *** Waiting for unfinished jobs....
     233    make[2]: Leaving directory '/tmp/root/spack-stage/spack-stage-fckit
            -0.14.1-o2amrf5abawjgy2dhws4n55poyh7b7e7/spack-build-o2amrf5'
  >> 234    make[1]: *** [CMakeFiles/Makefile2:1221: src/fckit/CMakeFiles/fckit
            .dir/all] Error 2
     235    make[1]: Leaving directory '/tmp/root/spack-stage/spack-stage-fckit
            -0.14.1-o2amrf5abawjgy2dhws4n55poyh7b7e7/spack-build-o2amrf5'
  >> 236    make: *** [Makefile:169: all] Error 2

See build log for details:
  /tmp/root/spack-stage/spack-stage-fckit-0.14.1-o2amrf5abawjgy2dhws4n55poyh7b7e7/spack-build-out.txt

==> Warning: Skipping build of fiat-1.2.0-oh5gnuykn57re2jhprandztor74sxyzq since fckit-0.14.1-o2amrf5abawjgy2dhws4n55poyh7b7e7 failed
==> Error: fiat-1.2.0-oh5gnuykn57re2jhprandztor74sxyzq: Package was not installed
==> Error: Installation request failed.  Refer to reported errors for failing package(s).
# spack install fiat %oneapi@2025.2.0 ^eckit@1.33.0
...
==> No binary for eckit-1.33.0-iutk7bgujrcl5a3xbdoddf7wh3bsofbq found: installing from source
==> Installing eckit-1.33.0-iutk7bgujrcl5a3xbdoddf7wh3bsofbq [38/40]
==> Fetching https://mirror.spack.io/_source-cache/archive/a1/a15f89df0cdaa2d8a74843a1e72a7b3b304958a4fe119b51eec5efadbf113d4f.tar.gz
    [100%]    1.61 MB @    2.4 MB/s
==> No patches needed for eckit
==> eckit: Executing phase: 'cmake'
==> eckit: Executing phase: 'build'
==> eckit: Executing phase: 'install'
==> eckit: Successfully installed eckit-1.33.0-iutk7bgujrcl5a3xbdoddf7wh3bsofbq
  Stage: 1.51s.  Cmake: 6.57s.  Build: 23.05s.  Install: 0.42s.  Post-install: 0.11s.  Total: 31.71s
[+] /opt/release/linux-x86_64_v4/eckit-1.33.0-iutk7bgujrcl5a3xbdoddf7wh3bsofbq
==> No binary for fckit-0.14.1-zzbog3zccivckzbfgiiza5rqg3hpyyq2 found: installing from source
==> Installing fckit-0.14.1-zzbog3zccivckzbfgiiza5rqg3hpyyq2 [39/40]
==> Using cached archive: /opt/sourcecache/_source-cache/archive/b1/b15c3a30d4c6aaf9b97d8930bf1b7fd94b015746c421daeb3e648170b30bcbcb.tar.gz
==> No patches needed for fckit
==> fckit: Executing phase: 'cmake'
==> fckit: Executing phase: 'build'
==> fckit: Executing phase: 'install'
==> fckit: Successfully installed fckit-0.14.1-zzbog3zccivckzbfgiiza5rqg3hpyyq2
  Stage: 0.02s.  Cmake: 2.58s.  Build: 13.16s.  Install: 0.13s.  Post-install: 0.03s.  Total: 15.97s
[+] /opt/release/linux-x86_64_v4/fckit-0.14.1-zzbog3zccivckzbfgiiza5rqg3hpyyq2
==> No binary for fiat-1.2.0-idj5vwh3n24egqelrtn7vze4jrfn5qya found: installing from source
==> Installing fiat-1.2.0-idj5vwh3n24egqelrtn7vze4jrfn5qya [40/40]
==> Fetching https://mirror.spack.io/_source-cache/archive/75/758147410a4a3c493290b87443b4091660b915fcf29f7c4d565c5168ac67745f.tar.gz
    [100%]  243.13 KB @   12.3 MB/s
==> Applied patch /opt/access-spack-packages/spack_repo/access/nri/packages/fiat/intel_warnings_v120.patch
==> fiat: Executing phase: 'cmake'
==> fiat: Executing phase: 'build'
==> fiat: Executing phase: 'install'
==> fiat: Successfully installed fiat-1.2.0-idj5vwh3n24egqelrtn7vze4jrfn5qya
  Stage: 0.12s.  Cmake: 5.91s.  Build: 5.16s.  Install: 0.13s.  Post-install: 0.04s.  Total: 11.42s
[+] /opt/release/linux-x86_64_v4/fiat-1.2.0-idj5vwh3n24egqelrtn7vze4jrfn5qya
# spack install fiat %gcc@13.2.0 ^eckit@1.33.0
...
==> No binary for eckit-1.33.0-4c7dtbvq7rjqfrpnlja7xupd5zeyvzvx found: installing from source
==> Installing eckit-1.33.0-4c7dtbvq7rjqfrpnlja7xupd5zeyvzvx [52/54]
==> Using cached archive: /opt/sourcecache/_source-cache/archive/a1/a15f89df0cdaa2d8a74843a1e72a7b3b304958a4fe119b51eec5efadbf113d4f.tar.gz
==> No patches needed for eckit
==> eckit: Executing phase: 'cmake'
==> eckit: Executing phase: 'build'
==> eckit: Executing phase: 'install'
==> eckit: Successfully installed eckit-1.33.0-4c7dtbvq7rjqfrpnlja7xupd5zeyvzvx
  Stage: 0.05s.  Cmake: 5.44s.  Build: 36.50s.  Install: 0.41s.  Post-install: 0.15s.  Total: 42.59s
[+] /opt/release/linux-x86_64/eckit-1.33.0-4c7dtbvq7rjqfrpnlja7xupd5zeyvzvx
==> No binary for fckit-0.14.1-dltkr4sa765fpvhyqwmk3uylzg7gb5vp found: installing from source
==> Installing fckit-0.14.1-dltkr4sa765fpvhyqwmk3uylzg7gb5vp [53/54]
==> Using cached archive: /opt/sourcecache/_source-cache/archive/b1/b15c3a30d4c6aaf9b97d8930bf1b7fd94b015746c421daeb3e648170b30bcbcb.tar.gz
==> No patches needed for fckit
==> fckit: Executing phase: 'cmake'
==> fckit: Executing phase: 'build'
==> fckit: Executing phase: 'install'
==> fckit: Successfully installed fckit-0.14.1-dltkr4sa765fpvhyqwmk3uylzg7gb5vp
  Stage: 0.02s.  Cmake: 2.24s.  Build: 4.95s.  Install: 0.10s.  Post-install: 0.02s.  Total: 7.39s
[+] /opt/release/linux-x86_64/fckit-0.14.1-dltkr4sa765fpvhyqwmk3uylzg7gb5vp
==> No binary for fiat-1.2.0-kpjgltzkrzekgbxr4a65lnwt244ohtoc found: installing from source
==> Installing fiat-1.2.0-kpjgltzkrzekgbxr4a65lnwt244ohtoc [54/54]
==> Using cached archive: /opt/sourcecache/_source-cache/archive/75/758147410a4a3c493290b87443b4091660b915fcf29f7c4d565c5168ac67745f.tar.gz
==> Applied patch /opt/access-spack-packages/spack_repo/access/nri/packages/fiat/intel_warnings_v120.patch
==> fiat: Executing phase: 'cmake'
==> fiat: Executing phase: 'build'
==> fiat: Executing phase: 'install'
==> fiat: Successfully installed fiat-1.2.0-kpjgltzkrzekgbxr4a65lnwt244ohtoc
  Stage: 0.04s.  Cmake: 4.91s.  Build: 4.15s.  Install: 0.10s.  Post-install: 0.04s.  Total: 9.30s
[+] /opt/release/linux-x86_64/fiat-1.2.0-kpjgltzkrzekgbxr4a65lnwt244ohtoc

With this PR:

# spack install fiat %oneapi@2025.2.0
...
==> No binary for eckit-2.0.2-2cxyna55wrccakkcoq5xfmt7miqj5cot found: installing from source
==> Installing eckit-2.0.2-2cxyna55wrccakkcoq5xfmt7miqj5cot [39/41]
==> Fetching https://mirror.spack.io/_source-cache/archive/46/46b9c1f90e0b565698c5c79c54676401d33738ec82995c025d5d5aabeb13ad2b.tar.gz
    [100%]    1.59 MB @   31.9 MB/s
==> No patches needed for eckit
==> eckit: Executing phase: 'cmake'
==> eckit: Executing phase: 'build'
==> eckit: Executing phase: 'install'
==> eckit: Successfully installed eckit-2.0.2-2cxyna55wrccakkcoq5xfmt7miqj5cot
  Stage: 0.21s.  Cmake: 6.58s.  Build: 22.70s.  Install: 0.44s.  Post-install: 0.11s.  Total: 30.15s
[+] /opt/release/linux-x86_64_v4/eckit-2.0.2-2cxyna55wrccakkcoq5xfmt7miqj5cot
==> No binary for fckit-0.14.2-5trlwh5x4jowbxzopsrgaata5dxrh2di found: installing from source
==> Installing fckit-0.14.2-5trlwh5x4jowbxzopsrgaata5dxrh2di [40/41]
==> Fetching https://github.com/ecmwf/fckit/archive/0.14.2.tar.gz
    [100%]  173.56 KB @    5.1 MB/s
==> No patches needed for fckit
==> fckit: Executing phase: 'cmake'
==> fckit: Executing phase: 'build'
==> fckit: Executing phase: 'install'
==> fckit: Successfully installed fckit-0.14.2-5trlwh5x4jowbxzopsrgaata5dxrh2di
  Stage: 1.36s.  Cmake: 2.82s.  Build: 13.10s.  Install: 0.16s.  Post-install: 0.03s.  Total: 17.58s
[+] /opt/release/linux-x86_64_v4/fckit-0.14.2-5trlwh5x4jowbxzopsrgaata5dxrh2di
==> No binary for fiat-1.2.0-nvwlk2ojak3wyhl2zgabpwirx6r73wxx found: installing from source
==> Installing fiat-1.2.0-nvwlk2ojak3wyhl2zgabpwirx6r73wxx [41/41]
==> Fetching https://mirror.spack.io/_source-cache/archive/75/758147410a4a3c493290b87443b4091660b915fcf29f7c4d565c5168ac67745f.tar.gz
    [100%]  243.13 KB @  577.2 KB/s
==> Applied patch /opt/access-spack-packages/spack_repo/access/nri/packages/fiat/intel_warnings_v120.patch
==> fiat: Executing phase: 'cmake'
==> fiat: Executing phase: 'build'
==> fiat: Executing phase: 'install'
==> fiat: Successfully installed fiat-1.2.0-nvwlk2ojak3wyhl2zgabpwirx6r73wxx
  Stage: 1.09s.  Cmake: 6.32s.  Build: 5.13s.  Install: 0.15s.  Post-install: 0.04s.  Total: 12.84s
[+] /opt/release/linux-x86_64_v4/fiat-1.2.0-nvwlk2ojak3wyhl2zgabpwirx6r73wxx
# spack install fiat %gcc@13.2.0
...
==> No binary for eckit-2.0.2-itkwcp6ifyvcku2yaydypdkk4q4c6qmk found: installing from source
==> Installing eckit-2.0.2-itkwcp6ifyvcku2yaydypdkk4q4c6qmk [60/62]
==> Using cached archive: /opt/sourcecache/_source-cache/archive/46/46b9c1f90e0b565698c5c79c54676401d33738ec82995c025d5d5aabeb13ad2b.tar.gz
==> No patches needed for eckit
==> eckit: Executing phase: 'cmake'
==> eckit: Executing phase: 'build'
==> eckit: Executing phase: 'install'
==> eckit: Successfully installed eckit-2.0.2-itkwcp6ifyvcku2yaydypdkk4q4c6qmk
  Stage: 0.05s.  Cmake: 4.71s.  Build: 44.40s.  Install: 0.45s.  Post-install: 0.16s.  Total: 49.82s
[+] /opt/release/linux-x86_64/eckit-2.0.2-itkwcp6ifyvcku2yaydypdkk4q4c6qmk
==> No binary for fckit-0.14.2-dxn6ql4zhae3ikah6vc46yxebh7qi5jt found: installing from source
==> Installing fckit-0.14.2-dxn6ql4zhae3ikah6vc46yxebh7qi5jt [61/62]
==> Using cached archive: /opt/sourcecache/_source-cache/archive/e1/e12b3a2101c39ec478f1208962ef4c3d0f95ef3ef2d4ff39c804c48f8dfb147b.tar.gz
==> No patches needed for fckit
==> fckit: Executing phase: 'cmake'
==> fckit: Executing phase: 'build'
==> fckit: Executing phase: 'install'
==> fckit: Successfully installed fckit-0.14.2-dxn6ql4zhae3ikah6vc46yxebh7qi5jt
  Stage: 0.02s.  Cmake: 2.01s.  Build: 6.24s.  Install: 0.08s.  Post-install: 0.02s.  Total: 8.44s
[+] /opt/release/linux-x86_64/fckit-0.14.2-dxn6ql4zhae3ikah6vc46yxebh7qi5jt
==> No binary for fiat-1.2.0-uvm6c6mqc66zhftpqfz7zxj3vr2tvaur found: installing from source
==> Installing fiat-1.2.0-uvm6c6mqc66zhftpqfz7zxj3vr2tvaur [62/62]
==> Using cached archive: /opt/sourcecache/_source-cache/archive/75/758147410a4a3c493290b87443b4091660b915fcf29f7c4d565c5168ac67745f.tar.gz
==> Applied patch /opt/access-spack-packages/spack_repo/access/nri/packages/fiat/intel_warnings_v120.patch
==> fiat: Executing phase: 'cmake'
==> fiat: Executing phase: 'build'
==> fiat: Executing phase: 'install'
==> fiat: Successfully installed fiat-1.2.0-uvm6c6mqc66zhftpqfz7zxj3vr2tvaur
  Stage: 0.04s.  Cmake: 4.62s.  Build: 5.21s.  Install: 0.09s.  Post-install: 0.05s.  Total: 10.07s
[+] /opt/release/linux-x86_64/fiat-1.2.0-uvm6c6mqc66zhftpqfz7zxj3vr2tvaur

@harshula harshula marked this pull request as ready for review May 13, 2026 12:51
@harshula
Copy link
Copy Markdown
Contributor Author

ping @becker33 & @alalazo

* Fixed in 0.14.2: ecmwf/fckit#84

Signed-off-by: Harshula Jayasuriya <harshula.jayasuriya@anu.edu.au>
Copy link
Copy Markdown
Contributor

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me. @fmahebert knows these libraries better; any additional comments?

@becker33 becker33 merged commit 93b2edf into spack:develop May 20, 2026
17 checks passed
@harshula harshula deleted the fix-fckit branch May 21, 2026 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants