Opened 15 years ago

Closed 15 years ago

#20468 closed defect (fixed)

ghc @6.10.3_7 and autoconf @2.64_0: ./configure: syntax error: unexpected end of file

Reported by: yllan@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), mdippery@…
Port: ghc, autoconf

Description

Get this error on my intel leopard machine.

--->  Fetching ghc
--->  Attempting to fetch ghc-6.10.3-src.tar.bz2 from http://distfiles.macports.org/ghc
--->  Attempting to fetch ghc-6.10.3-src-extralibs.tar.bz2 from http://distfiles.macports.org/ghc
--->  Attempting to fetch testsuite-6.10.3.tar.bz2 from http://distfiles.macports.org/ghc
--->  Attempting to fetch ghc-6.8.2-darwin-i386-leopard-bootstrap.tar.bz2 from http://distfiles.macports.org/ghc
--->  Verifying checksum(s) for ghc
--->  Extracting ghc
--->  Applying patches to ghc
--->  Configuring ghc
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_lang_ghc/work/ghc-6.10.3" && ./configure --prefix=/opt/local --prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/destroot/opt/local --datadir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/ghc-6.10.3 --with-gmp-includes=/opt/local/include --with-gmp-libraries=/opt/local/lib --with-ghc='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-bootstrap/bin/ghc' --with-gcc=/usr/bin/gcc-4.0 " returned error 2
Command output: checking build system type... i386-apple-darwin9.7.0
checking host system type... i386-apple-darwin9.7.0
checking target system type... i386-apple-darwin9.7.0
Canonicalised to: i386-apple-darwin
checking version of ghc... 6.8.2
checking for nhc... no
checking for nhc98... no
checking for hbc... no
checking for ld... /usr/bin/ld
./configure: line 11082: syntax error: unexpected end of file

Change History (21)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to gwright@…
Port: ghc added

comment:2 Changed 15 years ago by gwright@…

Status: newassigned

That's odd. What's your OS version (Tiger or Leopard) and platform (Intel/ppc)?

comment:3 in reply to:  2 Changed 15 years ago by yllan@…

Replying to gwright@…:

That's odd. What's your OS version (Tiger or Leopard) and platform (Intel/ppc)?

10.5.7 intel c2d

comment:4 Changed 15 years ago by guy.kogus@…

I'm having the same problem. Also Leopard (10.5.7) Intel.

comment:5 Changed 15 years ago by yllan@…

I got some clues about this situation.

I have another 10.5.7 ppc machine has the following "outdated" ports, which install ghc successfully. After I upgrade all the outdated port, I got "syntax error: unexpected end of file." There must be something incompatible with the following ports.

apr                            @1.3.7          devel/apr
apr-util                       @1.3.8          devel/apr-util
autoconf                       @2.64           devel/autoconf
automake                       @1.11           devel/automake
cairo                          @1.8.8          graphics/cairo
curl                           @7.19.5         net/curl
cyrus-sasl2                    @2.1.23         security/cyrus-sasl2
fontconfig                     @2.7.1          graphics/fontconfig
gawk                           @3.1.7          lang/gawk
git-core                       @1.6.4          devel/git-core
gsed                           @4.2.1          textproc/gsed
ImageMagick                    @6.5.4-0        graphics/ImageMagick
libiconv                       @1.13           textproc/libiconv
libpng                         @1.2.38         graphics/libpng
mysql5                         @5.0.83         databases/mysql5
p5-compress-raw-zlib           @2.020          perl/p5-compress-raw-zlib
p5-libwww-perl                 @5.826          perl/p5-libwww-perl
p5-uri                         @1.38           perl/p5-uri
pcre                           @7.9            devel/pcre
php5                           @5.3.0          lang/php5
rsync                          @3.0.6          net/rsync
sqlite3                        @3.6.16         databases/sqlite3
subversion                     @1.6.3          devel/subversion
subversion-perlbindings        @1.6.3          devel/subversion-perlbindings
xorg-inputproto                @1.5.1          x11/xorg-inputproto
xorg-libice                    @1.0.5          x11/xorg-libice
xorg-libsm                     @1.1.0          x11/xorg-libsm
xorg-libX11                    @1.2.2          x11/xorg-libX11
xorg-libXau                    @1.0.4          x11/xorg-libXau
xorg-libXdmcp                  @1.0.2          x11/xorg-libXdmcp
xorg-libXt                     @1.0.6          x11/xorg-libXt
xorg-renderproto               @0.11           x11/xorg-renderproto
xorg-util-macros               @1.2.2          x11/xorg-util-macros
xorg-xtrans                    @1.2.4          x11/xorg-xtrans
xrender                        @0.9.4          x11/xrender

