-
Notifications
You must be signed in to change notification settings - Fork 205
Build from source fails on Windows 10 with stack-2.1.3 due to network < 3.1.0.1 #1393
Description
I try to install hie with the command stack ./install.hs hie-8.6.5 with stack-2.1.3, but the installation always fails (freezes) during compiling network package. There is no error shown.
I guess that the cause of this issue is dependency to network-2.8.0.1. When I try to stack install network-2.8.0.1, it shows the final message of the error "terminateProcess: permission denied (Permission denied)".
[4 of 9] Compiling Network.SocketNetwork\Socket.hsc:256:1: warning: [-Wunused-imports]
The import of ‘Foreign.C.Error’ is redundant
except perhaps to import instances from ‘Foreign.C.Error’
To import instances alone, use: import Foreign.C.Error()
|
256 | import Foreign.C.Error
| ^^^^^^^^^^^^^^^^^^^^^^Network\Socket.hsc:261:1: warning: [-Wunused-imports]
The import of ‘Foreign.Marshal.Array’ is redundant
except perhaps to import instances from ‘Foreign.Marshal.Array’
To import instances alone, use: import Foreign.Marshal.Array()
|
261 | import Foreign.Marshal.Array ( peekArray )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Network\Socket.hsc:328:1: warning: [-Wmissing-signatures]
Top-level binding with no type signature: socket2FD :: Socket -> FD
|
328 | socket2FD (MkSocket fd _ _ _ _) =
| ^^^^^^^^^Network\Socket.hsc:583:9: warning: [-Wunused-local-binds]
Defined but not used: ‘connectBlocked’
|
583 | connectBlocked = do
| ^^^^^^^^^^^^^^Network\Socket.hsc:633:8: warning: [-Wunused-matches]
Defined but not used: ‘sock’
|
633 | accept sock@(MkSocket s family stype protocol status) = do
| ^^^^Network\Socket.hsc:805:24: warning: [-Wunused-matches]
Defined but not used: ‘s’
|
805 | sendBuf sock@(MkSocket s _family _stype _protocol _status) str len = do
| ^Network\Socket.hsc:863:24: warning: [-Wunused-matches]
Defined but not used: ‘s’
|
863 | recvBuf sock@(MkSocket s _family _stype _protocol _status) ptr nbytes
| ^Network\Socket.hsc:1844:1: warning: [-Wunsupported-calling-conventions]
terminateProcess: permission denied (Permission denied)
I found network-2.8.0.1 installation fail issue on Windows 10 which may be related to this issue.
commercialhaskell/stack#5014
Is there a way for us to avoid this problem?