autoconf warnings; was: Compilation problems
I am having trivial problems compiling Verilator's git head under Ubuntu 10.04, maybe I've missed something when configuring. I have attached a patch that fixes most issues for me.
#1 Updated by Wilson Snyder about 2 years ago
- Status changed from New to Assigned
Thanks for the patch. There's something else going on though, as via the .h files there's an include of config_build.h, which has a #include of cstring. cstring should be the same as string.h under the std namespace.
Can you try replacing one of your string.h's with a cstring and see what happens? Thanks.
#2 Updated by R. Diez about 2 years ago
Oh wait, I know what happened. Instead of "autoconf", I issued at the beginning an "autoreconf" command, and that overwrote file config_build.h.in . This is the first line of the new contents:
/* src/config_build.h.in. Generated from configure.ac by autoheader. */
I wonder why autoheader decided to overwrite that file.
So I guess this bug is invalid after all.
Or maybe it's time to clean up the autotools support a little bit:
- autoconf --warnings=all
configure.ac:30: warning: The macro `AC_TRY_RUN' is obsolete. configure.ac:30: You should run autoupdate. ../../lib/autoconf/general.m4:2731: AC_TRY_RUN is expanded from... configure.ac:30: the top level configure.ac:30: warning: AC_RUN_IFELSE called without default to allow cross compiling ../../lib/autoconf/general.m4:2715: AC_RUN_IFELSE is expanded from... configure.ac:72: warning: AC_OUTPUT should be used without arguments. configure.ac:72: You should run autoupdate.
Thanks, R. Diez