comment:6 Changed 15 years ago by tobypeterson

Can you repost your installed ports using "port installed" ? port list is, as usual, quite useless

comment:7 Changed 15 years ago by tobypeterson

I suspect gsed +with_default_names, but 'port list' is useless... will see when 'port installed' output is posted

comment:8 Changed 15 years ago by yllan@…

Sorry for that. Here's my installed ports.

  apache2 @2.2.11_0+darwin_9 (active)
  apr @1.3.7_0 (active)
  apr-util @1.3.8_0 (active)
  autoconf @2.64_0 (active)
  autoconf213 @2.13_1 (active)
  automake @1.11_0 (active)
  bash-completion @1.0_1 (active)
  bison @2.4.1_0 (active)
  bzip2 @1.0.5_2 (active)
  cairo @1.8.8_0+macosx (active)
  curl @7.19.5_0+doc (active)
  cyrus-sasl2 @2.1.23_0+kerberos (active)
  db46 @4.6.21_5 (active)
  expat @2.0.1_0 (active)
  fontconfig @2.7.1_0+macosx (active)
  freetype @2.3.9_0+macosx (active)
  gawk @3.1.7_0 (active)
  gettext @0.17_4 (active)
  ghostscript @8.64_3 (active)
  git-core @1.6.4_0+bash_completion+doc+gitweb+svn (active)
  gmp @4.3.1_1 (active)
  gperf @3.0.4_0 (active)
  gsed @4.2.1_0 (active)
  help2man @1.36.4_1 (active)
  ImageMagick @6.5.4-0_0+q16 (active)
  jpeg @6b_3 (active)
  libiconv @1.13_0 (active)
  libmcrypt @2.5.8_1 (active)
  libpixman @0.14.0_0 (active)
  libpng @1.2.38_0 (active)
  libtool @2.2.6a_0 (active)
  libxml2 @2.7.3_0 (active)
  libxslt @1.1.24_2 (active)
  m4 @1.4.13_0 (active)
  mhash @0.9.9.9_0 (active)
  mysql5 @5.0.83_0 (active)
  ncurses @5.7_0 (active)
  ncursesw @5.7_0 (active)
  neon @0.28.4_0 (active)
  openssl @0.9.8k_0 (active)
  ossp-uuid @1.6.2_0 (active)
  p5-compress-raw-zlib @2.020_0 (active)
  p5-compress-zlib @2.015_0 (active)
  p5-crypt-ssleay @0.57_0 (active)
  p5-error @0.17015_0 (active)
  p5-html-parser @3.60_0 (active)
  p5-html-tagset @3.20_0 (active)
  p5-io-compress-base @2.015_0 (active)
  p5-io-compress-zlib @2.015_0 (active)
  p5-libwww-perl @5.826_0 (active)
  p5-locale-gettext @1.05_0 (active)
  p5-svn-simple @0.27_0 (active)
  p5-term-readkey @2.30_0 (active)
  p5-uri @1.38_0 (active)
  pcre @7.9_0 (active)
  perl5 @5.8.9_0 (active)
  perl5.8 @5.8.9_3 (active)
  php5 @5.3.0_1+apache2+fastcgi+macosx+mysql5+postgresql83+sockets+sqlite (active)
  pkgconfig @0.23_1 (active)
  popt @1.15_0 (active)
  postgresql83 @8.3.7_0 (active)
  postgresql83-server @8.3.7_0 (active)
  rb-activeresource @2.2.2_0 (active)
  rb-rake @0.8.3_0 (active)
  rb-sqlite3 @1.2.4_0 (active)
  readline @6.0.000_1 (active)
  rsync @3.0.6_0 (active)
  serf @0.3.0_0 (active)
  sqlite3 @3.6.16_0 (active)
  subversion @1.6.3_0+bash_completion (active)
  subversion-perlbindings @1.6.3_0 (active)
  tiff @3.8.2_3+macosx (active)
  xorg-bigreqsproto @1.0.2_0 (active)
  xorg-inputproto @1.5.1_0 (active)
  xorg-kbproto @1.0.3_0 (active)
  xorg-libice @1.0.5_1 (active)
  xorg-libsm @1.1.0_1 (active)
  xorg-libX11 @1.2.2_0 (active)
  xorg-libXau @1.0.4_1 (active)
  xorg-libXdmcp @1.0.2_1 (active)
  xorg-libXext @1.0.5_1 (active)
  xorg-libXt @1.0.6_0 (active)
  xorg-renderproto @0.11_0 (active)
  xorg-util-macros @1.2.2_0 (active)
  xorg-xcmiscproto @1.1.2_0 (active)
  xorg-xextproto @7.0.5_0 (active)
  xorg-xf86bigfontproto @1.1.2_0 (active)
  xorg-xproto @7.0.15_0 (active)
  xorg-xtrans @1.2.4_0 (active)
  xrender @0.9.4_6 (active)
  zlib @1.2.3_2 (active)

comment:9 Changed 15 years ago by guy.kogus@…

If you're thinking that it's something to do with port clashes, and I'm having the same problem, I thought that it might help to give you mine as well.

The following ports are currently installed:
  apr @1.3.7_0 (active)
  apr-util @1.3.8_0 (active)
  aspell @0.60.6_2+macosx (active)
  atk @1.26.0_1 (active)
  autoconf @2.64_0 (active)
  automake @1.11_0 (active)
  bash @4.0.28_0 (active)
  boost @1.39.0_2 (active)
  boost-jam @3.1.17_0 (active)
  bzip2 @1.0.5_2 (active)
  cairo @1.8.8_0+macosx (active)
  cairomm @1.8.2_0 (active)
  coreutils @7.4_0 (active)
  ctags @5.8_0 (active)
  cyrus-sasl2 @2.1.23_0+kerberos (active)
  db46 @4.6.21_5 (active)
  dbus @1.2.14_0 (active)
  dbus-glib @0.80_0 (active)
  docbook-xml @5.0_0 (active)
  docbook-xml-4.1.2 @4.1.2_1 (active)
  docbook-xml-4.2 @4.2_0 (active)
  docbook-xml-4.3 @4.3_0 (active)
  docbook-xml-4.4 @4.4_0 (active)
  docbook-xml-4.5 @4.5_0 (active)
  docbook-xml-5.0 @5.0_0 (active)
  docbook-xsl @1.75.1_0 (active)
  enchant @1.5.0_0 (active)
  expat @2.0.1_0 (active)
  fftw-3 @3.2.2_0 (active)
  fontconfig @2.7.1_0+macosx (active)
  freetype @2.3.9_0+macosx (active)
  gcc44 @4.4.1_0 (active)
  gconf @2.26.2_0 (active)
  gdbm @1.8.3_1 (active)
  gedit @2.26.3_0 (active)
  getopt @1.1.4_1 (active)
  gettext @0.17_4 (active)
  glib2 @2.20.4_0 (active)
  glibmm @2.20.1_0 (active)
  gmp @4.3.1_1 (active)
  gnome-common @2.26.0_0 (active)
  gnome-doc-utils @0.16.1_0 (active)
  gperf @3.0.4_0 (active)
  grep @2.5.3_0 (active)
  gtk-doc @1.11_0 (active)
  gtk2 @2.16.4_0+x11 (active)
  gtkmm @2.16.0_0 (active)
  gtksourceview2 @2.6.2_0 (active)
  help2man @1.36.4_1 (active)
  hunspell @1.2.8_0 (active)
  intltool @0.40.6_0 (active)
  iso-codes @3.10.1_0 (active)
  jasper @1.900.1_4 (active)
  jpeg @6b_3 (active)
  less @436_0 (active)
  libglade2 @2.6.4_0 (active)
  libiconv @1.13_0 (active)
  libidl @0.8.13_0 (active)
  libpixman @0.14.0_0 (active)
  libpng @1.2.38_0 (active)
  libsigcxx2 @2.2.3_0 (active)
  libtool @2.2.6a_0 (active)
  libxml2 @2.7.3_0 (active)
  libxslt @1.1.24_2 (active)
  lzmautils @4.32.7_1 (active)
  m4 @1.4.13_0 (active)
  mpfr @2.4.1-p4_1 (active)
  ncurses @5.7_0 (active)
  ncursesw @5.7_0 (active)
  neon @0.28.4_0 (active)
  openssl @0.9.8k_0 (active)
  orbit2 @2.14.17_1 (active)
  p5-locale-gettext @1.05_0 (active)
  p5-xml-parser @2.36_0 (active)
  pango @1.24.5_0+macosx (active)
  pangomm @2.24.0_0 (active)
  pcre @7.9_0 (active)
  perl5 @5.8.9_0 (active)
  perl5.8 @5.8.9_3 (active)
  pkgconfig @0.23_1 (active)
  policykit @0.9_0 (active)
  py25-cairo @1.8.2_0+darwin_9 (active)
  py25-gobject @2.18.0_0+darwin_9 (active)
  py25-gtk @2.14.1_0+darwin_9 (active)
  py25-libxml2 @2.6.21_1 (active)
  py25-nose @0.10.4_0 (active)
  py25-numpy @1.3.0_0 (active)
  py25-pygtksourceview @2.6.0_0+darwin_9 (active)
  py25-setuptools @0.6c9_0 (active)
  python25 @2.5.4_6+darwin_9+macosx (active)
  python26 @2.6.2_3 (active)
  python_select @0.2.1_0+darwin_9 (active)
  rarian @0.8.1_0 (active)
  readline @6.0.000_1 (active)
  serf @0.3.0_0 (active)
  shared-mime-info @0.60_0 (active)
  sqlite3 @3.6.16_0 (active)
  subversion @1.6.3_0 (active)
  sudo @1.7.2_0 (active)
  tcl @8.5.6_0 (active)
  texinfo @4.13_0 (active)
  tiff @3.8.2_3+macosx (active)
  tk @8.5.6_1 (active)
  vim @7.2.239_0 (active)
  Xft2 @2.1.13_2 (active)
  xmlcatmgr @2.2_1 (active)
  xorg-bigreqsproto @1.0.2_0 (active)
  xorg-compositeproto @0.4_0 (active)
  xorg-damageproto @1.1.0_0 (active)
  xorg-fixesproto @4.0_0 (active)
  xorg-inputproto @1.5.1_0 (active)
  xorg-kbproto @1.0.3_0 (active)
  xorg-libice @1.0.5_1 (active)
  xorg-libsm @1.1.0_1 (active)
  xorg-libX11 @1.2.2_0 (active)
  xorg-libXau @1.0.4_1 (active)
  xorg-libXcomposite @0.4.0_1 (active)
  xorg-libXcursor @1.1.9_1 (active)
  xorg-libXdamage @1.1.1_1 (active)
  xorg-libXdmcp @1.0.2_1 (active)
  xorg-libXext @1.0.5_1 (active)
  xorg-libXfixes @4.0.3_1 (active)
  xorg-libXi @1.2.1_1 (active)
  xorg-libXinerama @1.0.3_1 (active)
  xorg-libXrandr @1.3.0_1 (active)
  xorg-libXScrnSaver @1.1.3_1 (active)
  xorg-randrproto @1.3.0_0 (active)
  xorg-renderproto @0.11_0 (active)
  xorg-scrnsaverproto @1.1.0_0 (active)
  xorg-util-macros @1.2.2_0 (active)
  xorg-xcmiscproto @1.1.2_0 (active)
  xorg-xextproto @7.0.5_0 (active)
  xorg-xf86bigfontproto @1.1.2_0 (active)
  xorg-xineramaproto @1.1.2_0 (active)
  xorg-xproto @7.0.15_0 (active)
  xorg-xtrans @1.2.4_0 (active)
  xrender @0.9.4_6 (active)
  zlib @1.2.3_2 (active)

