[GHC] #8151: ghc-7.4.2 on OpenIndiana (Solaris) createSubprocess fails

#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 Keywords: | Operating System: Solaris Architecture: x86 | Type of failure: Runtime performance bug Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------+-------------------------------------------- when i'm compiling this test.hs with ghc -thread ./test.hs and then execute it i get Starting Subprocess Exit code: ExitFailure 127 This error code indicates that command isn't found (i have ghc in /usr/local/bin) and it's specified in PATH variable, however it acts as if it's not even there however if i remove -threaded flag and recompile code again, it works Starting Subprocess ghc: no input files Usage: For basic information, try the `--help' option. Exit code: ExitFailure 1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8151 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8151: ghc-7.4.2 on OpenIndiana (Solaris) createSubprocess fails -------------------------------------+------------------------------------- Reporter: troydm | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Resolution: | Keywords: Operating System: Solaris | Architecture: x86 Type of failure: Runtime | Difficulty: Unknown performance bug | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => infoneeded Comment: Can you try again with GHC 7.8.3? Does this problem only occur on Solaris? I can not reproduce it on Linux. Note: to compile with 7.4.2, first `cabal install transformers`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8151#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8151: ghc-7.4.2 on OpenIndiana (Solaris) createSubprocess fails -------------------------------------+------------------------------------- Reporter: troydm | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Resolution: | Keywords: Operating System: Solaris | Architecture: x86 Type of failure: Runtime | Difficulty: Unknown performance bug | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by troydm): Just tested on my Solaris with ghc 7.6.3 and it's still reproduceable and I'm sure it's the same with 7.8.3 too (also unfortuneatly I don't have an Solaris box at hand with latest ghc to test it) This bug only occurs on Solaris/OpenIndiana operating system -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8151#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8151: ghc-7.4.2 on OpenIndiana (Solaris) createSubprocess fails -------------------------------------+------------------------------------- Reporter: troydm | Owner: Type: bug | Status: upstream Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Resolution: | Keywords: Operating System: Solaris | Architecture: x86_64 (amd64) Type of failure: Runtime | Difficulty: Unknown performance bug | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by troydm): * status: infoneeded => upstream * architecture: x86 => x86_64 (amd64) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8151#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8151: ghc-7.4.2 on OpenIndiana (Solaris) createSubprocess fails -------------------------------------+------------------------------------- Reporter: troydm | Owner: Type: bug | Status: upstream 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: -------------------------------------+------------------------------------- Changes (by thomie): * cc: kgardas (added) Comment: troydm: you marked this bug as upstream. Do you suggest it is not a GHC bug? Please mark it 'new' if you think it is. CC kgardas, maybe he can help. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8151#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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: -------------------------------------+------------------------------------- Changes (by troydm): * status: upstream => new Comment: kgardas, yeah I'll mark it as new -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8151#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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@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@silence:/tmp/ttt$ mkdir test mkdir: Failed to make directory "test"; File exists karel@silence:/tmp/ttt$ }}} and test also shows the same behaviour: {{{ karel@silence:/tmp/ttt$ ./test test: test: createDirectory: already exists (File exists) karel@silence:/tmp/ttt$ }}} anyway, if I rename test -> textx, then I get: {{{ karel@silence:/tmp/ttt$ ./testx Starting Subprocess testx: ghc: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory) karel@silence:/tmp/ttt$ }}} single-threaded fails in the way like yours: {{{ karel@silence:/tmp/ttt$ ./test-st Starting Subprocess ghc: no input files Usage: For basic information, try the `--help' option. Exit code: ExitFailure 1 karel@silence:/tmp/ttt$ }}} anyway, if I modify test to point directly to ghc (full path), then it works also with -threaded {{{ karel@silence:/tmp/ttt$ ghc -threaded ../test.hs -o test-thr karel@silence:/tmp/ttt$ ./test-thr Starting Subprocess ghc: no input files Usage: For basic information, try the `--help' option. Exit code: ExitFailure 1 karel@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

#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): Hm, last note: for tests above I've used Solaris 11.2 and GHC 7.10.1 RC3 build on AMD64. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8151#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC