You are not logged in.

#1 2010-03-20 03:47:25

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

I know that every single one of you reads the arch-devel mailing list before you upgrade testing, right? Just like me, right?

Peasantoid and Allan, yes! You rock!

The gmp upgrade will break GHC, xmonad, xmonad-contrib, plus not only the darcs versions, but darcs itself, xmonad-utils-darcs... You can't rebuild GHC using the unmodified package from ABS because it bootstraps GHC to build.

*** Can't say that Allan didn't warn you ***

Unless, of course, you didn't bother to read the list...


Edit: fixed package name in title -Allan

Last edited by Allan (2010-03-20 05:27:24)

Offline

#2 2010-03-20 04:54:09

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,383
Website

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

skottish wrote:

You can't rebuild GHC using the unmodified package from ABS because it bootstraps GHC to build.

Well, you can... what needs to be done is copy the old libgmp.so.3.5.2 and liggmp.so.3 to /usr/lib.  Then rebuild.   Remove the libraries and maybe rebuild again for good measure.   That is how whoever wants to rebuild GHC will have to deal with the situation.

Personally:

me  ----------------- (10 foot pole) -----------------        ghc package

Offline

#3 2010-03-20 05:16:16

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

skottish: Just a note, but you may want to correct a typo in the thread title.
s/gpm/gmp/
Some people might be confused by this.

Offline

#4 2010-03-20 05:43:51

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

Allan wrote:
skottish wrote:

You can't rebuild GHC using the unmodified package from ABS because it bootstraps GHC to build.

Well, you can... what needs to be done is copy the old libgmp.so.3.5.2 and liggmp.so.3 to /usr/lib.  Then rebuild.   Remove the libraries and maybe rebuild again for good measure.   That is how whoever wants to rebuild GHC will have to deal with the situation.

Temporary symlinks work too.


Wait a second,

I got the package name wrong in both the title and the body? No wonder why my mouse can't count.

Offline

#5 2010-03-20 05:51:57

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,383
Website

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

skottish wrote:

Temporary symlinks work too.

Yuck...  please don't...

Offline

#6 2010-03-20 13:38:42

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

Allan wrote:
skottish wrote:

Temporary symlinks work too.

Yuck...  please don't...

You know, I've pushed forever to get people to not use the symlink option for doing stuff like this. So I do it last night just to get my system running again. In the first two hours I find direct evidence that the xmonad binary on my system is still linked to the old library. I deserved that.

Offline

#7 2010-03-20 13:50:23

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,383
Website

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

As a work around, you can 1) downgrade or 2) grab /usr/lib/libgmp.x.x.x and its sylink to libgmp.so.x from the old gmp package and put them in your /usr/lib.

Offline

#8 2010-03-20 13:53:01

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

skottish wrote:

You can't rebuild GHC using the unmodified package from ABS because it bootstraps GHC to build.

To build GHC, you must first build GHC. It's recursion gone mad.

Send them an email to let them know that their pattern-matching is non-exhaustive tongue

Last edited by Xyne (2010-03-20 13:53:58)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#9 2010-03-20 14:22:29

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

Xyne wrote:
skottish wrote:

You can't rebuild GHC using the unmodified package from ABS because it bootstraps GHC to build.

To build GHC, you must first build GHC. It's recursion gone mad.

Send them an email to let them know that their pattern-matching is non-exhaustive tongue

It'll start a 250 response argument on some mailing list somewhere that will somehow get Jon Harrop there arguing the benefits of F# over Haskell. That's what always happens.

Offline

#10 2010-03-20 14:33:03

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

skottish wrote:
Xyne wrote:
skottish wrote:

You can't rebuild GHC using the unmodified package from ABS because it bootstraps GHC to build.

To build GHC, you must first build GHC. It's recursion gone mad.

Send them an email to let them know that their pattern-matching is non-exhaustive tongue

It'll start a 250 response argument on some mailing list somewhere that will somehow get Jon Harrop there arguing the benefits of F# over Haskell. That's what always happens.

I'll read the series of academic papers that they'll later publish in response and I will be severely disappointed if Gödel is not referenced.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#11 2010-03-20 18:51:05

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

Allan wrote:

As a work around, you can 1) downgrade or 2) grab /usr/lib/libgmp.x.x.x and its sylink to libgmp.so.x from the old gmp package and put them in your /usr/lib.

This is the only sane solution unless one wants to rebuild packages; A lot of them potentially. By the way for anyone reading this, ghc-6.12.1-3 is still linked against libgmp.so.3, so either follow Allan's advice, don't upgrade until all of the Haskell packages have been updated, or prepare to start rebuilding.

Offline

#12 2010-03-23 05:38:36

anergy
Member
Registered: 2009-03-05
Posts: 4

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

I tried to rebuild ghc and other ghc-depend packages by following Allan's instruction.
ghc seems to work, and it has no longer link to libgmp.so.3.

$ldd /usr/lib/ghc-6.12.1/ghc
    linux-gate.so.1 =>  (0xb787e000)
    libncursesw.so.5 => /lib/libncursesw.so.5 (0xb7810000)
    librt.so.1 => /lib/librt.so.1 (0xb7807000)
    libutil.so.1 => /lib/libutil.so.1 (0xb7803000)
    libdl.so.2 => /lib/libdl.so.2 (0xb77ff000)
    libm.so.6 => /lib/libm.so.6 (0xb77d8000)
    libpthread.so.0 => /lib/libpthread.so.0 (0xb77bf000)
    libc.so.6 => /lib/libc.so.6 (0xb7678000)
    /lib/ld-linux.so.2 (0xb787f000)

Rebuilding xmonad and xmonad-contrib succeeded, But there may be some packages to fail rebuilding. e.g. I couldn't build cabal-install, which says

$ runhaskell Setup build
Preprocessing executables for cabal-install-0.8.0...
Building cabal-install-0.8.0...
Linking dist/build/cabal/cabal ...
<command line>: unknown package: integer-gmp

Although I am not familier with Cabal error message, this error is due to ghc without libgmp.
xmobar also say same error.

Offline

#13 2010-03-23 18:16:58

jxy
Member
Registered: 2008-12-03
Posts: 133

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

So I see ghc 6.12.1-4 in testing, now.  SVN log says it is build against gmp-5.  Does this new version work properly?

Offline

#14 2010-03-24 00:28:39

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

jxy wrote:

So I see ghc 6.12.1-4 in testing, now.  SVN log says it is build against gmp-5.  Does this new version work properly?

It does, but keep in mind what I said before. The upgrade broke many things Haskell on my system when I rebuilt it myself.

Offline

#15 2010-03-24 13:25:58

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,383
Website

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

Most Haskell things are now rebuilt.  But definitely not all.  At least xmonad should work...   darcs still needs rebuilt.

Offline

#16 2010-03-24 14:49:09

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

after today's update to ghc pkgrel -4, ghc-pkg check shows everything's good and my xmonad.hs compiles again.

xmonad{,-contrib}-darcs user here, can't rebuild them until darcs is fixed (haven't swum through the abs deps yet...).  i don't restart x often so as long as i cam Mod-q successfully i'm ok to wait.

thanks devs.

Offline

#17 2010-03-24 15:13:04

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

you can temporary copy in the old libs and rebuild xmonad-{contrib}-darcs


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#18 2010-03-25 00:50:10

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

darcs is running again.

Thank you to all Arch devs involved in getting this taken care of.

Offline

#19 2010-03-25 00:56:45

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,383
Website

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

skottish wrote:

darcs is running again.

Hmmm.... really!  It has not been rebuilt yet.   So maybe some of it is working. tongue

Offline

#20 2010-03-25 01:07:40

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

Allan wrote:
skottish wrote:

darcs is running again.

Hmmm.... really!  It has not been rebuilt yet.   So maybe some of it is working. tongue

Name           : darcs
Version        : 2.4-1
URL            : http://darcs.net/
Licenses       : GPL  
Groups         : None
Provides       : None
Depends On     : curl  gmp  ncurses>=5.6-7  
Optional Deps  : None
Required By    : None
Conflicts With : None
Replaces       : None
Installed Size : 7952.00 K
Packager       : PKGBUILD.com Build Server
Architecture   : x86_64
Build Date     : Wed 24 Mar 2010 10:53:31 AM PDT
Install Date   : Wed 24 Mar 2010 05:46:28 PM PDT
Install Reason : Explicitly installed
Install Script : No
Description    : Decentralized replacement for CVS with roots in quantum mechanics

Poopy on you!!!

Offline

#21 2010-03-25 01:13:34

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,383
Website

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

Bah...  no-one marked it of on the todo list and I guess I did not update my system this morning so it was not in -Si...  sad

Offline

#22 2010-03-25 01:15:36

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

Allan wrote:

Bah...  no-one marked it of on the todo list and I guess I did not update my system this morning so it was not in -Si...  sad

When you weren't looking you were replaced by a bot.

Offline

#23 2010-03-25 01:23:22

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,383
Website

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

skottish wrote:

When you weren't looking you were replaced by a bot.

Just to make it clear,  I am the one who breaks things and not the bot...   Never talk bad about the bot!  big_smile

Offline

#24 2010-03-29 01:53:55

bachismyhero
Member
Registered: 2008-07-29
Posts: 4

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

Xmonad still isn't working for me; I'm not running testing, and my Xmonad (0.9.1) is still giving me the "libgmp.so.3" nonsense.  I have all the latest packages.  Is there something I'm not doing?  If it can be fixed with a symlink, which libgmp(xx) file do I need to symlink to?

Thanks.

Offline

#25 2010-03-29 02:38:31

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,383
Website

Re: The gmp upgrade and Haskell --or-- my mouse can't count [SOLVED]

Do not symlink...

> pacman -Si xmonad
Repository     : community
Name           : xmonad
Version        : 0.9.1-3

Got that version?

Offline

Board footer

Powered by FluxBB