Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #14576 (closed defect: fixed)

Opened 9 months ago

Last modified 13 days ago

darcs 1.0.9 fails to configure due to incompatibility with ghc 6.8.2

Reported by: ndimiduk@… Owned by: gwright@…
Priority: Normal Milestone: Port Bugs
Component: ports Version: 1.6.0
Keywords: Cc: waterson@…, stephen.bannasch@…, shreevatsa.public@…
Port:

Description

ghc-6.8.2 installs without issue but contains an API incompatible with darcs-1.0.9. Here's the output:


ndimiduk@luna /opt/MacPorts $ port install darcs
--->  Configuring darcs
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_release_ports_devel_darcs/work/darcs-1.0.9" && ./configure --prefix=/opt/MacPorts --mandir=/opt/MacPorts/share/man --without-docs " returned error 1
Command output: checking for darcs... no
checking the release state... release
checking for gcc... /usr/bin/gcc-4.0
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.0 accepts -g... yes
checking for /usr/bin/gcc-4.0 option to accept ISO C89... none needed
checking how to run the C preprocessor... /usr/bin/cpp-4.0
checking for a BSD-compatible install... /usr/bin/install
checking for ghc... ghc
checking where GHC keeps its libraries... /opt/MacPorts/lib/ghc-6.8.2
checking GHC.Handle.openFd... NOT old API
checking GHC.Handle.openFd new API... failed
configure: error: Couldnt figure out how to call GHC.Handle.openFd!

Error: Status 1 encountered during processing.

The system in a 12" g4 powerbook running 10.4.11

Here's a link to a mailing list entry which looks directly relevant: http://www.mail-archive.com/darcs-devel@darcs.net/msg04019.html

Change History

  Changed 9 months ago by waterson@…

I've created a Portfile for darcs-2.0.0pre3 (see #14634), which seems to work with ghc-6.8.2.

  Changed 9 months ago by wsiegrist@…

  • cc waterson@… added

  Changed 9 months ago by jmr@…

  • owner changed from macports-tickets@… to gwright@…
  • milestone set to Port Bugs

Assigning to maintainer.

  Changed 9 months ago by shreevatsa.public@…

cc me, I'd like to use darcs too. (Does posting a comment on Trac automatically add a user to the cc yet?)

  Changed 9 months ago by stephen.bannasch@…

I get the same error on MacOS 10.5.2.

I updated ports before trying to run the install:

sudo port selfupdate
sudo port upgrade installed

Installing darcs on Leopard:

$ sudo port install darcs
--->  Fetching gmp
--->  Attempting to fetch gmp-4.2.2.tar.bz2 from http://ftp.gnu.org/gnu/gmp
--->  Verifying checksum(s) for gmp
--->  Extracting gmp
--->  Configuring gmp
--->  Building gmp with target all
--->  Staging gmp into destroot
--->  Installing gmp 4.2.2_1
--->  Activating gmp 4.2.2_1
--->  Cleaning gmp
--->  Fetching ghc
--->  Attempting to fetch ghc-6.8.2-src.tar.bz2 from http://haskell.org/ghc/dist/6.8.2/
--->  Attempting to fetch ghc-6.8.2-src-extralibs.tar.bz2 from http://haskell.org/ghc/dist/6.8.2/
--->  Attempting to fetch ghc-6.8.2-darwin-i386-leopard-bootstrap.tar.bz2 from http://haskell.org/ghc/dist/6.8.2/
--->  Verifying checksum(s) for ghc
--->  Extracting ghc
--->  Applying patches to ghc
--->  Configuring ghc
--->  Building ghc with target all
--->  Staging ghc into destroot
--->  Installing ghc 6.8.2_2+darwin_9_i386
--->  Activating ghc 6.8.2_2+darwin_9_i386
--->  Cleaning ghc
--->  Fetching darcs
--->  Attempting to fetch darcs-1.0.9.tar.gz from http://darcs.net/
--->  Verifying checksum(s) for darcs
--->  Extracting darcs
--->  Configuring darcs
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_darcs/work/darcs-1.0.9" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --without-docs " returned error 1
Command output: checking for darcs... no
checking the release state... release
checking for gcc... /usr/bin/gcc-4.0
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.0 accepts -g... yes
checking for /usr/bin/gcc-4.0 option to accept ISO C89... none needed
checking how to run the C preprocessor... /usr/bin/cpp-4.0
checking for a BSD-compatible install... /usr/bin/install
checking for ghc... ghc
checking where GHC keeps its libraries... /opt/local/lib/ghc-6.8.2
checking GHC.Handle.openFd... NOT old API
checking GHC.Handle.openFd new API... failed
configure: error: Couldnt figure out how to call GHC.Handle.openFd!

Error: Status 1 encountered during processing.

follow-up: ↓ 7   Changed 9 months ago by stephen.bannasch@…

How can I add myself to the CC list? hmm ...

in reply to: ↑ 6   Changed 9 months ago by raimue@…

  • cc stephen.bannasch@… added

Replying to stephen.bannasch@gmail.com:

How can I add myself to the CC list?

Sorry, not possible as Trac does not allow so fine-grained permissions. Just ask to get added.

in reply to: ↑ description ; follow-up: ↓ 10   Changed 8 months ago by daykov@…

seems to be incompatibility of the new GHC.Handle.openFd (change in the API), and the debian folks have a workaround patch. See for example

http://launchpadlibrarian.net/12157631/darcs_1.0.9-1ubuntu1.debdiff

  Changed 8 months ago by jmr@…

  • cc shreevatsa.public@… added

in reply to: ↑ 8   Changed 7 months ago by fajwilson@…

Replying to daykov@physics.cornell.edu:

seems to be incompatibility of the new GHC.Handle.openFd (change in the API), and the debian folks have a workaround patch. See for example http://launchpadlibrarian.net/12157631/darcs_1.0.9-1ubuntu1.debdiff

I tried applying that patch but darcs is still not compiling.

  Changed 13 days ago by gwright@…

  • status changed from new to closed
  • resolution set to fixed

The most recent versions of ghc (6.10.1) and darcs (2.1.2) do not have this incompatibility.

Note: See TracTickets for help on using tickets.