comment:10 Changed 15 years ago by kazu-yamamoto (Kazu Yamamoto)

I had the same problem but I could solved it. "autoreconf" installed by MacPorts is the cause. So, you can install GHC with "sudo port uninstall autoconf", (rehash if necessary) and "auto port install ghc".

comment:11 Changed 15 years ago by kouji.ueno@…

Hi, all.

# port deactivate autoconf@2.64_0
# port activate autoconf@2.63_0
# rm -fr /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc
# port install ghc

seems working.

comment:12 Changed 15 years ago by yllan@…

Confirmed.

comment:13 Changed 15 years ago by yaseppochi (Stephen J. Turnbull)

Thanks for the hint! I haven't finished the build yet, but I'm just so happy I had to report success in getting past line 11082. :-)

Used the recipe reported by Ueno-san, basically:

$ sudo port deactivate autoconf
$ sudo port activate autoconf @2.63_0
$ sudo port clean ghc; sudo port upgrade -u ghc

MacBook Pro 2.4 GHz Intel Core 2 Duo; Mac OS X Version 10.5.7.

comment:14 Changed 15 years ago by gwright@…

This is quite obscure for the typical user. I may need to force the use of the system autoreconf (/usr/bin/autoreconf) as a workaround.

comment:15 Changed 15 years ago by yaseppochi (Stephen J. Turnbull)

