Re: How to solve ghc-stage2: mkTextEncoding: invalid argument (Invalid argument) issue.

2009-09-21 Thread Simon Marlow
On 17/09/2009 22:20, Matthias Kilian wrote: On Thu, Sep 17, 2009 at 09:17:35AM +0100, Simon Marlow wrote: Glad you got it going. I notice there are a few test failures, many of which could be fixed easily, e.g. --- ./lib/IO/hClose002.stdout.normalisedWed Sep 16 14:08:09 2009 +++

Re: How to solve ghc-stage2: mkTextEncoding: invalid argument (Invalid argument) issue.

2009-09-17 Thread Simon Marlow
On 16/09/2009 15:06, Karel Gardas wrote: Thanks to Christian note I solved the issue. Also thanks to Matthias' advice I've been able to configure ghc to use GNU iconv in /usr/local, but the result was still the same. I later used Christian advice to force ghc not to use /usr/local's iconv and

Re: How to solve ghc-stage2: mkTextEncoding: invalid argument (Invalid argument) issue.

2009-09-17 Thread Karel Gardas
Hi, indeed, I know that and I expect to submit patches later this month. Thanks, Karel Simon Marlow wrote: Glad you got it going. I notice there are a few test failures, many of which could be fixed easily, e.g. --- ./lib/IO/hClose002.stdout.normalisedWed Sep 16 14:08:09 2009

Re: How to solve ghc-stage2: mkTextEncoding: invalid argument (Invalid argument) issue.

2009-09-17 Thread Matthias Kilian
On Thu, Sep 17, 2009 at 09:17:35AM +0100, Simon Marlow wrote: Glad you got it going. I notice there are a few test failures, many of which could be fixed easily, e.g. --- ./lib/IO/hClose002.stdout.normalisedWed Sep 16 14:08:09 2009 +++ ./lib/IO/hClose002.run.stdout.normalised

Re: How to solve ghc-stage2: mkTextEncoding: invalid argument (Invalid argument) issue.

2009-09-16 Thread Karel Gardas
Before going to trace anything I've compared sparky and my setup and it seems I've had forgotten libiconv library in /usr/local/lib and LD_LIBRARY_PATH contained this lib. So I've modified LD_LIBRARY_PATH to exclude /usr/local/lib and now surprisingly base configure fails with: checking for

Re: How to solve ghc-stage2: mkTextEncoding: invalid argument (Invalid argument) issue.

2009-09-16 Thread Matthias Kilian
On Wed, Sep 16, 2009 at 10:23:58AM +0200, Karel Gardas wrote: Before going to trace anything I've compared sparky and my setup and it seems I've had forgotten libiconv library in /usr/local/lib and LD_LIBRARY_PATH contained this lib. So I've modified LD_LIBRARY_PATH to exclude /usr/local/lib

Re: How to solve ghc-stage2: mkTextEncoding: invalid argument (Invalid argument) issue.

2009-09-16 Thread Christian Maeder
I've experienced a similar problem under i386 solaris, see http://www.haskell.org/pipermail/glasgow-haskell-users/2009-June/017376.html The problem seems to be the file /usr/local/include/iconv.h without a corresponding library. HTH Christian Karel Gardas wrote: Before going to trace anything

Re: How to solve ghc-stage2: mkTextEncoding: invalid argument (Invalid argument) issue.

2009-09-16 Thread Karel Gardas
Thanks to Christian note I solved the issue. Also thanks to Matthias' advice I've been able to configure ghc to use GNU iconv in /usr/local, but the result was still the same. I later used Christian advice to force ghc not to use /usr/local's iconv and this really configured correctly (like

How to solve ghc-stage2: mkTextEncoding: invalid argument (Invalid argument) issue.

2009-09-15 Thread Karel Gardas
Hello, recently I've found out that my solaris-based GHC buildbot is completely unusable since it always (when it get to, which means it does not fail with usual magic number mismatch: old/corrupt interface file?) fails with: inplace/bin/ghc-stage2 -H32m -O -DNEW_GHC_LAYOUT -hide-all-packages

Re: How to solve ghc-stage2: mkTextEncoding: invalid argument (Invalid argument) issue.

2009-09-15 Thread Duncan Coutts
On Tue, 2009-09-15 at 16:56 +0200, Karel Gardas wrote: Hello, recently I've found out that my solaris-based GHC buildbot is completely unusable since it always (when it get to, which means it does not fail with usual magic number mismatch: old/corrupt interface file?) fails with: