How to do manual installation?

52 views
Skip to first unread message

Quan WANG

unread,
Dec 19, 2020, 7:46:25 PM12/19/20
to Spack
Dear experts,

I am completely new to spack (48h at most).
Is it possible to do some manual changes during the building step?
For example, when I try to install a package, I got some ld error.
After some google, i remember the walk around by adding "-latomic" at the link stage.
I have tried 
ldflags=-latomic
and
ldlibs=-latomic
None of them worked.
I also tried to build it with --keep-prefix, and working in the /tmp folder.
But I got:
"Spack compiler must be run from Spack! Input 'SPACK_ENV_PATH' is missing."

I appreciate if anyone can help a beginner, or point me to the correct direction.

Thanks,
Quan

Pariksheet Nanda

unread,
Dec 21, 2020, 12:57:16 PM12/21/20
to Spack
Hi Quan,

Welcome to spack!

Which package are you trying to install that is missing or not finding its dependency on libatomic-ops?  That sounds like a bug.

Generally, if a package is not finding a library:
  1. The package must depend on it with the "depends_on(...)" function in the package.py file.  You haven't told us what package you're compiling so I can't tell you too much more here; maybe you could run `spack cd -p name_of_your_package` and see whether libatomic-ops is present anywhere in the package.py file.
  2. If you're asking spack to use an external package instead of letting spack compile libatomic-ops on it's own, it's possible that the file variant itself is missing, namely if you or your sysadmin compiled libatomic-ops, but the package you're compiling with spack is looking for, say, the dynamic libatomic.so library, but only the static libatomic.a versions were compiled and installed externally.

At this point it's probably better that you open a bug on GitHub and follow the prompts from the issue template to help us better understand what's going on.

Pariksheet


On 12/19/20 7:46 PM, Quan WANG wrote:
*Message sent from a system outside of UConn.*

--
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/840ea725-22bb-4301-a0ea-b5326c549eccn%40googlegroups.com.


Quan Wang

unread,
Dec 23, 2020, 9:39:31 AM12/23/20
to Pariksheet Nanda, Spack
Hi Pariksheet,

Thanks for answering, eventually I have decided to upgrade to ubuntu 20.04, and the installation was successful.
I will do some research and report back if I find anything.

Cheers,
Quan


Reply all
Reply to author
Forward
0 new messages