Mixing upstream versions with Apple's versions sounds like asking for trouble to me.

This is either a bug in ghc's configure script or in auto(re)conf. Is there anything that actually *depends* on a bleeding-edge autoconf? I've always found upgrading autoconf to be death by papercuts. Why not just delay introduction of autoconf 2.64 until somebody actually wants it, and/or upstream scripts have been fixed to conform to autoconf's fussiness-du-jour?

BTW, my build mentioned above completed successfully. Thanks to all, maintainers and users!

comment:16 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Port: autoconf added
Summary: ghc-6.10.3_7 Configure Error - unexpected end of fileghc @6.10.3_7 and autoconf @2.64_0: ./configure: syntax error: unexpected end of file

Same issue here on Tiger PPC. Downgrading autoconf from 2.64_0 to 2.63_0 worked around it.

comment:17 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

There is an upstream bug report for this problem, with patches (in dpatch format, whatever that is).

comment:18 Changed 15 years ago by mdippery@…

Cc: mdippery@… added

Cc Me!

comment:19 Changed 15 years ago by mf2k (Frank Schima)

There is now an autoconf263 port. It seems it should be added to the build dependencies.

comment:20 in reply to:  19 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to macsforever2000@…:

There is now an autoconf263 port. It seems it should be added to the build dependencies.

That would be fine. Does anybody know how to inform ghc to use autoconf263 instead of autoconf?

comment:21 Changed 15 years ago by gwright@…

Resolution: fixed
Status: assignedclosed

This is fixed in r56583. Builds cleanly with 2.63 and 2.64.

The problem was old cruft in the ghc autoconf macros. Upstream HEAD builds for 2.63 and 2.64, so when 6.12 comes out we should still be OK.

Note: See TracTickets for help on using tickets.