Spack ignoring packages install options

104 views
Skip to first unread message

Daniel Pino Muñoz

unread,
Apr 18, 2020, 11:35:00 AM4/18/20
to Spack
Dear all,

I recently discovered spack and I am super happy with it! Thank you for this great tool.

I have a question though, I am trying to install a couple of libraries and I would like to install them with the debug flag.

For instance I tried:

spack install omega-h build_type=Debug ^hdf5/dbbi77j

It installed the packages and the corresponding dependencies, but not in debug. You can see the output of 'spack spec omega_h' below at the end of the message.

Additionally, I wanted to install another package (mstk) with the option partitioner=metis and in debug so I used: spack install mstk +exodusii +parallel partitioner=metis build_type=Debug ^hdf5/dbbi77j

Same results: the options partitioner and build_type were ignored. You can also see the 'spack spec mstk' an the end of this message.

Am I doing something wrong when specifying the compilation options?

Thank you in advance,

  Daniel

spack spec mstk

ms...@3.3.5%g...@7.1.0 build_type=RelWithDebInfo ~exodusii~parallel partitioner=none +use_markers arch=linux-ubuntu16.04-skylake
    ^cm...@3.17.0%g...@7.1.0~doc+ncurses+openssl+ownlibs~qt arch=linux-ubuntu16.04-skylake
        ^ncurses@6.2%g...@7.1.0~symlinks+termlib arch=linux-ubuntu16.04-skylake
            ^pkg...@1.6.3%g...@7.1.0 arch=linux-ubuntu16.04-skylake
        ^ope...@1.1.1f%g...@7.1.0+systemcerts arch=linux-ubuntu16.04-skylake
            ^pe...@5.30.1%g...@7.1.0+cpanm+shared+threads arch=linux-ubuntu16.04-skylake
                ^gd...@1.18.1%g...@7.1.0 arch=linux-ubuntu16.04-skylake
                    ^readline@8.0%g...@7.1.0 arch=linux-ubuntu16.04-skylake
            ^zl...@1.2.11%g...@7.1.0+optimize+pic+shared arch=linux-ubuntu16.04-skylake




spack spec omega_h

