On Wed, 2014-03-26 at 11:24 +0100, Svante Signell wrote:
> Hi,
> 
> With the recent changes of gcc not using automake for the build, only
> auto{re}conf I have problems generating an updated Makefile.in from a
> modified Makfile.am. Source is gcc-4.9-4.9-20140322.
> 
> Some failing attempts:
> 
> automake 1.14.1: (same with automake-1.11)
> (cd src/libgo; automake -if)
> aclocal.m4:16: warning: this file was generated for autoconf 2.64.
> You have another version of autoconf.  It may work, but is not
> guaranteed to.
> If you have problems, you may need to regenerate the build system
> entirely.
> To do so, use the procedure documented by the package, typically
> `autoreconf'.
> config/go.m4:10: error: m4_copy: won't overwrite defined macro:
> AC_LANG_CONFTEST(Go)
> config/go.m4:10: the top level
> autom4te: /usr/bin/m4 failed with exit status: 1
> automake: error: autoconf failed with exit status: 1


removing src/libgo/Makefile.in gives the same error as with automake:

 cd ../../../src/libgo
&& /bin/bash /home/srs/DEBs/gcc/gcc-4.9-4.9-20140322/src/missing --run
automake-1.11 --foreign Makefile
aclocal.m4:16: warning: this file was generated for autoconf 2.64.
You have another version of autoconf.  It may work, but is not
guaranteed to.
If you have problems, you may need to regenerate the build system
entirely.
To do so, use the procedure documented by the package, typically
`autoreconf'.
config/go.m4:10: error: m4_copy: won't overwrite defined macro:
AC_LANG_CONFTEST(Go)
config/go.m4:10: the top level
autom4te: m4 failed with exit status: 1
automake-1.11: autoconf failed with exit status: 1
make[5]: Failed to remake makefile `Makefile'.
make[6]: Entering directory
`/home/srs/DEBs/gcc/gcc-4.9-4.9-20140322/build/i486-gnu/libgo'
 cd ../../../src/libgo
&& /bin/bash /home/srs/DEBs/gcc/gcc-4.9-4.9-20140322/src/missing --run
automake-1.11 --foreign Makefile
aclocal.m4:16: warning: this file was generated for autoconf 2.64.
You have another version of autoconf.  It may work, but is not
guaranteed to.
If you have problems, you may need to regenerate the build system
entirely.
To do so, use the procedure documented by the package, typically
`autoreconf'.
config/go.m4:10: error: m4_copy: won't overwrite defined macro:
AC_LANG_CONFTEST(Go)
config/go.m4:10: the top level
autom4te: m4 failed with exit status: 1
automake-1.11: autoconf failed with exit status: 1
make[6]: Failed to remake makefile `Makefile'.
make[6]: Leaving directory
`/home/srs/DEBs/gcc/gcc-4.9-4.9-20140322/build/i486-gnu/libgo'
...

Any idea on workarounds? Editing the old Makefile.in manually is not
nice, it is very unreadable. Too many things can go wrong :(

Reply via email to