bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't bootstrap bison


From: Bruno Haible
Subject: Re: can't bootstrap bison
Date: Tue, 07 Apr 2020 10:52:16 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-174-generic; KDE/5.18.0; x86_64; ; )

Hi Akim,

I wrote:
> I have an old bison checkout, without modifications. Now updated it
> using "git pull", then ran
>   $ ./bootstrap
> 
> The run ends with
> 
>   Don't forget to
>     - "include gnulib.mk" from within "lib/Makefile.am",
>     - add "gnulib-po/Makefile.in" to AC_CONFIG_FILES in ./configure.ac,
>     - mention "gnulib-po" in SUBDIRS in Makefile.am,
>     - mention "-I m4" in ACLOCAL_AMFLAGS in Makefile.am,
>     - mention "m4/gnulib-cache.m4" in EXTRA_DIST in Makefile.am,
>     - invoke gl_EARLY in ./configure.ac, right after AC_PROG_CC_STDC,
>     - invoke gl_INIT in ./configure.ac.
>   prefix=lib/
>   ./bootstrap: some git submodules are not initialized.  Run 'git submodule 
> init' and bootstrap again.
> 
> So I do this:
> 
>   $ git submodule init
>   $ ./bootstrap
>   ...
>   ./bootstrap: some git submodules are not initialized.  Run 'git submodule 
> init' and bootstrap again.
>   $ echo $?
>   1
>   $ git status
>   On branch master
>   Your branch is up-to-date with 'origin/master'.
>   nothing to commit, working directory clean
>   $ git submodule
>    d279bc6d9f9323e19ad8c32b6d12ff96dfb0f5ba gnulib (v0.1-3322-gd279bc6)
>   -babc8660d5a7561ed7e99e09aeabffaccfe06d6d submodules/autoconf

More details:

$ git -C submodule/autoconf status
fatal: Cannot change to 'submodule/autoconf': No such file or directory

$ cat .gitmodules 
[submodule "gnulib"]
        path = gnulib
        url = git://git.savannah.gnu.org/gnulib.git
[submodule "submodules/autoconf"]
        path = submodules/autoconf
        url = git://git.sv.gnu.org/autoconf.git

$ ls -l submodules
total 4
drwxr-xr-x 2 bruno bruno 4096 Apr  4  2017 autoconf

$ git -C submodules/autoconf status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

$ git -C gnulib status
HEAD detached at d279bc6
nothing to commit, working directory clean

To reproduce the issue, you find a copy of the checkout in
https://www.dropbox.com/s/ufhd3cuqxmtti4s/bison-broken-checkout.tar.xz
(30 MB).

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]