bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* error: GL_GENERATE_ERRNO_H does not appear in AM_CONDITIONAL
@ 2019-09-06 16:29 Bruce Korb
  2019-09-06 22:25 ` Bruno Haible
  0 siblings, 1 reply; 4+ messages in thread
From: Bruce Korb @ 2019-09-06 16:29 UTC (permalink / raw)
  To: bug-gnulib

Hi, what is the correct fix? I've not rebuilt for a couple of years
and this is a new surprise. Thanks.

Bootstrap messages:

configure.ac:30: installing 'config/missing'
Makefile.am: installing './COPYING' using GNU General Public License v3 file
Makefile.am:     Consider adding the COPYING file to the version control system
Makefile.am:     for your code, to avoid questions about which license
your proje
ct uses
agen5/Makefile.am: installing 'config/depcomp'
parallel-tests: installing 'config/test-driver'
autoopts/Makefile.am:97: error: GL_GENERATE_ERRNO_H does not appear in
AM_CONDITI
ONAL
autoopts/Makefile.am:152: error: GL_GENERATE_STDDEF_H does not appear
in AM_CONDI
TIONAL
doc/Makefile.am:38: installing 'config/texinfo.tex'
bootstrap failure:  FAILURE 1:  /usr/local/bin/automake --gnu --add-missing
cp: '/u/bkorb/tools/gnulib/build-aux/config.rpath' and
'config/./config.rpath' ar
e the same file
cp: '/u/bkorb/tools/gnulib/m4/lib-link.m4' and 'config/./lib-link.m4'
are the sam
e file
fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
gitlog-to-changelog: error closing pipe from git log --log-size
'--pretty=format:
%H:%ct  %an  <%ae>%n%n%s%n%b%n'


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: error: GL_GENERATE_ERRNO_H does not appear in AM_CONDITIONAL
  2019-09-06 16:29 error: GL_GENERATE_ERRNO_H does not appear in AM_CONDITIONAL Bruce Korb
@ 2019-09-06 22:25 ` Bruno Haible
  2019-09-06 23:16   ` Bruce Korb
  0 siblings, 1 reply; 4+ messages in thread
From: Bruno Haible @ 2019-09-06 22:25 UTC (permalink / raw)
  To: bug-gnulib; +Cc: Bruce Korb

Hi Bruce,

> Hi, what is the correct fix? I've not rebuilt for a couple of years
> and this is a new surprise. Thanks.
> 
> Bootstrap messages:
> 
> autoopts/Makefile.am:97: error: GL_GENERATE_ERRNO_H does not appear in
> AM_CONDITIONAL
> autoopts/Makefile.am:152: error: GL_GENERATE_STDDEF_H does not appear
> in AM_CONDITIONAL

These two message indicate that the 'configure' script was not correctly
generated.

There are many possible causes. Before you revisit your build system,
I would
  - try the same thing from a pristine checkout (no leftover files from
    a couple of years ago),
  - verify that the -I options passed to aclocal contain the directory
    where errno_h.m4 and stddef_h.m4 have been copied to.

Bruno



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: error: GL_GENERATE_ERRNO_H does not appear in AM_CONDITIONAL
  2019-09-06 22:25 ` Bruno Haible
@ 2019-09-06 23:16   ` Bruce Korb
  2019-09-07  0:58     ` Bruno Haible
  0 siblings, 1 reply; 4+ messages in thread
From: Bruce Korb @ 2019-09-06 23:16 UTC (permalink / raw)
  To: Bruno Haible; +Cc: bug-gnulib

[-- Attachment #1: Type: text/plain, Size: 3731 bytes --]

Hi Bruno,

On Fri, Sep 6, 2019 at 3:25 PM Bruno Haible <bruno@clisp.org> wrote:

> Hi Bruce,
> > Bootstrap messages:
> >
> > autoopts/Makefile.am:97: error: GL_GENERATE_ERRNO_H does not appear in
> > AM_CONDITIONAL
> > autoopts/Makefile.am:152: error: GL_GENERATE_STDDEF_H does not appear
> > in AM_CONDITIONAL
>
> These two message indicate that the 'configure' script was not correctly
> generated.
>

I had guessed that.

There are many possible causes. Before you revisit your build system,
> I would
>   - try the same thing from a pristine checkout (no leftover files from
>     a couple of years ago),
>

Countless years ago, my build process became blowing away the build tree,
cloning the repo tree, populating it only with managed files, and *then*
go in and bootstrap/autoreconf/configure/make. The configure stuff
has bit-rotted.


>   - verify that the -I options passed to aclocal contain the directory
>     where errno_h.m4 and stddef_h.m4 have been copied to.
>

It looks right:

libtoolize: linking file 'config/lt~obsolete.m4'
+shlib=run_autotools-177> doit /usr/local/bin/aclocal -I config
((note: I'm using a fancy PS4 here.
viz. PS4="+${prog}=\${FUNCNAME:-=}-\$LINENO> "))
+shlib=doit-34> test x/usr/local/bin/aclocal '!=' x:
+shlib=doit-36> echo 'RUN:  /usr/local/bin/aclocal -I config'
RUN:  /usr/local/bin/aclocal -I config
+shlib=doit-37> eval /usr/local/bin/aclocal -I config
++shlib=doit-37> /usr/local/bin/aclocal -I config
configure.ac:121: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call
detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
config/ag_macros.m4:215: AG_LINK_SETJMP is expanded from...
config/ag_macros.m4:568: INVOKE_AG_MACROS is expanded from...
configure.ac:121: the top level
configure.ac:121: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call
detected in body
.....
Makefile.am: installing './COPYING' using GNU General Public License v3 file
Makefile.am:     Consider adding the COPYING file to the version control
system
Makefile.am:     for your code, to avoid questions about which license your
project uses
agen5/Makefile.am: installing 'config/depcomp'
parallel-tests: installing 'config/test-driver'
autoopts/Makefile.am:97: error: GL_GENERATE_ERRNO_H does not appear in
AM_CONDITIONAL
autoopts/Makefile.am:152: error: GL_GENERATE_STDDEF_H does not appear in
AM_CONDITIONAL
doc/Makefile.am:38: installing 'config/texinfo.tex'
+shlib=doit-37> die 'FAILURE 1:  /usr/local/bin/automake --gnu
--add-missing'
+shlib=die-27> echo 'bootstrap failure:  FAILURE 1:
/usr/local/bin/automake --gnu --add-missing'

$ ls config
00gnulib.m4         extern-inline.m4   lib-ld.m4       pkg.m4
absolute-header.m4  gendocs.sh         lib-link.m4     snippet
ag_macros.m4        gen-files.tar.gz   liboptschk.m4   snprintfv.m4
bootstrap           gen-list.txt       libopts.m4      stat-time.m4
bootstrap.local     gnulib-cache.m4    lib-prefix.m4   stddef_h.m4
bootstrap.shlib     gnulib-common.m4   libtool.m4      stdnoreturn.m4
compile             gnulib-comp.m4     ltmain.sh       test-driver
config.guess        gnulib-tool.m4     lt~obsolete.m4  texinfo.tex
config.rpath        guile.m4           ltoptions.m4    time_h.m4
config.sub          host-cpu-c-abi.m4  ltsugar.m4      unlocked-io.m4
depcomp             include_next.m4    ltversion.m4    warn-on-use.m4
errno_h.m4          install-defs.sh    missing         wchar_t.m4
extensions.m4       install-sh         mk-shdefs.in

[-- Attachment #2: Type: text/html, Size: 6131 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: error: GL_GENERATE_ERRNO_H does not appear in AM_CONDITIONAL
  2019-09-06 23:16   ` Bruce Korb
@ 2019-09-07  0:58     ` Bruno Haible
  0 siblings, 0 replies; 4+ messages in thread
From: Bruno Haible @ 2019-09-07  0:58 UTC (permalink / raw)
  To: Bruce Korb; +Cc: bug-gnulib

Hi Bruce,

> It looks right:

Two other things to try:

* Try using the *newest* *releases* of Autoconf and Automake. This is the
  combination that is most reliable. It is not intended, but it may
  happen that older releases don't work.

* After running bootstrap, run the commands in order and check the results
  manually:
    0. rm -rf autom4te.cache
    1. aclocal -I ...
    2. check the aclocal.m4
    3. autoconf
    4. check the configure
    5. autoheader && touch config.h.in
    6. check the config.h.in
    7. automake --add-missing --copy
    8. check the various Makefile.in_s

Bruno



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-07  0:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-06 16:29 error: GL_GENERATE_ERRNO_H does not appear in AM_CONDITIONAL Bruce Korb
2019-09-06 22:25 ` Bruno Haible
2019-09-06 23:16   ` Bruce Korb
2019-09-07  0:58     ` Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).