[MacPorts] #40260: Cannot build darcs
#40260: Cannot build darcs -------------------------+-------------------------------- Reporter: schnetter@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: darcs -------------------------+-------------------------------- 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/40260> MacPorts <http://www.macports.org/> Ports system for OS X
#40260: Cannot build darcs --------------------------+---------------------- Reporter: schnetter@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: darcs | --------------------------+---------------------- Changes (by cal@…): * status: new => assigned * owner: macports-tickets@… => cal@… -- Ticket URL: <https://trac.macports.org/ticket/40260#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40260: Cannot build darcs --------------------------+---------------------- Reporter: schnetter@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: darcs | --------------------------+---------------------- Comment (by cal@…): 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`. -- Ticket URL: <https://trac.macports.org/ticket/40260#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40260: Cannot build darcs --------------------------+---------------------- Reporter: schnetter@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: darcs | --------------------------+---------------------- Comment (by 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. -- Ticket URL: <https://trac.macports.org/ticket/40260#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40260: Cannot build darcs --------------------------+-------------------- Reporter: schnetter@… | Owner: cal@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: Port: darcs | --------------------------+-------------------- Changes (by cal@…): * status: assigned => closed * resolution: => fixed Comment: Replying to [comment:3 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. -- Ticket URL: <https://trac.macports.org/ticket/40260#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts