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@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 * [EMAIL PROTECTED] * PGP + S/MIME

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to