Skip to content
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

Stack build failed on Windows 10 #510

Closed
raj5287 opened this issue Jul 14, 2020 · 6 comments
Closed

Stack build failed on Windows 10 #510

raj5287 opened this issue Jul 14, 2020 · 6 comments

Comments

@raj5287
Copy link

raj5287 commented Jul 14, 2020

This is the error, I am getting :

--  While building package regex-pcre-0.94.4 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe 
--builddir=.stack-work\dist\ca59d0ab configure --user --package-db=clear --package-db=global 
--package-db=C:\sr\snapshots\cebdf9e6\pkgdb --libdir=C:\sr\snapshots\cebdf9e6\lib 
--bindir=C:\sr\snapshots\cebdf9e6\bin --datadir=C:\sr\snapshots\cebdf9e6\share 
--libexecdir=C:\sr\snapshots\cebdf9e6\libexec --sysconfdir=C:\sr\snapshots\cebdf9e6\etc 
--docdir=C:\sr\snapshots\cebdf9e6\doc\regex-pcre-0.94.4 --htmldir=C:\sr\snapshots\cebdf9e6\doc\regex-pcre-0.94.4 
--haddockdir=C:\sr\snapshots\cebdf9e6\doc\regex-pcre-0.94.4 --dependency=array=array-0.5.1.1 
--dependency=base=base-4.9.1.0 --dependency=bytestring=bytestring-0.10.8.1 --dependency=containers=containers-0.5.7.1 
--dependency=regex-base=regex-base-0.93.2-Ho38grOVdIZIUPEl2EVGSm -fnewbase -fsplitbase 
--extra-include-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include 
--extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib 
--extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin 
--exact-configuration
    Process exited with code: ExitFailure 1

can somebody help me out here?

@ishaneuralsift
Copy link

Were you able to solve this issue? I am facing same.

@raj5287
Copy link
Author

raj5287 commented Aug 10, 2020

unfortunately no.

@bmoore117
Copy link

The solution for this error is to modify the duckling.cabal file in the project root, change line "regex-pcre >= 0.94.4 && < 0.95" to "regex-pcre-builtin >= 0.94.4 && < 0.95", it should compile then

@bmoore117
Copy link

However you will still face issues when running it, as it needs to be built and run under something like MSYS2 or Cygwin, it needs linux stuff like /usr/share/zoneinfo

@chessai
Copy link
Contributor

chessai commented Nov 5, 2020

@raj5287

  1. are you on msys2/cygwin?
  2. if not, can you try on msys2/cygwin, following the advice of @bmoore117

@chessai
Copy link
Contributor

chessai commented Jan 29, 2021

Closing, since realistically duckling needs to be run on cygwin/msys2, and the regex-pcre-builtin issue has already been resolved

Feel free to re-open if that was not the issue

@chessai chessai closed this as completed Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants