Errors running v3.21.5 autogen.sh on Cygwin/Win10

122 views
Skip to first unread message

Davorin Mista

unread,
Nov 3, 2022, 12:29:50 PM11/3/22
to Protocol Buffers
I made sure to checkout with Unix-style line endings since I'm trying to build it all in the cygwin terminal but I still keep running into errors. Do I need to have a particular version of libtool? It keeps telling me to run autoupdate, which I subsequently did on the command line, but it's still saying it so I'm not sure what to make of that.

Any help is appreciated. 
Davorin

Here the full log when running autogen.sh:

$ ./autogen.sh
+ test -d third_party/googletest
+ mkdir -p third_party/googletest/m4
+ autoreconf -f -i -Wall,no-obsolete
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:30: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:30: You should run autoupdate.
m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
configure.ac:30: the top level
configure.ac:51: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:51: You should run autoupdate.
/mnt/share/cygpkgs/autoconf2.7/autoconf2.7.noarch/src/autoconf-2.71/lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from...
/mnt/share/cygpkgs/autoconf2.7/autoconf2.7.noarch/src/autoconf-2.71/lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
configure.ac:51: the top level
configure.ac:51: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:51: You should run autoupdate.
/mnt/share/cygpkgs/autoconf2.7/autoconf2.7.noarch/src/autoconf-2.71/lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from...
/mnt/share/cygpkgs/autoconf2.7/autoconf2.7.noarch/src/autoconf-2.71/lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
configure.ac:51: the top level
Can't exec "automake": No such file or directory at /usr/share/autoconf2.7/Autom4te/FileUtils.pm line 274.
autoreconf-2.71: error: automake failed with exit status: 1

Davorin Mista

unread,
Nov 3, 2022, 12:44:15 PM11/3/22
to Protocol Buffers
Nevermind, issue resolved - I was able to fix this by downgrading to autoconf 2.69 and reinstalling automake in Cygwin.
Thanks!
Davorin
Reply all
Reply to author
Forward
0 new messages