Reinstallation + Recompilation

391 views
Skip to first unread message

Martin Oberzalek

unread,
Jan 20, 2021, 1:36:48 AM1/20/21
to Spack
Hi,

Is there a solution to recompile + reinstall a package? Eg: for compiling it with debugable flags.

spack uninstall --force xyz
CFLAGS="-g" spack install --no-cache xyz

spack concretize # to fix the env again


I wan't to exchange the libraries while the application that is using it, is running.
Therefore I wan't to keep the timegap small. But spack does not wan't to recompile a
package as long as the sourcecode does not change.

Greetins, Martin



Marc Mengel

unread,
Jan 21, 2021, 11:23:40 PM1/21/21
to Martin Oberzalek, Spack
spack install --overwrite  ...

Is the command to reinstall the existing package, leaving the packages that depend on it alone.
You probably want --no-cache as well, so you don't get a cached copy of the source.


--
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/1611124605.6117.7.camel%40ssi-schaefer.com.
Reply all
Reply to author
Forward
0 new messages