ome...@9.29.0%g...@7.1.0 build_type=RelWithDebInfo ~examples+mpi+optimize+shared+symbols~throw+trilinos~warnings+zlib arch=linux-ubuntu16.04-skylake
    ^cm...@3.17.0%g...@7.1.0~doc+ncurses+openssl+ownlibs~qt arch=linux-ubuntu16.04-skylake
        ^ncurses@6.2%g...@7.1.0~symlinks+termlib arch=linux-ubuntu16.04-skylake
            ^pkg...@1.6.3%g...@7.1.0 arch=linux-ubuntu16.04-skylake
        ^ope...@1.1.1f%g...@7.1.0+systemcerts arch=linux-ubuntu16.04-skylake
            ^pe...@5.30.1%g...@7.1.0+cpanm+shared+threads arch=linux-ubuntu16.04-skylake
                ^gd...@1.18.1%g...@7.1.0 arch=linux-ubuntu16.04-skylake
                    ^readline@8.0%g...@7.1.0 arch=linux-ubuntu16.04-skylake
            ^zl...@1.2.11%g...@7.1.0+optimize+pic+shared arch=linux-ubuntu16.04-skylake
    ^ope...@3.1.5%g...@7.1.0~cuda+cxx_exceptions fabrics=none ~java~legacylaunchers~memchecker~pmi schedulers=none ~sqlite3~thread_multiple+vt arch=linux-ubuntu16.04-skylake
        ^hw...@1.11.11%g...@7.1.0~cairo~cuda~gl+libxml2~nvml+pci+shared arch=linux-ubuntu16.04-skylake
            ^libpci...@0.13.5%g...@7.1.0 arch=linux-ubuntu16.04-skylake
                ^lib...@2.4.6%g...@7.1.0 arch=linux-ubuntu16.04-skylake
                    ^m...@1.4.18%g...@7.1.0 patches=3877ab548f88597ab2327a2230ee048d2d07ace1062efe81fc92e91b7f39cd00,fc9b61654a3ba1a8d6cd78ce087e7c96366c290bc8d2c299f09828d793b853c8 +sigsegv arch=linux-ubuntu16.04-skylake
                        ^libsi...@2.12%g...@7.1.0 arch=linux-ubuntu16.04-skylake
                ^util-...@1.19.1%g...@7.1.0 arch=linux-ubuntu16.04-skylake
            ^lib...@2.9.9%g...@7.1.0~python arch=linux-ubuntu16.04-skylake
                ^libi...@1.16%g...@7.1.0 arch=linux-ubuntu16.04-skylake
                ^x...@5.2.5%g...@7.1.0 arch=linux-ubuntu16.04-skylake
            ^num...@2.0.12%g...@7.1.0 arch=linux-ubuntu16.04-skylake
                ^auto...@2.69%g...@7.1.0 arch=linux-ubuntu16.04-skylake
                ^auto...@1.16.2%g...@7.1.0 arch=linux-ubuntu16.04-skylake
    ^tril...@12.18.1%g...@7.1.0~adios2~alloptpkgs+amesos+amesos2+anasazi+aztec+belos+boost build_type=RelWithDebInfo ~cgns~chaco~complex~debug~dtk+epetra+epetraext+exodus+explicit_template_instantiation~float+fortran~fortrilinos+glm gotype=long +gtest+hdf5+hypre+ifpack+ifpack2~intrepid~intrepid2~isorropia+kokkos+matio~mesquite+metis~minitensor+ml+muelu+mumps+netcdf~nox~openmp~phalanx~piro~pnetcdf~python~rol~rythmos+sacado~shards+shared~shylu~stk+suite-sparse~superlu~superlu-dist~teko~tempus+teuchos+tpetra~x11~xsdkflags~zlib+zoltan+zoltan2 arch=linux-ubuntu16.04-skylake
        ^bo...@1.72.0%g...@7.1.0+atomic+chrono~clanglibcpp~container~context~coroutine cxxstd=98 +date_time~debug+exception~fiber+filesystem+graph~icu+iostreams+locale+log+math~mpi+multithreaded~numpy~pic+program_options~python+random+regex+serialization+shared+signals~singlethreaded+system~taggedlayout+test+thread+timer~versionedlayout visibility=hidden +wave arch=linux-ubuntu16.04-skylake
            ^bz...@1.0.8%g...@7.1.0+shared arch=linux-ubuntu16.04-skylake
                ^diffutils@3.7%g...@7.1.0 arch=linux-ubuntu16.04-skylake
        ^g...@0.9.7.1%g...@7.1.0 build_type=RelWithDebInfo arch=linux-ubuntu16.04-skylake
        ^hd...@1.10.6%g...@7.1.0~cxx~debug~fortran+hl+mpi+pic+shared~szip~threadsafe arch=linux-ubuntu16.04-skylake
        ^hy...@2.18.2%g...@7.1.0~complex~debug~int64~internal-superlu~mixedint+mpi~openmp+shared~superlu-dist arch=linux-ubuntu16.04-skylake
            ^open...@0.3.9%g...@7.1.0~consistent_fpcsr~ilp64+pic+shared threads=none arch=linux-ubuntu16.04-skylake
        ^ma...@1.5.13%g...@7.1.0+hdf5+shared+zlib arch=linux-ubuntu16.04-skylake
        ^me...@5.1.0%g...@7.1.0 build_type=Release ~gdb~int64 patches=4991da938c1d3a1d3dea78e49bbebecba00273f98df2a656e38b83d55b281da1,b1225da886605ea558db7ac08dd8054742ea5afe5ed61ad4d0fe7a495b1270d2 ~real64+shared arch=linux-ubuntu16.04-skylake
        ^mu...@5.2.0%g...@7.1.0+complex+double+float~int64~metis+mpi~parmetis~ptscotch~scotch+shared arch=linux-ubuntu16.04-skylake
            ^netlib-s...@2.1.0%g...@7.1.0 build_type=RelWithDebInfo patches=f2baedde688ffe4c20943c334f580eb298e04d6f35c86b90a1f4e8cb7ae344a2 ~pic+shared arch=linux-ubuntu16.04-skylake
        ^netc...@4.7.3%g...@7.1.0~dap~hdf4+mpi~parallel-netcdf+pic+shared arch=linux-ubuntu16.04-skylake
        ^parm...@4.0.3%g...@7.1.0 build_type=RelWithDebInfo ~gdb patches=4f892531eb0a807eb1b82e683a416d3e35154a455274cf9b162fb02054d11a5b,50ed2081bc939269689789942067c58b3e522c269269a430d5d34c00edbc5870,704b84f7c7444d4372cb59cca6e1209df4ef3b033bc4ee3cf50f369bce972a9d +shared arch=linux-ubuntu16.04-skylake
        ^suite-...@5.7.2%g...@7.1.0~cuda~openmp+pic~tbb arch=linux-ubuntu16.04-skylake

Gamblin, Todd

unread,
Apr 18, 2020, 1:05:28 PM4/18/20
to Daniel Pino Muñoz, Spack
Daniel:

`spack find` shows what’s installed — what do you see if you do `spack find -vd omega-h`?  I suspect the build type is set on the installation.

`spack spec` tells you what *would* be installed given the supplied spec. So if you say `spack spec omega-h build_type=Debug`, you’ll see the variant set properly there, but that’s just telling you the result of concretizing, not installing anything.

Todd


---
Sent from Workspace ONE Boxer

--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spack/19473862-1626-4c25-a43f-7ead87e845d6%40googlegroups.com.

Daniel Pino Muñoz

unread,
Apr 18, 2020, 2:09:09 PM4/18/20
to Gamblin, Todd, Spack
Hi Todd,

Thanks for replying :)

'spack find -vd omega-h'  gives me  this:
ome...@9.29.0 build_type=Debug ~examples+mpi+optimize+shared+symbols~throw+trilinos~warnings+zlib
(I spare you the bounch of other lines)

Which corresponds indeed to the options that I set when I installed the packages.

So 'spack find -vd ' gives me the actual install of the different packages?

Best,

  Daniel

Gamblin, Todd

unread,
Apr 18, 2020, 2:11:57 PM4/18/20
to Daniel Pino Muñoz, Spack
Reply all
Reply to author
Forward
0 new messages