Comments (8)
@rakesh-k, sorry, unix
simply won't build on Windows.
Long ago, I believe GHC used to have a Cygwin-specific build that would allow you to install POSIX-heavy packages like unix
, but that is certainly no longer the case. Nowadays, trying to link against the Cygwin runtime using MinGW-w64 libraries will inevitably lead to horrific linker errors, as the two each define their own, incompatible versions of several primitives (e.g., timer_t
).
The workaround is to find an equivalent way to do things on Windows that doesn't require the unix
package, I'm afraid. There is a unix-compat
package that provides Windows shims for emulating the functionality of much of unix
, so it's possible that might work for you.
from unix.
Although now that I look closer, your issue in particular isn't that stack-run
depends directly on unix
, but rather that it depends on vty
, which in turn depends on unix
. This is a known issue, and from what I understand, fixing it is much more complicated than swapping out some unix
functions for unix-compat
ones, unfortunately.
from unix.
@rakesh-k: See also yamadapc/stack-run#6, which tracks the progress to remove stack-run
's dependency on vty
when built with Windows.
from unix.
I'm afraid it's not supposed to work with GHC/MinGW (it even says so in the package description)...
from unix.
I can't even install it with Cygwin, though it says in the docs it works under Cygwin.
from unix.
I can't even install it with Cygwin, though it says in the docs it works under Cygwin.
It should work on Cygwin if you use a Cygwin-build of GHC and Cabal. If it doesn't then it should be considered a bug.
from unix.
I am on Windows and need to install stack-run which depends on this package. And the unix package installation fails with this error:
cabal: Error: some packages failed to install:
unix-2.7.2.0 failed during the building phase. The exception was:
ExitFailure 1
from unix.
Closing since as of e745f0c, unix.cabal
literally prevents you from installing unix
on Windows due to the aforementioned issues.
from unix.
Related Issues (20)
- System.Posix.Semaphore.semThreadWait polls unnecessarily with threaded RTS
- Remove config.sub
- Revitalise System.Posix.DynamicLinker.Module
- Consider paring down the set of output modes HOT 7
- Include GHC 9.4 in CI ? HOT 4
- System library dependencies not documented HOT 3
- Build error with wasm32-wasi: system `wasi' not recognized HOT 11
- `unix-2.8` release for GHC 9.6 HOT 4
- `System.Posix.Env.ByteString.getEnvironment` segfaults on empty environment HOT 5
- NetBSD CI broken HOT 1
- System.Posix.User stopped exporting UserEntry HOT 3
- Should `mkstemp` use `throwErrnoIfMinus1Retry` instead of `throwErrnoIfMinus1`? HOT 3
- Add CI for the JS backend
- getAllGroupEntries fail on rhel8 HOT 23
- Memory unsafety in `withFilePath` in 2.8.2.0 HOT 6
- 2.8.3.0 fails to build on Linux 6.1.62 / glibc 2.35 HOT 2
- Release 2.8.4.0 HOT 10
- waitToSetLock can block but is an unsafe FFI import HOT 6
- Please revise time dependency to < 1.15 HOT 4
- CI: caching is likely broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unix.