The-OpenROAD-Project / OpenSTA

OpenSTA engine
GNU General Public License v3.0
399 stars 172 forks source link

aclocal warning #13

Closed tingjung closed 5 years ago

tingjung commented 5 years ago

Hi James, When I tried to install OpenSTA and executed $ ./bootstrap, I got the error messages below:

aclocal: couldn't open directory `m4': No such file or directory
autoreconf: aclocal failed with exit status: 1

After I create a directory named m4 by $ mkdir -p m4, the issue is solved.

mgwoo commented 5 years ago

In my case, I've solved this issue by typing

$ libtoolize

and tried

$ ./bootstrap
jjcherry56 commented 5 years ago

what version of autoconf do you have installed? the first line is just a warning and "normal". it works fine in autoconf 2.69, the required version documented in INSTALL

autoreconf --install aclocal: warning: couldn't open directory 'm4': No such file or directory glibtoolize: putting auxiliary files in '.'. glibtoolize: copying file './ltmain.sh' glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. glibtoolize: copying file 'm4/libtool.m4' glibtoolize: copying file 'm4/ltoptions.m4' glibtoolize: copying file 'm4/ltsugar.m4' glibtoolize: copying file 'm4/ltversion.m4' glibtoolize: copying file 'm4/lt~obsolete.m4' configure.ac:379: installing './compile' configure.ac:570: installing './config.guess' configure.ac:570: installing './config.sub' configure.ac:12: installing './install-sh' configure.ac:12: installing './missing' app/Makefile.am: installing './depcomp' configure.ac: installing './ylwrap'

On Thursday, December 13, 2018, Ting-Jung Chang notifications@github.com wrote:

Hi James, When I tried to install OpenSTA and executed $ ./bootstrap , I got the error messages below:

aclocal: couldn't open directory `m4': No such file or directory autoreconf: aclocal failed with exit status: 1

After I create a directory named m4 by $ mkdir -p m4, the issue is solved.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/abk-openroad/OpenSTA/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/AhI8lRNsR0ynpOfaBjlwmyndHplo8hIuks5u4syDgaJpZM4ZSfns .

tingjung commented 5 years ago

The autoconf on my machine was 2.63, but I still got the same messages after I installed version 2.69 of autoconf. $ libtoolize before $ ./bootstrap do solve the problem.

jjcherry56 commented 5 years ago

autoconf is one of many tools in the gnu configuration world. the versions rarely seem to be coordinated very well in machine configurations. what version of automake and libtool do you have?

On Thursday, December 13, 2018, Ting-Jung Chang notifications@github.com wrote:

The autoconf on my machine was 2.63, but I still got the same messages after I installed version 2.69 of autoconf. $ libtoolize before $ ./bootstrap do solve the problem.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/abk-openroad/OpenSTA/issues/13#issuecomment-447147280, or mute the thread https://github.com/notifications/unsubscribe-auth/AhI8lcO_u0SiM_4qQeBqS9UnsGBW6rzBks5u4tdUgaJpZM4ZSfns .

tingjung commented 5 years ago

It was 1.11.1 and 2.2.6b. After I update them to 1.15.1 and 2.4.6, I got new error messages like below

configure.ac:384: error: possibly undefined macro: AC_DISABLE_SHARED
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:576: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /path/to/autoconf failed with exit status: 1

$ libtoolize solves the problem though.

jjcherry56 commented 5 years ago

well, I can't help you because those same versions build without error when I use them:

bootstrap aclocal: warning: couldn't open directory 'm4': No such file or directory libtoolize: putting auxiliary files in '.'. libtoolize: copying file './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:387: installing './compile' configure.ac:576: installing './config.guess' configure.ac:576: installing './config.sub' configure.ac:20: installing './install-sh' configure.ac:20: installing './missing' app/Makefile.am: installing './depcomp' configure.ac: installing './ylwrap' ip-172-30-0-253> autoconf --version autoconf (GNU Autoconf) 2.69 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later ip-172-30-0-253> automake --version automake (GNU automake) 1.15.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later < http://gnu.org/licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey tromey@redhat.com and Alexandre Duret-Lutz adl@gnu.org. ip-172-30-0-253> libtool --version libtool: Command not found. ip-172-30-0-253> libtoolize --version libtoolize (GNU libtool) 2.4.6 Written by Gary V. Vaughan gary@gnu.org, 2003

Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ip-172-30-0-253>

On Friday, December 14, 2018, Ting-Jung Chang notifications@github.com wrote:

It was 1.11.1 and 2.2.6b. After I update them to 1.15.1 and 2.4.6, I got new error messages like below

configure.ac:384: error: possibly undefined macro: AC_DISABLE_SHARED If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.configure.ac:576: error: possibly undefined macro: AC_PROG_LIBTOOL autoreconf: /path/to/autoconf failed with exit status: 1

$ libtoolize solves the problem though.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/abk-openroad/OpenSTA/issues/13#issuecomment-447490938, or mute the thread https://github.com/notifications/unsubscribe-auth/AhI8lQBTbghDG79TIQEx9mGzh6KMuYRMks5u5B6TgaJpZM4ZSfns .

jjcherry56 commented 5 years ago

I posted a release on github that has a tarfile that lets you build without Autotools. You would be better off using that method. See the updated INSTALL.