[GHC] #13542: Solaris build fails with collect2: execv: Arg list too long
GHC
ghc-devs at haskell.org
Tue Apr 11 20:11:41 UTC 2017
#13542: Solaris build fails with collect2: execv: Arg list too long
-------------------------------------+-------------------------------------
Reporter: kgardas | Owner: (none)
Type: bug | Status: infoneeded
Priority: normal | Milestone:
Component: Compiler | Version: 8.1
Resolution: | Keywords:
Operating System: Solaris | Architecture:
Type of failure: Building GHC | Unknown/Multiple
failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by kgardas):
I've done simple test and where the compilation failed with the error
above I've replaced -split-objs with -split-sections and repeated the step
and then continue with `gmake`. This way I've been able to build GHC HEAD
on Solaris 11.2 but only with patch below applied. I guess nobody test on
Solaris so no-flock condition is kind of broken, the error is:
{{{
libraries/base/GHC/IO/Handle/Lock.hsc:159:20: error:
<80>� Variable not in scope:
throwIO :: FileLockingNotSupported -> IO Bool
<80>� Perhaps you meant <80><98>throw<80><99> (imported from
GHC.Exception)
|
159 | lockImpl _ _ _ _ = throwIO FileLockingNotSupported
| ^^^^^^^
gmake[1]: *** [libraries/base/dist-install/build/GHC/IO/Handle/Lock.o]
Error 1
}}}
and my naive patch is:
{{{
diff --git a/libraries/base/GHC/IO/Handle/Lock.hsc
b/libraries/base/GHC/IO/Handle/Lock.hsc
index 5608c18..3ef19f7 100644
--- a/libraries/base/GHC/IO/Handle/Lock.hsc
+++ b/libraries/base/GHC/IO/Handle/Lock.hsc
@@ -48,6 +48,10 @@ import GHC.Ptr
import GHC.Real
import GHC.Windows
+#else
+
+import Control.Exception
+
#endif
import Data.Functor
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13542#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list