[ghc5] getDirectoryContents: trouble on Linux/NFS
Volker Stolz
stolz at I2.Informatik.RWTH-Aachen.de
Tue Apr 17 11:19:35 EDT 2001
On several Linux machines
where my home directory is mounted by NFS from a Solaris machine,
I get the following behaviour both in ghc and ghci:
Directory.getDirectoryContents will throw an error on any directory in
"NFS-space", so even *calling* ghc or ghci causes problems:
ghc won't compile anything because it can't find some header files
(they are there) and ghci complains on starting. ghci will fail in the
test case I tried, too.
stolz at kalchas:~/Linux/haskell > /usr/bin/ghci
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 5.00, For Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
WARNING: error while reading directory .Loading package std ... linking ... done.
Prelude> Directory.getDirectoryContents "/home/stolz" >>= print
*** Exception: invalid argument
Action: getDirectoryContents
Reason: Invalid argument
However, calling getDirectoryContents on a local file system like "/usr"
works fine.
ghc[i] was built from source. The Solaris binary provided on the GHC-
download page works fine. I'll investigate FreeBSD as soon as I get home.
Feel free to ask for more details regarding machine setup/compilation.
--
Volker Stolz * stolz at i2.informatik.rwth-aachen.de * PGP + S/MIME
More information about the Glasgow-haskell-bugs
mailing list