[GHC] #8151: ghc-7.4.2 on OpenIndiana (Solaris) createSubprocess fails
GHC
ghc-devs at haskell.org
Fri Jul 31 14:06:18 UTC 2015
#8151: ghc-7.4.2 on OpenIndiana (Solaris) createSubprocess fails
-------------------------------------+-------------------------------------
Reporter: troydm | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.4.2
Resolution: | Keywords:
Operating System: Solaris | Architecture: x86_64
Type of failure: Runtime | (amd64)
performance bug | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by kgardas):
Honestly it's quite strange that w/o -threaded this works for you, since:
{{{
karel at silence:/tmp/ttt$ ls -la
total 6392
drwxr-xr-x 2 karel karel 178 Jul 31 15:58 .
drwxrwxrwt 25 root sys 2823 Jul 31 15:58 ..
-rwxr-xr-x 1 karel karel 3261384 Jul 31 15:58 test
karel at silence:/tmp/ttt$ mkdir test
mkdir: Failed to make directory "test"; File exists
karel at silence:/tmp/ttt$
}}}
and test also shows the same behaviour:
{{{
karel at silence:/tmp/ttt$ ./test
test: test: createDirectory: already exists (File exists)
karel at silence:/tmp/ttt$
}}}
anyway, if I rename test -> textx, then I get:
{{{
karel at silence:/tmp/ttt$ ./testx
Starting Subprocess
testx: ghc: createProcess: runInteractiveProcess: exec: does not exist (No
such file or directory)
karel at silence:/tmp/ttt$
}}}
single-threaded fails in the way like yours:
{{{
karel at silence:/tmp/ttt$ ./test-st
Starting Subprocess
ghc: no input files
Usage: For basic information, try the `--help' option.
Exit code: ExitFailure 1
karel at silence:/tmp/ttt$
}}}
anyway, if I modify test to point directly to ghc (full path), then it
works also with -threaded
{{{
karel at silence:/tmp/ttt$ ghc -threaded ../test.hs -o test-thr
karel at silence:/tmp/ttt$ ./test-thr
Starting Subprocess
ghc: no input files
Usage: For basic information, try the `--help' option.
Exit code: ExitFailure 1
karel at silence:/tmp/ttt$
}}}
my guess is that environment handling is kind of fishy on Solaris. We also
do have few tests in this domain failing.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8151#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list