-
Notifications
You must be signed in to change notification settings - Fork 691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add '--with-msys-location=/path/to/msys' to 'cabal user-config init' #4901
Comments
Please look through the |
Changed the title to reflect the change we want to make. |
i have a wip branch right now, just going to add a generic "append" flag that can take a range of arguments. more long-term flexibility and generalizability this way -- it gives a generic hook to update cabal config files with configurable flags per distro. |
Cmd: cabal install hindent
Cabal output:
$ cabal install hindent
Resolving dependencies...
Downloading distributive-0.5.3...
Downloading hashable-1.2.6.1...
Configuring old-time-1.1.0.3...
Downloading lifted-base-0.2.3.11...
Downloading temporary-1.2.1.1...
Configuring distributive-0.5.3...
Configuring hashable-1.2.6.1...
Configuring temporary-1.2.1.1...
Configuring lifted-base-0.2.3.11...
Building hashable-1.2.6.1...
Building temporary-1.2.1.1...
Building lifted-base-0.2.3.11...
Failed to install old-time-1.1.0.3
Build log ( C:\Users\dmytriie\AppData\Roaming\cabal\logs\ghc-8.2.1\old-time-1.1.0.3-B8XpIJbhq9uLX1PMmzKlcp.log ):
Configuring old-time-1.1.0.3...
configure: WARNING: unrecognized options: --with-compiler
checking for gcc... C:\PROGRA
1\HASKEL1\826561~1.1\mingw\bin\gcc.exechecking whether the C compiler works... no
configure: error: in
/cygdrive/c/Users/dmytriie/AppData/Local/Temp/cabal-tmp-21116/old-time-1.1.0.3': configure: error: C compiler cannot create executables See
config.log' for more detailscabal: Leaving directory 'C:\Users\dmytriie\AppData\Local\Temp\cabal-tmp-21116\old-time-1.1.0.3'
Installed temporary-1.2.1.1
Installed hashable-1.2.6.1
Installed lifted-base-0.2.3.11
Building distributive-0.5.3...
Installed distributive-0.5.3
cabal: Error: some packages failed to install:
cpphs-1.20.8-5cEQ4JG4zEO48rflCalI7n depends on cpphs-1.20.8 which failed to
install.
haskell-src-exts-1.19.1-GkIKqZuv8CjDj4xYyAfokK depends on
haskell-src-exts-1.19.1 which failed to install.
hindent-5.2.4.1-6Jn2HtqpNbYCTNcSVqr91c depends on hindent-5.2.4.1 which failed
to install.
old-time-1.1.0.3-B8XpIJbhq9uLX1PMmzKlcp failed during the configure step. The
exception was:
ExitFailure 77
OS type: Windows 10 Professional
Cabal version:
$ cabal --version
cabal-install version 2.0.0.0
compiled using version 2.0.0.2 of the Cabal library
The text was updated successfully, but these errors were encountered: