Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#14576 closed defect (fixed)

darcs 1.0.9 fails to configure due to incompatibility with ghc 6.8.2

Reported by: ndimiduk@… Owned by: gwright@…
Priority: Normal Milestone:
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 (12)

comment:1 Changed 17 years ago by waterson@…

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

comment:2 Changed 17 years ago by wsiegrist@…

Cc: waterson@… added

comment:3 Changed 17 years ago by jmroot (Joshua Root)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to gwright@…

Assigning to maintainer.

comment:4 Changed 17 years 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?)

comment:5 Changed 17 years 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.

comment:6 Changed 17 years ago by stephen.bannasch@…

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

comment:7 in reply to:  6 Changed 17 years ago by raimue (Rainer Müller)

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.

comment:8 in reply to:  description ; Changed 17 years 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

comment:9 Changed 17 years ago by jmroot (Joshua Root)

Cc: shreevatsa.public@… added

comment:10 in reply to:  8 Changed 17 years 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.

comment:11 Changed 16 years ago by gwright@…

Resolution: fixed
Status: newclosed

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

comment:12 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.