summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-05-10 11:10:07 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-05-10 11:10:07 -0700
commita49662276d59a944fa2224daf6d71e0254684516 (patch)
tree42ceb864b12c9e2f419c851cc0cbc8424d62ae07 /lib
parent3e717842c94458c1458d6c85ed90fdbffbe06e79 (diff)
parent4cb91d6f7b6680140e0011da1f7965c430920067 (diff)
downloadspack-a49662276d59a944fa2224daf6d71e0254684516.tar.gz
spack-a49662276d59a944fa2224daf6d71e0254684516.tar.bz2
spack-a49662276d59a944fa2224daf6d71e0254684516.tar.xz
spack-a49662276d59a944fa2224daf6d71e0254684516.zip
Merge branch 'fix-doc-flock' of git://github.com/luca-heltai/spack into luca-heltai-fix-doc-flock
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/basic_usage.rst32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/spack/docs/basic_usage.rst b/lib/spack/docs/basic_usage.rst
index 29791d98c4..58e67e4550 100644
--- a/lib/spack/docs/basic_usage.rst
+++ b/lib/spack/docs/basic_usage.rst
@@ -1246,6 +1246,38 @@ several variants:
spack deactivate -a python
+A word of warning
+-----------------------
+
+If you run `spack find` and you get an error similar to the following:
+
+.. code-block:: sh
+
+ $ ./spack find
+ Traceback (most recent call last):
+ File "./spack", line 176, in <module>
+ main()
+ File "./spack", line 154, in main
+ return_val = command(parser, args)
+ File "./spack/lib/spack/spack/cmd/find.py", line 170, in find
+ specs = set(spack.installed_db.query(**q_args))
+ File "./spack/lib/spack/spack/database.py", line 551, in query
+ with self.read_transaction():
+ File "./spack/lib/spack/spack/database.py", line 598, in __enter__
+ if self._enter() and self._acquire_fn:
+ File "./spack/lib/spack/spack/database.py", line 608, in _enter
+ return self._db.lock.acquire_read(self._timeout)
+ File "./spack/lib/spack/llnl/util/lock.py", line 103, in acquire_read
+ self._lock(fcntl.LOCK_SH, timeout) # can raise LockError.
+ File "./spack/lib/spack/llnl/util/lock.py", line 64, in _lock
+ fcntl.lockf(self._fd, op | fcntl.LOCK_NB)
+ IOError: [Errno 38] Function not implemented
+
+
+it most likely means that you are trying to run spack in a shared
+network filesystem without support for lockf/flock. Currently this is not
+supported, and you should ask your system administrator to enable lockf/flock.
+
Getting Help
-----------------------