[MacPorts] #43773: gmp: nawk: syntax error at source line 1 source file ./conf5pflxn/subs.awk (was: mac port install gmp fail on Maverick)

MacPorts noreply at macports.org
Wed May 21 02:40:10 PDT 2014


#43773: gmp: nawk: syntax error at source line 1 source file ./conf5pflxn/subs.awk
--------------------------------+------------------------
  Reporter:  didier.regniaud@…  |      Owner:  mcalhoun@…
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.2.1
Resolution:                     |   Keywords:
      Port:  gmp                |
--------------------------------+------------------------
Changes (by ryandesign@…):

 * owner:  macports-tickets@… => mcalhoun@…


Old description:

> Hi
> When i tried to install bmp by
> sudo port -v install gmp
> i get the error:
>
> ...
> checking for readline/history.h... yes
> checking readline detected... yes
> checking for bison... bison -y
> checking for flex... flex
> checking lex output file root... lex.yy
> checking lex library... -ll
> checking whether yytext is a pointer... yes
> checking for ranlib... (cached) ranlib
> creating config.m4
> configure: creating ./config.status
> config.status: creating demos/pexpr-config.h
> nawk: syntax error at source line 1 source file ./conf5pflxn/subs.awk
>  context is
>          >>> BEGIN <<<  {
> nawk: bailing out at source line 255
> config.status: error: could not create demos/pexpr-config.h
> Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.0.0"
> && ./configure --prefix=/opt/local --enable-cxx
> Exit code: 1
> Error: Failed to configure gmp, consult
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.0.0/config.log
> Error: org.macports.configure for port gmp returned: configure failure:
> command execution failed
> Warning: targets not executed for gmp: org.macports.activate
> org.macports.configure org.macports.build org.macports.destroot
> org.macports.install
> Please see the log file for port gmp for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/main.log
> To report a bug, follow the instructions in the guide:
>     http://guide.macports.org/#project.tickets
> Error: Processing of port bmp failed
>
> Any ideas?
>
> Thanks
> Didier

New description:

 Hi [[br]]
 When i tried to install bmp by
 {{{
 sudo port -v install gmp
 }}}
 i get the error:
 {{{
 ...
 checking for readline/history.h... yes
 checking readline detected... yes
 checking for bison... bison -y
 checking for flex... flex
 checking lex output file root... lex.yy
 checking lex library... -ll
 checking whether yytext is a pointer... yes
 checking for ranlib... (cached) ranlib
 creating config.m4
 configure: creating ./config.status
 config.status: creating demos/pexpr-config.h
 nawk: syntax error at source line 1 source file ./conf5pflxn/subs.awk
  context is
          >>> BEGIN <<<  {
 nawk: bailing out at source line 255
 config.status: error: could not create demos/pexpr-config.h
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.0.0"
 && ./configure --prefix=/opt/local --enable-cxx
 Exit code: 1
 Error: Failed to configure gmp, consult
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.0.0/config.log
 Error: org.macports.configure for port gmp returned: configure failure:
 command execution failed
 Warning: targets not executed for gmp: org.macports.activate
 org.macports.configure org.macports.build org.macports.destroot
 org.macports.install
 Please see the log file for port gmp for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/main.log
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port bmp failed
 }}}
 Any ideas?

 Thanks [[br]]
 Didier

--

Comment:

 It looks like you have nawk installed, and gmp is incompatible with it.
 Try deactivating nawk, then building gmp, then (if desired) reactivating
 nawk again.

 {{{
 sudo port clean gmp
 sudo port -f deactivate nawk
 sudo port install gmp
 sudo port activate nawk
 }}}

 If that fixes it, we should add "conflicts_build nawk" to the port.

 I've seen many configure scripts be incompatible with nawk, so you may
 want to consider not re-activating nawk, and using a different awk
 implementation instead, such as gawk.

-- 
Ticket URL: <https://trac.macports.org/ticket/43773#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list