Opened 11 years ago

Closed 11 years ago

#40260 closed defect (fixed)

Cannot build darcs

Reported by: eschnett (Erik Schnetter) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: darcs

Description

Upgrading darcs to 2.8.4_1 fails. Its main.log ends with the error messages

:notice:configure --->  Configuring darcs
:debug:configure Using compiler 'Mac OS X Clang'
:debug:configure Executing org.macports.configure (darcs)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -Os -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -Os -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.8' CXX='/usr/bin/clang++' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_darcs/darcs/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -Os -m64' LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' __CFPREFERENCES_AVOID_DAEMON='1' OBJC='/usr/bin/clang' FCFLAGS='-pipe -Os -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -Os -arch x86_64' FFLAGS='-pipe -Os -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_darcs/darcs/work/darcs-2.8.4" && runhaskell Setup configure --prefix=/opt/local --with-compiler=/opt/local/bin/ghc -v --enable-library-profiling --with-gcc=/usr/bin/clang'
:debug:configure Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_darcs/darcs/work/darcs-2.8.4" && runhaskell Setup configure --prefix=/opt/local --with-compiler=/opt/local/bin/ghc -v --enable-library-profiling --with-gcc=/usr/bin/clang 
:info:configure 
:info:configure Setup.lhs:106:3: Warning:
:info:configure     In the use of `runTests'
:info:configure     (imported from Distribution.Simple, but defined in Distribution.Simple.UserHooks):
:info:configure     Deprecated: "Please use the new testing interface instead!"
:info:configure Configuring darcs-2.8.4...
:info:configure Setup: At least the following dependencies are missing:
:info:configure hashed-storage >=0.5.6 && <0.6,
:info:configure random ==1.0.*,
:info:configure regex-compat >=0.95.1,
:info:configure tar >=0.3 && <0.5
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_darcs/darcs/work/darcs-2.8.4" && runhaskell Setup configure --prefix=/opt/local --with-compiler=/opt/local/bin/ghc -v --enable-library-profiling --with-gcc=/usr/bin/clang 
:info:configure Exit code: 1
:error:configure org.macports.configure for port darcs returned: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
    while executing
"$procedure $targetname"
:info:configure Warning: targets not executed for darcs: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Please see the log file for port darcs for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_darcs/darcs/main.log

Attachments (1)

main.log (57.0 KB) - added by eschnett (Erik Schnetter) 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by eschnett (Erik Schnetter)

Attachment: main.log added

comment:1 Changed 11 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to cal@…
Status: newassigned

comment:2 Changed 11 years ago by neverpanic (Clemens Lang)

Please run sudo ghc-pkg recache, clean and try again. If that doesn't work, please deactivate and re-activate the ports hs-hashed-storage, hs-random, hs-regex-compat and hs-tar.

comment:3 Changed 11 years ago by eschnett (Erik Schnetter)

These two hints did not work for me -- I received strange errors while deactivating these packages (but the packages were deactivated anyway).

I then discovered that I had another version of ghc installed in /usr/bin, pointing to /Library/Frameworks. After removing this ghc installation, I un-installed all MacPorts ghc and hs-* packages, and re-installed them from scratch.

This aborted several times. Upon re-trying, I found that the probable cause was that hs-haskeline does not install properly without hs-terminfo installed, which did not get installed automatically. After installing it manually and various uninstall/clean commands, hs-haskeline and later also darcs finally installed.

In summary: It seems that the dependency hs-haskeline -> hs-terminfo is not properly handled. Everything else seem to have been errors on my part.

comment:4 in reply to:  3 Changed 11 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

Replying to schnetter@…:

I then discovered that I had another version of ghc installed in /usr/bin, pointing to /Library/Frameworks. After removing this ghc installation, I un-installed all MacPorts ghc and hs-* packages, and re-installed them from scratch.

The secondary GHC installation should not have been a problem (at least that's what I hope).

This aborted several times. Upon re-trying, I found that the probable cause was that hs-haskeline does not install properly without hs-terminfo installed, which did not get installed automatically. After installing it manually and various uninstall/clean commands, hs-haskeline and later also darcs finally installed.

In summary: It seems that the dependency hs-haskeline -> hs-terminfo is not properly handled. Everything else seem to have been errors on my part.

Dependency from hs-haskeline -> hs-terminfo added in r110149. I wonder why the cabal file doesn't list the dependency, though. Since the buildbot now also succeeded in building darcs, I think this is fixed.

Note: See TracTickets for help on using tickets.