[Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

2010-10-30 Thread Arnaud Bailly
Hello,
All of a sudden, the package regex-posix-0.94.2 failed to link after i
installed a couple of other packages (http, json). When I try to
reinstall it, I got the folowing errors:

D:\projets\crete1941cabal install --global --reinstall
--enable-documentation regex-posix-0.94.2
Resolving dependencies...
Configuring regex-posix-0.94.2...
Preprocessing library regex-posix-0.94.2...
Text\Regex\Posix\Wrap.hsc:107:19: regex.h: No such file or directory
Text\Regex\Posix\Wrap.hsc: In function `main':
Text\Regex\Posix\Wrap.hsc:149: error: `regoff_t' undeclared (first use
in this function)
Text\Regex\Posix\Wrap.hsc:149: error: (Each undeclared identifier is
reported only once
Text\Regex\Posix\Wrap.hsc:149: error: for each function it appears in.)
Text\Regex\Posix\Wrap.hsc:149: error: syntax error before int
Text\Regex\Posix\Wrap.hsc:384: error: `REG_NOTBOL' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:385: error: `REG_NOTEOL' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:389: error: `REG_EXTENDED' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:390: error: `REG_ICASE' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:391: error: `REG_NOSUB' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:392: error: `REG_NEWLINE' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:398: error: `REG_NOMATCH' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:399: error: `REG_BADBR' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:400: error: `REG_BADPAT' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:401: error: `REG_BADRPT' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:402: error: `REG_ECOLLATE' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:403: error: `REG_ECTYPE' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:404: error: `REG_EESCAPE' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:405: error: `REG_ESUBREG' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:406: error: `REG_EBRACK' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:407: error: `REG_EPAREN' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:408: error: `REG_EBRACE' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:409: error: `REG_ERANGE' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:410: error: `REG_ESPACE' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:447: error: `regex_t' undeclared (first use
in this function)
Text\Regex\Posix\Wrap.hsc:481: error: syntax error before ')' token
Text\Regex\Posix\Wrap.hsc:484: error: `regmatch_t' undeclared (first
use in this function)
Text\Regex\Posix\Wrap.hsc:510: error: syntax error before ')' token
Text\Regex\Posix\Wrap.hsc:510: error: syntax error before int
Text\Regex\Posix\Wrap.hsc:511: error: syntax error before ')' token
Text\Regex\Posix\Wrap.hsc:511: error: syntax error before int
Text\Regex\Posix\Wrap.hsc:525: error: syntax error before ')' token
compiling dist\build\Text\Regex\Posix\Wrap_hsc_make.c failed
command was: D:\Program Files\Haskell
Platform\2010.2.0.0\mingw\bin\gcc.exe -c -D__GLASGOW_HASKELL__=612
-DHAVE_REGEX_H -DSPLIT_BASE
=1 -ID:\Program Files\Haskell
Platform\2010.2.0.0\lib\bytestring-0.9.1.7\include -ID:\Program
Files\Haskell Platform\2010.2.0.0\lib\
base-4.2.0.2\include -ID:\Program Files\Haskell
Platform\2010.2.0.0\lib/include -ID:\Program Files\Haskell
Platform\2010.2.0.0\lib/i
nclude -ID:/Program Files/Haskell Platform/2010.2.0.0/lib/include/
dist\build\Text\Regex\Posix\Wrap_hsc_make.c -o dist\build\Text\Re
gex\Posix\Wrap_hsc_make.o
cabal: Error: some packages failed to install:
regex-posix-0.94.2 failed during the building phase. The exception was:
ExitFailure 1

I am really clueless about the failure and what caused it.
Thanks for your help,

Arnaud Bailly
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

2010-10-30 Thread Stephen Tetley
Possibly related to this bug?

http://trac.haskell.org/haskell-platform/ticket/137
http://www.haskell.org/pipermail/haskell-cafe/2010-August/082141.html

I don't use cabal install, but maybe you could try just re-installing
regex-posix, then once its working reinstall the dependencies. That
seemed to be the solution in the Cafe thread.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

2010-10-30 Thread Ben Millwood
On Sat, Oct 30, 2010 at 11:56 AM, Arnaud Bailly arnaud.oq...@gmail.com wrote:
 Hello,
 All of a sudden, the package regex-posix-0.94.2 failed to link after i
 installed a couple of other packages (http, json). When I try to
 reinstall it, I got the folowing errors:

 D:\projets\crete1941cabal install --global --reinstall
 --enable-documentation regex-posix-0.94.2
 Resolving dependencies...
 Configuring regex-posix-0.94.2...
 Preprocessing library regex-posix-0.94.2...
 Text\Regex\Posix\Wrap.hsc:107:19: regex.h: No such file or directory

This is the crucial line in this particular build failure, everything
else is fluff. I really, really wish gcc would learn to stop compiling
after a header file was missing, since it almost always results in
large amounts of nonsense errors.

It looks like cabal-install or possibly Cabal can't find your headers.
I notice you're compiling with an explicit --global option - why is
that? Is it currently installed locally or globally? You can use
'ghc-pkg list regex-posix' to check. You can also enable global
installs and documentation by default by editing your config file,
whose location is given in the output of cabal --help. You can also
specify extra-include-dirs there if you need to do that.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

2010-10-30 Thread Arnaud Bailly
Hello Ben,
Thanks for your answer. What is strange is that I did not change
anything wrt include dirs or gcc or whatever...
I am using --global because I noticed ghc-pkg list gives me two
locations for regex-xxx packages. I removed everything from --user
though. I will try to reinstall regex-xxx.

Thanks
Arnaud

On Sat, Oct 30, 2010 at 1:35 PM, Ben Millwood hask...@benmachine.co.uk wrote:
 On Sat, Oct 30, 2010 at 11:56 AM, Arnaud Bailly arnaud.oq...@gmail.com 
 wrote:
 Hello,
 All of a sudden, the package regex-posix-0.94.2 failed to link after i
 installed a couple of other packages (http, json). When I try to
 reinstall it, I got the folowing errors:

 D:\projets\crete1941cabal install --global --reinstall
 --enable-documentation regex-posix-0.94.2
 Resolving dependencies...
 Configuring regex-posix-0.94.2...
 Preprocessing library regex-posix-0.94.2...
 Text\Regex\Posix\Wrap.hsc:107:19: regex.h: No such file or directory

 This is the crucial line in this particular build failure, everything
 else is fluff. I really, really wish gcc would learn to stop compiling
 after a header file was missing, since it almost always results in
 large amounts of nonsense errors.

 It looks like cabal-install or possibly Cabal can't find your headers.
 I notice you're compiling with an explicit --global option - why is
 that? Is it currently installed locally or globally? You can use
 'ghc-pkg list regex-posix' to check. You can also enable global
 installs and documentation by default by editing your config file,
 whose location is given in the output of cabal --help. You can also
 specify extra-include-dirs there if you need to do that.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

2010-10-30 Thread Arnaud Bailly
Hello,
I managed to fix this issue reinstalling regex-posix (with a higher
version) and then reinstall regex-compat (broken through the
reinstall).

Thanks a lot for the pointer,
Arnaud

On Sat, Oct 30, 2010 at 1:08 PM, Stephen Tetley
stephen.tet...@gmail.com wrote:
 Possibly related to this bug?

 http://trac.haskell.org/haskell-platform/ticket/137
 http://www.haskell.org/pipermail/haskell-cafe/2010-August/082141.html

 I don't use cabal install, but maybe you could try just re-installing
 regex-posix, then once its working reinstall the dependencies. That
 seemed to be the solution in the Cafe thread.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe