Opened 12 years ago

Closed 12 years ago

#19711 closed defect (invalid)

hs-cabal upgrade to 0.6.2 fails

Reported by:… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: haskell cabal Cc:
Port: hs-cabal


on port upgrade hs-cabal the following happens:

--->  Fetching hs-cabal
--->  Verifying checksum(s) for hs-cabal
--->  Extracting hs-cabal
--->  Configuring hs-cabal
Error: Target org.macports.configure returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_hs-cabal/work/cabal-install-0.6.2 && runhaskell Setup configure --ghc --prefix=/opt/local" returned error 1
Command output: Configuring cabal-install-0.6.2...
Setup: At least the following dependencies are missing:
zlib >=0.4 && <0.6

Error: Unable to upgrade port: 1

hs-zlib is installed and up to date:

$ port installed hs-zlib
The following ports are currently installed:
  hs-zlib @ (active)

Attached file is the stderr output from port upgrade -d

Attachments (1)

cabal-upgrade.log (8.1 KB) - added by… 12 years ago.
stderr log of cabal upgrade failure

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by…

Attachment: cabal-upgrade.log added

stderr log of cabal upgrade failure

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Cc: gwright@… removed
Owner: changed from macports-tickets@… to gwright@…

comment:2 Changed 12 years ago by jwiegley@…

Cc: jwiegley@… added

Cc Me!

comment:3 Changed 12 years ago by jwiegley@…

Cc: jwiegley@… removed

Cc Me!

comment:4 Changed 12 years ago by gwright@…

Resolution: invalid
Status: newclosed

My guess is that you upgraded ghc without rebuilding all of the libraries. This is required since the ghc ABI changes for every release, even minor ones. What's happening is that MacPorts has found the port dependency but zlib is not registered with the new compiler. You need to rebuild all of the ghc libraries.

There is unfortunately no easy way for MacPorts to do this for you automatically at the moment. However, after upgrading ghc you can run

    $ sudo port -R upgrade ghc

This will rebuild all of the dependents (i.e., things that depend on ghc). The normal upgrade procedure only rebuilds the dependencies (i.e., things on which ghc depends). Be aware that this may take some time.

This should be simplified a bit in a few weeks with a new haskell-platform meta-port. I hope to get some of the documentation build issues sorted out for that too. However, it is unlikely that the documentation build will ever work on ppc, because of toolchain issues.

Note: See TracTickets for help on using tickets.