Ticket #25520 (closed defect: fixed)
can't install ghc (autoconf failure)
| Reported by: | erik.flister@… | Owned by: | gwright@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.1 |
| Keywords: | Cc: | ram@… | |
| Port: | ghc autoconf |
Description
$ sudo port install haskell-platform ---> Computing dependencies for ghc ---> Configuring ghc Error: Target org.macports.configure returned: shell command failed Log for ghc is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/main.log Error: Unable to upgrade port: 1 Error: Unable to execute port: upgrade ghc failed To report a bug, see <http://guide.macports.org/#project.tickets>
$ less /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/main.log
version:1
:msg:main ---> Computing dependencies for ghc:info:main .:debug:main Searching for dependency: autoconf
:debug:main Found Dependency: receipt exists for autoconf
:debug:main Searching for dependency: gmp
:debug:main Found Dependency: receipt exists for gmp
:debug:main Searching for dependency: ncursesw
:debug:main Found Dependency: receipt exists for ncursesw
:debug:main Searching for dependency: libiconv
:debug:main Found Dependency: receipt exists for libiconv
:debug:main Searching for dependency: perl5.8
:debug:main Found Dependency: receipt exists for perl5.8
:msg:main
:debug:main Executing org.macports.main (ghc)
:debug:main Skipping completed org.macports.fetch (ghc)
:debug:main Skipping completed org.macports.checksum (ghc)
:debug:main setting option extract.cmd to /usr/bin/bzip2
:debug:main Skipping completed org.macports.extract (ghc)
:debug:main Skipping completed org.macports.patch (ghc)
:msg:main ---> Configuring ghc
:debug:main Using compiler 'Mac OS X gcc 4.0'
:debug:configure configure phase started at Sun Jul 4 20:09:35 PDT 2010
:debug:configure Executing proc-pre-org.macports.configure-configure-0
:debug:configure Executing proc-pre-org.macports.configure-configure-1
:info:configure configure.ac:1062: error: FP_CHECK_ALIGNMENT: requires literal arguments
:info:configure aclocal.m4:91: FP_CHECK_ALIGNMENT is expanded from...
:info:configure configure.ac:1062: the top level
:info:configure autom4te: /opt/local/bin/gm4 failed with exit status: 1
:info:configure configure.ac:1062: error: FP_CHECK_ALIGNMENT: requires literal arguments
:info:configure aclocal.m4:91: FP_CHECK_ALIGNMENT is expanded from...
:info:configure configure.ac:1062: the top level
:info:configure autom4te: /opt/local/bin/gm4 failed with exit status: 1
:info:configure autoreconf: /opt/local/bin/autoconf failed with exit status: 1
:info:configure shell command "/opt/local/bin/autoreconf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_la
ng_ghc/work/ghc-6.10.4" returned error 1
:error:configure Target org.macports.configure returned: shell command failed
:debug:configure Backtrace: shell command failed
while executing
"$pre $targetname"
:info:configure Warning: the following items did not execute (for ghc): org.macports.destroot org.macports.configure org.macports.build
:notice:configure Log for ghc is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/main.log
Change History
comment:1 Changed 3 years ago by jmr@…
- Owner changed from macports-tickets@… to gwright@…
- Port changed from haskell-platform to ghc
- Summary changed from can't install haskell-platform to can't install ghc (autoconf failure)
comment:2 Changed 3 years ago by erik.flister@…
how do i find out who the maintainer is and their email address? i did post it here:
comment:3 Changed 3 years ago by erik.flister@…
i'm on osx 10.5.8 intel, btw. i did try uninstalling ghc and then retrying both haskell-platform and ghc. both gave the same error + log as above.
comment:4 Changed 3 years ago by jwhowse4@…
I am encountering the same error on an Intel Mac running Snow Leopard 10.6.4, XCode 3.2.3 and MacPorts autoconf @2.66_2.
comment:5 in reply to: ↑ description Changed 3 years ago by macports@…
May be related to autoconf problem others are having: #25509
comment:6 Changed 3 years ago by macsforever2000@…
- Cc oliver.saunders@… added
Cc reporter of duplicate #25531.
comment:7 Changed 3 years ago by ram@…
- Cc ram@… added
- Port changed from ghc to ghc autoconf
autoconf has been reverted to 2.65_1 in r69426, does the problem still persist after a selfupdate (and upgrade outdated)?
comment:8 Changed 3 years ago by oliver.saunders@…
sudo port activate autoconf @2.65_1 worked for me.
comment:10 Changed 3 years ago by erik.flister@…
- Status changed from closed to reopened
- Resolution fixed deleted
i did selfupdate and then
$ sudo port upgrade outdated
this successfully did a ton of stuff, but then...
---> Computing dependencies for hs-hashed-storage ---> Configuring hs-hashed-storage Error: Target org.macports.configure returned: configure failure: shell command failed Log for hs-hashed-storage is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_hs-hashed-storage/main.log Error: Problem while installing hs-hashed-storage To report a bug, see <http://guide.macports.org/#project.tickets>
$ less /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_hs-hashed-storage/main.log
version:1
:msg:main ---> Computing dependencies for hs-hashed-storage:info:main .:debug:main Searching for dependency: ghc
:debug:main Found Dependency: receipt exists for ghc
:debug:main Searching for dependency: ghc
:debug:main Found Dependency: receipt exists for ghc
:debug:main Searching for dependency: hs-binary
:debug:main Found Dependency: receipt exists for hs-binary
:debug:main Searching for dependency: hs-dataenc
:debug:main Found Dependency: receipt exists for hs-dataenc
:debug:main Searching for dependency: hs-mmap
:debug:main Found Dependency: receipt exists for hs-mmap
:msg:main
:debug:main Executing org.macports.main (hs-hashed-storage)
:debug:main Skipping completed org.macports.fetch (hs-hashed-storage)
:debug:main Skipping completed org.macports.checksum (hs-hashed-storage)
:debug:main Skipping completed org.macports.extract (hs-hashed-storage)
:debug:main Skipping completed org.macports.patch (hs-hashed-storage)
:msg:main ---> Configuring hs-hashed-storage
:debug:main Using compiler 'Mac OS X gcc 4.0'
:debug:configure configure phase started at Tue Jul 6 06:45:01 PDT 2010
:debug:configure Executing org.macports.configure (hs-hashed-storage)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-O2 -arch i386' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch i386' LIBRARY_PATH='/
opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.5' CXX='/usr/bin/g++-4.0' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources
_rsync.macports.org_release_ports_devel_hs-hashed-storage/work/.CC_PRINT_OPTIONS' F90FLAGS='-O2 -m32' LDFLAGS='-L/opt/local/lib -arch i386' OBJC='/usr/bin
/gcc-4.0' FCFLAGS='-O2 -m32' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch i386' FFLAGS='-O2 -m32' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.0'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_hs-hashed-st
orage/work/hashed-storage-0.4.7" && runhaskell Setup configure --prefix=/opt/local --with-compiler=/opt/local/bin/ghc -v --enable-library-profiling --with
-gcc=/usr/bin/gcc-4.0'
:info:configure Configuring hashed-storage-0.4.7...
:info:configure Setup: At least the following dependencies are missing:
:info:configure mmap ==0.4.*, zlib -any
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_hs-hashed-storage
/work/hashed-storage-0.4.7" && runhaskell Setup configure --prefix=/opt/local --with-compiler=/opt/local/bin/ghc -v --enable-library-profiling --with-gcc=
/usr/bin/gcc-4.0 " returned error 1
:error:configure Target org.macports.configure returned: configure failure: shell command failed
:debug:configure Backtrace: configure failure: shell command failed
while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for hs-hashed-storage): org.macports.activate org.macports.configure org.macports.build org.
macports.destroot org.macports.install
:notice:configure Log for hs-hashed-storage is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_hs-
hashed-storage/main.log
autoconf @2.65_1 is active.
comment:11 Changed 3 years ago by jmr@…
- Status changed from reopened to closed
- Resolution set to fixed
That's a completely different error while building a completely different port.
comment:12 Changed 3 years ago by erik.flister@…
i see it's from gcc instead of autoconf, but it looks very similar and mentions configure, so i thought it was the same thing. opened 25552 for it.
:error:configure Target org.macports.configure returned: configure
failure: shell command failed
:debug:configure Backtrace: configure failure: shell command failed
while executing
"$procedure $targetname"
:error:configure Target org.macports.configure returned: shell command failed
:debug:configure Backtrace: shell command failed
while executing
"$pre $targetname"


Please remember to cc the maintainer.