ANNOUNCE: GHC 6.12.1 Release Candidate 2

Hi all, We are pleased to announce the second release candidate for GHC 6.12.1: http://www.haskell.org/ghc/dist/6.12.1-rc2/ As well as the source tarball: ghc-6.12.0.20091121-src.tar.bz2 there are installers for Windows (i386) and OS X (i386), and binary distributions for x86_64/Linux and i386/Linux. For the Linux binary distributions, the "linux-n" tarballs are recommended over the "linux" tarballs. Please test as much as possible; bugs are much cheaper if we find them before the release! Thanks Ian, on behalf of the GHC team

On Sun, Nov 22, 2009 at 05:53:07PM +0000, Ian Lynagh wrote:
Hi all,
We are pleased to announce the second release candidate for GHC 6.12.1:
http://www.haskell.org/ghc/dist/6.12.1-rc2/
As well as the source tarball: ghc-6.12.0.20091121-src.tar.bz2 there are installers for Windows (i386) and OS X (i386), and binary distributions for x86_64/Linux and i386/Linux. For the Linux binary distributions, the "linux-n" tarballs are recommended over the "linux" tarballs.
Please test as much as possible; bugs are much cheaper if we find them before the release!
Thanks Ian, on behalf of the GHC team
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
I installed this and tried to build the network package. Here's what happened: ---- SNIP ---- $ ~/usr/bin/ghc --make Setup.hs Linking Setup ... $ ./Setup configure Warning: defaultUserHooks in Setup script is deprecated. Configuring network-2.2.1.5... Setup: fd:5: hGetContents: invalid argument (Invalid or incomplete multibyte or wide character) *** glibc detected *** ./Setup: double free or corruption (!prev): 0x09d33050 *** ======= Backtrace: ========= /lib/libc.so.6(+0x6b6c1)[0xb76446c1] /lib/libc.so.6(+0x6cf18)[0xb7645f18] /lib/libc.so.6(cfree+0x6d)[0xb7648f8d] /lib/libc.so.6(+0x1829c)[0xb75f129c] /lib/libc.so.6(iconv_close+0x1c)[0xb75f07ec] ./Setup[0x821f6b9] ======= Memory map: ======== 08048000-082be000 r-xp 00000000 fe:00 1603782 /home/alex/src/network-2.2.1.5/Setup 082be000-082ed000 rwxp 00275000 fe:00 1603782 /home/alex/src/network-2.2.1.5/Setup 082ed000-082f0000 rwxp 00000000 00:00 0 09cd1000-09d5c000 rwxp 00000000 00:00 0 [heap] b6f00000-b6f21000 rwxp 00000000 00:00 0 b6f21000-b7000000 ---p 00000000 00:00 0 b70c8000-b70e5000 r-xp 00000000 08:03 385336 /usr/lib/libgcc_s.so.1 b70e5000-b70e6000 rwxp 0001c000 08:03 385336 /usr/lib/libgcc_s.so.1 b7100000-b7300000 rwxp 00000000 00:00 0 b73bf000-b75bf000 r-xp 00000000 08:03 396531 /usr/lib/locale/locale-archive b75bf000-b75c0000 rwxp 00000000 00:00 0 b75c0000-b75d5000 r-xp 00000000 08:03 262160 /lib/libpthread-2.11.so b75d5000-b75d6000 r-xp 00014000 08:03 262160 /lib/libpthread-2.11.so b75d6000-b75d7000 rwxp 00015000 08:03 262160 /lib/libpthread-2.11.so b75d7000-b75d9000 rwxp 00000000 00:00 0 b75d9000-b7719000 r-xp 00000000 08:03 262169 /lib/libc-2.11.so b7719000-b771b000 r-xp 00140000 08:03 262169 /lib/libc-2.11.so b771b000-b771c000 rwxp 00142000 08:03 262169 /lib/libc-2.11.so b771c000-b771f000 rwxp 00000000 00:00 0 b771f000-b7743000 r-xp 00000000 08:03 262184 /lib/libm-2.11.so b7743000-b7744000 r-xp 00023000 08:03 262184 /lib/libm-2.11.so b7744000-b7745000 rwxp 00024000 08:03 262184 /lib/libm-2.11.so b7745000-b7746000 rwxp 00000000 00:00 0 b7746000-b7790000 r-xp 00000000 08:03 388239 /usr/lib/libgmp.so.3.5.0 b7790000-b7793000 rwxp 00049000 08:03 388239 /usr/lib/libgmp.so.3.5.0 b7793000-b7795000 r-xp 00000000 08:03 262188 /lib/libdl-2.11.so b7795000-b7796000 r-xp 00001000 08:03 262188 /lib/libdl-2.11.so b7796000-b7797000 rwxp 00002000 08:03 262188 /lib/libdl-2.11.so b7797000-b7799000 r-xp 00000000 08:03 262274 /lib/libutil-2.11.so b7799000-b779a000 r-xp 00001000 08:03 262274 /lib/libutil-2.11.so b779a000-b779b000 rwxp 00002000 08:03 262274 /lib/libutil-2.11.so b779b000-b77a2000 r-xp 00000000 08:03 262277 /lib/librt-2.11.so b77a2000-b77a3000 r-xp 00006000 08:03 262277 /lib/librt-2.11.so b77a3000-b77a4000 rwxp 00007000 08:03 262277 /lib/librt-2.11.so b77ba000-b77bc000 r-xp 00000000 08:03 184559 /usr/lib/gconv/UTF-32.so b77bc000-b77bd000 r-xp 00001000 08:03 184559 /usr/lib/gconv/UTF-32.so b77bd000-b77be000 rwxp 00002000 08:03 184559 /usr/lib/gconv/UTF-32.so b77be000-b77bf000 rwxp 00000000 00:00 0 b77bf000-b77c0000 r-xp 00000000 00:00 0 [vdso] b77c0000-b77dc000 r-xp 00000000 08:03 262276 /lib/ld-2.11.so b77dc000-b77dd000 r-xp 0001b000 08:03 262276 /lib/ld-2.11.so b77dd000-b77de000 rwxp 0001c000 08:03 262276 /lib/ld-2.11.so bf82d000-bf842000 rwxp 00000000 00:00 0 [stack] Aborted ---- SNIP ---- It works fine with the old GHC, so I assume this is some sort of problem with the new one. Alex

On Sun, Nov 22, 2009 at 01:35:00PM -0800, Alex Dunlap wrote:
I installed this and tried to build the network package. Here's what happened:
---- SNIP ---- $ ~/usr/bin/ghc --make Setup.hs Linking Setup ... $ ./Setup configure Warning: defaultUserHooks in Setup script is deprecated. Configuring network-2.2.1.5... Setup: fd:5: hGetContents: invalid argument (Invalid or incomplete multibyte or wide character) *** glibc detected *** ./Setup: double free or corruption (!prev): 0x09d33050 ***
Which ghc is in your path? It sounds like Cabal is finding your old GHC and trying to read its package database, but failing due to http://hackage.haskell.org/trac/hackage/ticket/609 Does that sound right? Thanks Ian

On Sun, Nov 22, 2009 at 10:26:02PM +0000, Ian Lynagh wrote:
On Sun, Nov 22, 2009 at 01:35:00PM -0800, Alex Dunlap wrote:
I installed this and tried to build the network package. Here's what happened:
---- SNIP ---- $ ~/usr/bin/ghc --make Setup.hs Linking Setup ... $ ./Setup configure Warning: defaultUserHooks in Setup script is deprecated. Configuring network-2.2.1.5... Setup: fd:5: hGetContents: invalid argument (Invalid or incomplete multibyte or wide character) *** glibc detected *** ./Setup: double free or corruption (!prev): 0x09d33050 ***
Which ghc is in your path? It sounds like Cabal is finding your old GHC and trying to read its package database, but failing due to http://hackage.haskell.org/trac/hackage/ticket/609
Does that sound right?
Thanks Ian
Yes, adding the new GHC to my PATH fixes the problem. It seems like that memory error is quite severe for trying to read a file with bad encoding—couldn't it fail with a simple "Bad encoding" exception or something? Alex

On 22/11/09 22:58, Alex Dunlap wrote:
On Sun, Nov 22, 2009 at 10:26:02PM +0000, Ian Lynagh wrote:
On Sun, Nov 22, 2009 at 01:35:00PM -0800, Alex Dunlap wrote:
I installed this and tried to build the network package. Here's what happened:
---- SNIP ---- $ ~/usr/bin/ghc --make Setup.hs Linking Setup ... $ ./Setup configure Warning: defaultUserHooks in Setup script is deprecated. Configuring network-2.2.1.5... Setup: fd:5: hGetContents: invalid argument (Invalid or incomplete multibyte or wide character) *** glibc detected *** ./Setup: double free or corruption (!prev): 0x09d33050 ***
Which ghc is in your path? It sounds like Cabal is finding your old GHC and trying to read its package database, but failing due to http://hackage.haskell.org/trac/hackage/ticket/609
Does that sound right?
Thanks Ian
Yes, adding the new GHC to my PATH fixes the problem. It seems like that memory error is quite severe for trying to read a file with bad encoding—couldn't it fail with a simple "Bad encoding" exception or something?
I'm surprised by the memory error too. It may be a real bug. Would you mind reporting it, including the full output of 'ghc-pkg dump' for the GHC that was in your PATH in the above? Cheers, Simon

We are pleased to announce the second release candidate for GHC 6.12.1: http://www.haskell.org/ghc/dist/6.12.1-rc2/
Thank you!
For the Linux binary distributions, the "linux-n" tarballs are recommended over the "linux" tarballs.
Sorry if it is documented somewhere but what is the difference between them? Jens

On Mon, Nov 23, 2009 at 01:41:30PM +1000, Jens Petersen wrote:
We are pleased to announce the second release candidate for GHC 6.12.1: http://www.haskell.org/ghc/dist/6.12.1-rc2/
Thank you!
For the Linux binary distributions, the "linux-n" tarballs are recommended over the "linux" tarballs.
Sorry if it is documented somewhere but what is the difference between them?
The bindists without the -n are built by the nightly builders on something like a RedHat system. This has 2 libraries for ncurses: libncurses and libtinfo. Other systems, such as Debian, only have one library for ncurses: libncurses. If you try to use that bindist on such a system, then it will fail because it can't find libtinfo. The -n bindists are built manually on Debian, so only depend on libncurses. These binaries also work on systems with the split ncurses library. If anyone knows of an easy way to get the buildbots to output portable binaries, please let us know! Thanks Ian

On 23/11/2009 16:53, Ian Lynagh wrote:
On Mon, Nov 23, 2009 at 01:41:30PM +1000, Jens Petersen wrote:
We are pleased to announce the second release candidate for GHC 6.12.1: http://www.haskell.org/ghc/dist/6.12.1-rc2/
Thank you!
For the Linux binary distributions, the "linux-n" tarballs are recommended over the "linux" tarballs.
Sorry if it is documented somewhere but what is the difference between them?
The bindists without the -n are built by the nightly builders on something like a RedHat system. This has 2 libraries for ncurses: libncurses and libtinfo.
Other systems, such as Debian, only have one library for ncurses: libncurses. If you try to use that bindist on such a system, then it will fail because it can't find libtinfo.
The -n bindists are built manually on Debian, so only depend on libncurses. These binaries also work on systems with the split ncurses library.
If they work everywhere, then we should probably just supply the -n versions (and remove the -n suffix) to avoid confusion. Next time I reinstall our nightly builder machine I'll put some Debian derivative on it. Cheers, Simon

On Nov 22, 2009, at 11:53 AM, Ian Lynagh wrote:
Hi all,
We are pleased to announce the second release candidate for GHC 6.12.1:
IIRC, an earlier 6.12 RC announcement mentioned that cabal-install wasn't working yet; has this been resolved?

On Sun, Nov 22, 2009 at 10:00 PM, Tom Tobin
On Nov 22, 2009, at 11:53 AM, Ian Lynagh wrote:
Hi all,
We are pleased to announce the second release candidate for GHC 6.12.1:
IIRC, an earlier 6.12 RC announcement mentioned that cabal-install wasn't working yet; has this been resolved?
I just got to try it here and it seems to work. I had to install a few packages manually, but nothing hard. I'm on Ubuntu 9.10 64-bit. I used cabal-install from the darcs repository -- I didn't try with the stable version, so I don't know if it would work. I've been compiling some of my code and everything worked so far. Thanks, GHC HQ! Paulo

On Sun, 2009-11-22 at 22:00 -0600, Tom Tobin wrote:
On Nov 22, 2009, at 11:53 AM, Ian Lynagh wrote:
Hi all,
We are pleased to announce the second release candidate for GHC 6.12.1:
IIRC, an earlier 6.12 RC announcement mentioned that cabal-install wasn't working yet; has this been resolved?
The current darcs version of cabal-install works with 6.12. darcs get --partial http://darcs.haskell.org/cabal-install/ Duncan

Hi,
I don't think this is the same problem as the one mentioned by Alex
(installing `network' works for me):
{----------------------------------------------
$ cabal install X11
Resolving dependencies...
Configuring X11-1.4.6.1...
configure: WARNING: unrecognized options: --with-compiler
checking for gcc... gcc
checking for C compiler default output file name... a.out
[... configure stuff omitted...]
checking for X11/cursorfont.h... yes
configure: creating ./config.status
config.status: creating config.mk
config.status: creating X11.buildinfo
config.status: creating include/HsX11Config.h
config.status: creating include/X11_extras_config.h
configure: WARNING: unrecognized options: --with-compiler
Preprocessing library X11-1.4.6.1...
hsc2hs: Graphics/X11/Xlib/Extras.hsc: hGetContents: invalid argument (Invalid
or incomplete multibyte or wide character)
cabal: Error: some packages failed to install:
X11-1.4.6.1 failed during the building phase. The exception was:
ExitFailure 1
----------------------------------------------}
Converting the offending file (Extras.hsc) to UTF-8 manually solves it:
{----------------------------------------------
$ file Extras.hsc
Extras.hsc: ISO-8859 English text
$
Hi all,
We are pleased to announce the second release candidate for GHC 6.12.1:
http://www.haskell.org/ghc/dist/6.12.1-rc2/
As well as the source tarball: ghc-6.12.0.20091121-src.tar.bz2 there are installers for Windows (i386) and OS X (i386), and binary distributions for x86_64/Linux and i386/Linux. For the Linux binary distributions, the "linux-n" tarballs are recommended over the "linux" tarballs.
Please test as much as possible; bugs are much cheaper if we find them before the release!
Thanks Ian, on behalf of the GHC team
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

P.S.: Locale is UTF-8, I guess hGetContents gets the default encoding from the locale now? On Monday 23 November 2009 07:53:55 Daniel Schüssler wrote:
Hi,
I don't think this is the same problem as the one mentioned by Alex (installing `network' works for me):
{---------------------------------------------- $ cabal install X11
Resolving dependencies... Configuring X11-1.4.6.1... configure: WARNING: unrecognized options: --with-compiler checking for gcc... gcc checking for C compiler default output file name... a.out
[... configure stuff omitted...]
checking for X11/cursorfont.h... yes configure: creating ./config.status config.status: creating config.mk config.status: creating X11.buildinfo config.status: creating include/HsX11Config.h config.status: creating include/X11_extras_config.h configure: WARNING: unrecognized options: --with-compiler Preprocessing library X11-1.4.6.1... hsc2hs: Graphics/X11/Xlib/Extras.hsc: hGetContents: invalid argument (Invalid or incomplete multibyte or wide character) cabal: Error: some packages failed to install: X11-1.4.6.1 failed during the building phase. The exception was: ExitFailure 1 ----------------------------------------------}
Converting the offending file (Extras.hsc) to UTF-8 manually solves it:
{----------------------------------------------
$ file Extras.hsc Extras.hsc: ISO-8859 English text
$
temp $ mv temp Extras.hsc $ cd ../../.. $ cabal install [OK] ----------------------------------------------}
Greetings, Daniel
On Sunday 22 November 2009 18:53:07 Ian Lynagh wrote:
Hi all,
We are pleased to announce the second release candidate for GHC 6.12.1:
http://www.haskell.org/ghc/dist/6.12.1-rc2/
As well as the source tarball: ghc-6.12.0.20091121-src.tar.bz2 there are installers for Windows (i386) and OS X (i386), and binary distributions for x86_64/Linux and i386/Linux. For the Linux binary distributions, the "linux-n" tarballs are recommended over the "linux" tarballs.
Please test as much as possible; bugs are much cheaper if we find them before the release!
Thanks Ian, on behalf of the GHC team
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

On 23/11/09 07:02, Daniel Schüssler wrote:
P.S.:
Locale is UTF-8, I guess hGetContents gets the default encoding from the locale now?
Yes it does. It just occurred to me that hsc2hs should probably be setting the encoding to UTF8 explicitly before reading Haskell source files. Cheers, Simon
On Monday 23 November 2009 07:53:55 Daniel Schüssler wrote:
Hi,
I don't think this is the same problem as the one mentioned by Alex (installing `network' works for me):
{---------------------------------------------- $ cabal install X11
Resolving dependencies... Configuring X11-1.4.6.1... configure: WARNING: unrecognized options: --with-compiler checking for gcc... gcc checking for C compiler default output file name... a.out
[... configure stuff omitted...]
checking for X11/cursorfont.h... yes configure: creating ./config.status config.status: creating config.mk config.status: creating X11.buildinfo config.status: creating include/HsX11Config.h config.status: creating include/X11_extras_config.h configure: WARNING: unrecognized options: --with-compiler Preprocessing library X11-1.4.6.1... hsc2hs: Graphics/X11/Xlib/Extras.hsc: hGetContents: invalid argument (Invalid or incomplete multibyte or wide character) cabal: Error: some packages failed to install: X11-1.4.6.1 failed during the building phase. The exception was: ExitFailure 1 ----------------------------------------------}
Converting the offending file (Extras.hsc) to UTF-8 manually solves it:
{----------------------------------------------
$ file Extras.hsc Extras.hsc: ISO-8859 English text
$
temp $ mv temp Extras.hsc $ cd ../../.. $ cabal install [OK] ----------------------------------------------}
Greetings, Daniel
On Sunday 22 November 2009 18:53:07 Ian Lynagh wrote:
Hi all,
We are pleased to announce the second release candidate for GHC 6.12.1:
http://www.haskell.org/ghc/dist/6.12.1-rc2/
As well as the source tarball: ghc-6.12.0.20091121-src.tar.bz2 there are installers for Windows (i386) and OS X (i386), and binary distributions for x86_64/Linux and i386/Linux. For the Linux binary distributions, the "linux-n" tarballs are recommended over the "linux" tarballs.
Please test as much as possible; bugs are much cheaper if we find them before the release!
Thanks Ian, on behalf of the GHC team
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

On 23/11/09 06:53, Daniel Schüssler wrote:
Hi,
I don't think this is the same problem as the one mentioned by Alex (installing `network' works for me):
{---------------------------------------------- $ cabal install X11
Resolving dependencies... Configuring X11-1.4.6.1... configure: WARNING: unrecognized options: --with-compiler checking for gcc... gcc checking for C compiler default output file name... a.out
[... configure stuff omitted...]
checking for X11/cursorfont.h... yes configure: creating ./config.status config.status: creating config.mk config.status: creating X11.buildinfo config.status: creating include/HsX11Config.h config.status: creating include/X11_extras_config.h configure: WARNING: unrecognized options: --with-compiler Preprocessing library X11-1.4.6.1... hsc2hs: Graphics/X11/Xlib/Extras.hsc: hGetContents: invalid argument (Invalid or incomplete multibyte or wide character)
This is partly the result of new behaviour in 6.12.1RC2. hGetContents now throws an exception if an I/O error is encountered, in a deliberate diversion from the Haskell 98 spec which says that it should terminate the stream silently. We decided that this was the pertinent thing to do given that people are quite likely to encounter decoding errors with the new Unicode-aware I/O library, and silently ignoring the error would lead to large amounts of confusion.
cabal: Error: some packages failed to install: X11-1.4.6.1 failed during the building phase. The exception was: ExitFailure 1 ----------------------------------------------}
Converting the offending file (Extras.hsc) to UTF-8 manually solves it:
Thanks to the wonderfully precise error message, you were able to fix the problem and get going again. I declare this a victory :) Cheers, Simon

Here is a development test build for Fedora: http://koji.fedoraproject.org/koji/taskinfo?taskID=1824814 with shared libraries. :-) BTW I already succeeded in building a dynamically linked cabal-install rpm locally. For a comparison of size: 1.2M 2009-11-19 23:33 cabal-install-0.7.5-0.fc13.x86_64.rpm (static) 319K 2009-11-23 18:52 cabal-install-0.7.5-1.fc13.x86_64.rpm (dynamic) With thanks and congratulations to those who finally gave us working shared libraries on Linux! :) Happily, Jens ps This should all be landing in fedora development (rawhide) for F13 before too long.
participants (8)
-
Alex Dunlap
-
Daniel Schüssler
-
Duncan Coutts
-
Ian Lynagh
-
Jens Petersen
-
Paulo Tanimoto
-
Simon Marlow
-
Tom Tobin