Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error in spack #166

Closed
lee218llnl opened this issue Sep 22, 2022 · 1 comment · Fixed by #170
Closed

build error in spack #166

lee218llnl opened this issue Sep 22, 2022 · 1 comment · Fixed by #170

Comments

@lee218llnl
Copy link

I'm getting the following error when building in spack:

1 error found in build log:
     81    -- Looking for pthread_create in pthreads
     82    -- Looking for pthread_create in pthreads - not found
     83    -- Looking for pthread_create in pthread
     84    -- Looking for pthread_create in pthread - found
     85    -- Found Threads: TRUE
     86    -- hip::amdhip64 is SHARED_LIBRARY
  >> 87    CMake Error at cmake/Packages.cmake:120 (find_package):
     88      Could not find a package configuration file provided by "ROCmVersi
           on" with
     89      any of the following names:
     90    
     91        ROCmVersionConfig.cmake
     92        rocmversion-config.cmake
     93    

If it helps, here is my spec:

[lee218@rzvernal11:spack]$ ./bin/spack spec omnitrace@main %[email protected]
==> Warning: Missing a source id for omnitrace@main
Input spec
--------------------------------
omnitrace@main%[email protected]

Concretized
--------------------------------
omnitrace@main%[email protected]~caliper~ipo~mpi+mpi_headers+ompt+papi~perfetto_tools~python+rocm~strip~tau build_type=Release arch=cray-rhel8-zen
    ^[email protected]%[email protected]~doc+ncurses+ownlibs~qt build_type=Release arch=cray-rhel8-zen
    ^[email protected]%[email protected]~ipo+openmp~stat_dysect~static build_type=RelWithDebInfo arch=cray-rhel8-zen
        ^[email protected]%[email protected]+atomic+chrono~clanglibcpp~container~context~contract~coroutine+date_time~debug~exception~fiber+filesystem~graph~graph_parallel~icu~iostreams~json~locale~log~math~mpi+multithreaded~nowide~numpy~pic~program_options~python~random~regex~serialization+shared~signals~singlethreaded~stacktrace+system~taggedlayout~test+thread+timer~type_erasure~versionedlayout~wave cxxstd=98 patches=57a8401,a440f96 visibility=hidden arch=cray-rhel8-zen
        ^[email protected]%[email protected]~bzip2~debuginfod+nls~xz arch=cray-rhel8-zen
            ^[email protected]%[email protected]+bzip2+curses+git~libunistring+libxml2+tar+xz arch=cray-rhel8-zen
                ^[email protected]%[email protected]~debug~pic+shared arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                ^[email protected]%[email protected] libs=shared,static arch=cray-rhel8-zen
                ^[email protected]%[email protected]~python arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected]~pic libs=shared,static arch=cray-rhel8-zen
                    ^[email protected]%[email protected]+optimize+pic+shared patches=0d38234 arch=cray-rhel8-zen
                ^[email protected]%[email protected]~symlinks+termlib abi=none arch=cray-rhel8-zen
                ^[email protected]%[email protected] zip=pigz arch=cray-rhel8-zen
            ^[email protected]%[email protected]+sigsegv patches=3877ab5,fc9b616 arch=cray-rhel8-zen
        ^[email protected]%[email protected]~ipo+shared+tm build_type=RelWithDebInfo cxxstd=default patches=62ba015,ce1fb16,d62cb66 arch=cray-rhel8-zen
        ^[email protected]%[email protected]+pic arch=cray-rhel8-zen
    ^[email protected]%[email protected]~ipo build_type=Release patches=7ed1232 arch=cray-rhel8-zen
        ^[email protected]%[email protected]~ipo build_type=Release arch=cray-rhel8-zen
            ^[email protected]%[email protected]~ipo~link_llvm_dylib~llvm_dylib~openmp+rocm-device-libs build_type=Release patches=a08bbe1 arch=cray-rhel8-zen
                ^[email protected]%[email protected]+bz2+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib patches=0d98e93,4c24573,ebdca64,f2fd060 arch=cray-rhel8-zen
                    ^[email protected]%[email protected]+libbsd arch=cray-rhel8-zen
                        ^[email protected]%[email protected] arch=cray-rhel8-zen
                            ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                        ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected]~docs~shared certs=mozilla arch=cray-rhel8-zen
                    ^[email protected]%[email protected]+column_metadata+dynamic_extensions+fts~functions+rtree arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                ^[email protected]%[email protected]~gmp~ipo~python build_type=RelWithDebInfo arch=cray-rhel8-zen
            ^[email protected]%[email protected]~ipo build_type=Release arch=cray-rhel8-zen
        ^[email protected]%[email protected] arch=cray-rhel8-zen
            ^[email protected]%[email protected]+glx+llvm+opengl~opengles+osmesa~strip buildtype=release default_library=shared patches=ee737d1 arch=cray-rhel8-zen
                ^[email protected]%[email protected] patches=b72914f arch=cray-rhel8-zen
                ^[email protected]%[email protected]+lex~nls arch=cray-rhel8-zen
                ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                ^[email protected]%[email protected]~block_signals~conservative_checks~cxx_exceptions~debug~debug_frame+docs~pic+tests+weak_backtrace~xz~zlib components=none libs=shared,static arch=cray-rhel8-zen
                ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                        ^[email protected]%[email protected] arch=cray-rhel8-zen
                        ^[email protected]%[email protected] arch=cray-rhel8-zen
                            ^[email protected]%[email protected] arch=cray-rhel8-zen
                        ^[email protected]%[email protected] arch=cray-rhel8-zen
                        ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected]+cpanm+shared+threads arch=cray-rhel8-zen
                        ^[email protected]%[email protected]+cxx~docs+stl patches=26090f4,b231fcc arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                ^[email protected]%[email protected] arch=cray-rhel8-zen
                ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                ^[email protected]%[email protected] patches=9c87472,aa6c50d arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                ^[email protected]%[email protected] arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                        ^[email protected]%[email protected] arch=cray-rhel8-zen
                            ^[email protected]%[email protected] arch=cray-rhel8-zen
                        ^[email protected]%[email protected] arch=cray-rhel8-zen
        ^[email protected]%[email protected]+image~ipo+shared build_type=Release patches=71e6851 arch=cray-rhel8-zen
            ^[email protected]%[email protected]~ipo+shared build_type=Release patches=f926273 arch=cray-rhel8-zen
                ^[email protected]%[email protected]~docs arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
                        ^[email protected]%[email protected] arch=cray-rhel8-zen
                ^[email protected]%[email protected] patches=4e1d78c,62fc8a8,ff37630 arch=cray-rhel8-zen
                    ^[email protected]%[email protected] patches=7793209 arch=cray-rhel8-zen
                    ^[email protected]%[email protected] arch=cray-rhel8-zen
            ^[email protected]%[email protected] arch=cray-rhel8-zen
        ^[email protected]%[email protected] arch=cray-rhel8-zen
        ^[email protected]%[email protected] arch=cray-rhel8-zen
            ^[email protected]%[email protected] arch=cray-rhel8-zen
        ^[email protected]%[email protected]~ipo build_type=Release arch=cray-rhel8-zen
        ^[email protected]%[email protected] arch=cray-rhel8-zen
    ^[email protected]%[email protected]~cuda+example~infiniband~lmsensors~nvml~powercap~rapl~rocm~rocm_smi~sde+shared~static_tools arch=cray-rhel8-zen
    ^[email protected]%[email protected]~ipo+shared build_type=Release patches=8bc40cc arch=cray-rhel8-zen
    ^[email protected]%[email protected]~ipo build_type=Release patches=16754a1 arch=cray-rhel8-zen
    ^[email protected]%[email protected]~ipo build_type=Release arch=cray-rhel8-zen
        ^[email protected]%[email protected] arch=cray-rhel8-zen
            ^[email protected]%[email protected] arch=cray-rhel8-zen
@jrmadsen
Copy link
Collaborator

Ah... yes, that ROCmVersion package is looking for a <ROCM_INSTALL_PATH>/.info/version file. If ROCm is entirely installed via Spack, I guess that file is located in an unexpected place or doesn't exist at all. Unfortunately, this might not be a quick fix as I started relying on that information to ensure that all the ROCm packages were from the same version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants