GNU bug report logs - #50085
fatal error: parse-datetime.tab.h: No such file or directory

Previous Next

Package: coreutils;

Reported by: softwarebugreports <softwarebugreports <at> protonmail.com>

Date: Tue, 17 Aug 2021 02:35:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50085 in the body.
You can then email your comments to 50085 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#50085; Package coreutils. (Tue, 17 Aug 2021 02:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to softwarebugreports <softwarebugreports <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 17 Aug 2021 02:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: softwarebugreports <softwarebugreports <at> protonmail.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: fatal error: parse-datetime.tab.h: No such file or directory
Date: Tue, 17 Aug 2021 01:32:10 +0000
[Message part 1 (text/plain, inline)]
I receive the following error when using make with coreutils in a alpine based docker container:

> #10 304.0 CC lib/mkdir-p.o
> #10 304.1 CC lib/modechange.o
> #10 304.1 CC lib/mpsort.o
> #10 304.2 CC lib/nproc.o
> #10 304.2 CC lib/nstrftime.o
> #10 304.3 CC lib/openat-die.o
> #10 304.4 CC lib/openat-safer.o
> #10 304.4 CC lib/opendirat.o
> #10 304.4 CC lib/parse-datetime.o
> #10 304.5 parse-datetime.tab.c:658:10: fatal error: parse-datetime.tab.h: No such file or directory
> #10 304.5 compilation terminated.
> #10 304.5 make[2]: *** [Makefile:10276: lib/parse-datetime.o] Error 1
> #10 304.5 make[2]: Leaving directory '/coreutils'
> #10 304.5 make[1]: *** [Makefile:12913: all-recursive] Error 1
> #10 304.5 make[1]: Leaving directory '/coreutils'
> #10 304.5 make: *** [Makefile:7030: all] Error 2
> #10 ERROR: executor failed running [/bin/sh -c git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git && export FORCE_UNSAFE_CONFIGURE=1 && ./bootstrap && ./configure --disable-gcc-warnings --disable-nls --enable-install-program=hostname --enable-single-binary=symlinks --without-gmp && make]: exit code: 2
> ------
>> [6/6] RUN git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git && cd coreutils && export FORCE_UNSAFE_CONFIGURE=1 && ./bootstrap && ./configure --disable-gcc-warnings --disable-nls --enable-install-program=hostname --enable-single-binary=symlinks --without-gmp && make:
> ------
> executor failed running [/bin/sh -c git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git && export FORCE_UNSAFE_CONFIGURE=1 && ./bootstrap && ./configure --disable-gcc-warnings --disable-nls --enable-install-program=hostname --enable-single-binary=symlinks --without-gmp && make]: exit code: 2
> make: *** [Makefile:9: build-coreutils] Error 1

My Dockerfile has the following content:

> FROM alpine:3.14.1
>
> ENV CFLAGS "-static"
>
> RUN mkdir /static/
>
> RUN apk add --no-cache \
> acl-dev \
> attr-dev \
> autoconf \
> automake \
> bash \
> bison \
> coreutils \
> gcc \
> gettext-dev \
> git \
> gperf \
> make \
> musl-dev \
> patch \
> perl \
> perl \
> rsync \
> texinfo \
> utmps-dev \
> wget \
> xz
>
> RUN git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git \
> && cd coreutils \
> && export FORCE_UNSAFE_CONFIGURE=1 \
> && ./bootstrap \
> && ./configure \
> --disable-gcc-warnings \
> --disable-nls \
> --enable-install-program=hostname \
> --enable-single-binary=symlinks \
> --without-gmp \
> && make

Is there something I can try to correct this error?
[Message part 2 (text/html, inline)]

Reply sent to Pádraig Brady <P <at> draigBrady.com>:
You have taken responsibility. (Tue, 17 Aug 2021 15:17:02 GMT) Full text and rfc822 format available.

Notification sent to softwarebugreports <softwarebugreports <at> protonmail.com>:
bug acknowledged by developer. (Tue, 17 Aug 2021 15:17:02 GMT) Full text and rfc822 format available.

Message #10 received at 50085-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: softwarebugreports <softwarebugreports <at> protonmail.com>,
 50085-done <at> debbugs.gnu.org
Subject: Re: bug#50085: fatal error: parse-datetime.tab.h: No such file or
 directory
Date: Tue, 17 Aug 2021 16:16:03 +0100
On 17/08/2021 02:32, softwarebugreports via GNU coreutils Bug Reports wrote:
> I receive the following error when using make with coreutils in a alpine based docker container:
> 
>> #10 304.0 CC lib/mkdir-p.o
>> #10 304.1 CC lib/modechange.o
>> #10 304.1 CC lib/mpsort.o
>> #10 304.2 CC lib/nproc.o
>> #10 304.2 CC lib/nstrftime.o
>> #10 304.3 CC lib/openat-die.o
>> #10 304.4 CC lib/openat-safer.o
>> #10 304.4 CC lib/opendirat.o
>> #10 304.4 CC lib/parse-datetime.o
>> #10 304.5 parse-datetime.tab.c:658:10: fatal error: parse-datetime.tab.h: No such file or directory
>> #10 304.5 compilation terminated.
>> #10 304.5 make[2]: *** [Makefile:10276: lib/parse-datetime.o] Error 1
>> #10 304.5 make[2]: Leaving directory '/coreutils'
>> #10 304.5 make[1]: *** [Makefile:12913: all-recursive] Error 1
>> #10 304.5 make[1]: Leaving directory '/coreutils'
>> #10 304.5 make: *** [Makefile:7030: all] Error 2
>> #10 ERROR: executor failed running [/bin/sh -c git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git && export FORCE_UNSAFE_CONFIGURE=1 && ./bootstrap && ./configure --disable-gcc-warnings --disable-nls --enable-install-program=hostname --enable-single-binary=symlinks --without-gmp && make]: exit code: 2
>> ------
>>> [6/6] RUN git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git && cd coreutils && export FORCE_UNSAFE_CONFIGURE=1 && ./bootstrap && ./configure --disable-gcc-warnings --disable-nls --enable-install-program=hostname --enable-single-binary=symlinks --without-gmp && make:
>> ------
>> executor failed running [/bin/sh -c git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git && export FORCE_UNSAFE_CONFIGURE=1 && ./bootstrap && ./configure --disable-gcc-warnings --disable-nls --enable-install-program=hostname --enable-single-binary=symlinks --without-gmp && make]: exit code: 2
>> make: *** [Makefile:9: build-coreutils] Error 1
> 
> My Dockerfile has the following content:
> 
>> FROM alpine:3.14.1
>>
>> ENV CFLAGS "-static"
>>
>> RUN mkdir /static/
>>
>> RUN apk add --no-cache \
>> acl-dev \
>> attr-dev \
>> autoconf \
>> automake \
>> bash \
>> bison \
>> coreutils \
>> gcc \
>> gettext-dev \
>> git \
>> gperf \
>> make \
>> musl-dev \
>> patch \
>> perl \
>> perl \
>> rsync \
>> texinfo \
>> utmps-dev \
>> wget \
>> xz
>>
>> RUN git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git \
>> && cd coreutils \
>> && export FORCE_UNSAFE_CONFIGURE=1 \
>> && ./bootstrap \
>> && ./configure \
>> --disable-gcc-warnings \
>> --disable-nls \
>> --enable-install-program=hostname \
>> --enable-single-binary=symlinks \
>> --without-gmp \
>> && make
> 
> Is there something I can try to correct this error?

Seems this is related bison >= 3.7 which Bruno fixed in:
https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00178.html

That would have to be integrated as a patch against your coreutils sources.

cheers,
Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#50085; Package coreutils. (Tue, 17 Aug 2021 15:33:02 GMT) Full text and rfc822 format available.

Message #13 received at 50085 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: softwarebugreports <softwarebugreports <at> protonmail.com>,
 50085 <at> debbugs.gnu.org
Subject: Re: bug#50085: fatal error: parse-datetime.tab.h: No such file or
 directory
Date: Tue, 17 Aug 2021 16:32:13 +0100
On 17/08/2021 16:16, Pádraig Brady wrote:
> On 17/08/2021 02:32, softwarebugreports via GNU coreutils Bug Reports wrote:
>> I receive the following error when using make with coreutils in a alpine based docker container:
>>

>>> #10 304.5 parse-datetime.tab.c:658:10: fatal error: parse-datetime.tab.h: No such file or directory


>>> RUN git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git \
>>> && cd coreutils \
>>> && export FORCE_UNSAFE_CONFIGURE=1 \
>>> && ./bootstrap \
>>> && ./configure \
>>> --disable-gcc-warnings \
>>> --disable-nls \
>>> --enable-install-program=hostname \
>>> --enable-single-binary=symlinks \
>>> --without-gmp \
>>> && make
>>
>> Is there something I can try to correct this error?
> 
> Seems this is related bison >= 3.7 which Bruno fixed in:
> https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00178.html
> 
> That would have to be integrated as a patch against your coreutils sources.

Actually there were a few more fixes in that file,
so it's best base adjustments off this version:
https://github.com/coreutils/gnulib/blob/8002ca7b/modules/parse-datetime

cheers,
Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#50085; Package coreutils. (Wed, 18 Aug 2021 00:18:02 GMT) Full text and rfc822 format available.

Message #16 received at 50085 <at> debbugs.gnu.org (full text, mbox):

From: softwarebugreports <softwarebugreports <at> protonmail.com>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 50085 <at> debbugs.gnu.org
Subject: Re: bug#50085: fatal error: parse-datetime.tab.h: No such file or
 directory
Date: Tue, 17 Aug 2021 23:48:08 +0000
Thank you for the help! I tried using 8002ca7b56acb46b42eeac4a343e112a8ee283cf and the latest commits from master and received the following errors while running bootstrap now:
#10 154.1 Copying file m4/stdint_h.m4
#10 154.2 Copying file m4/threadlib.m4
#10 154.2 Copying file m4/uintmax_t.m4
#10 154.2 Copying file m4/visibility.m4
#10 154.2 Copying file m4/wchar_t.m4
#10 154.3 Copying file m4/wint_t.m4
#10 154.3 Copying file m4/xsize.m4
#10 154.3 Copying file po/Makefile.in.in
#10 154.3 Copying file po/Makevars.template
#10 154.4 Copying file po/Rules-quot
#10 154.4 Copying file po/boldquot.sed
#10 154.4 Copying file po/en <at> boldquot.header
#10 154.5 Copying file po/en <at> quot.header
#10 154.5 Copying file po/insert-header.sin
#10 154.5 Copying file po/quot.sed
#10 154.5 Copying file po/remove-potcdate.sin
#10 156.1 ./bootstrap: gnulib/gnulib-tool    --no-changelog   --aux-dir=build-aux   --doc-base=doc   --lib=libcoreutils   --m4-base=m4/   --source-base=lib/   --tests-base=tests   --local-dir=gl   --tests-base=gnulib-tests --with-tests --symlink --makefile-name=gnulib.mk
#10 156.1    --import ...
#10 159.5 gnulib-tool: warning: module diacrit doesn't exist
#10 169.0 1 out of 1 hunk FAILED -- saving rejects to file /tmp/glgMTDiu/tempname.rej
#10 169.0 gnulib/gnulib-tool: *** patch file gl/modules/tempname.diff didn't apply cleanly
#10 169.0 gnulib/gnulib-tool: *** Stop.
#10 169.1 1 out of 1 hunk FAILED -- saving rejects to file /tmp/glgMTDiu/tempname.rej
#10 169.1 gnulib/gnulib-tool: *** patch file gl/modules/tempname.diff didn't apply cleanly
#10 169.1 gnulib/gnulib-tool: *** Stop.
#10 177.2 1 out of 1 hunk FAILED -- saving rejects to file /tmp/glgMTDiu/tempname.rej
#10 177.2 gnulib/gnulib-tool: *** patch file gl/modules/tempname.diff didn't apply cleanly
#10 177.2 gnulib/gnulib-tool: *** Stop.
#10 177.2 ./bootstrap: gnulib-tool failed
#10 ERROR: executor failed running [/bin/sh -c git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git     && cd coreutils     && git clone https://git.savannah.gnu.org/git/gnulib.git     && export FORCE_UNSAFE_CONFIGURE=1     && ./bootstrap --gnulib-srcdir=gnulib --no-git     && ./configure     --disable-gcc-warnings     --disable-nls     --enable-install-program=hostname     --enable-single-binary=symlinks     --without-gmp     && make]: exit code: 1
------
> [6/6] RUN git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git     && cd coreutils     && git clone https://git.savannah.gnu.org/git/gnulib.git     && export FORCE_UNSAFE_CONFIGURE=1     && ./bootstrap --gnulib-srcdir=gnulib --no-git     && ./configure     --disable-gcc-warnings     --disable-nls     --enable-install-program=hostname     --enable-single-binary=symlinks     --without-gmp     && make:
------
executor failed running [/bin/sh -c git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git     && cd coreutils     && git clone https://git.savannah.gnu.org/git/gnulib.git     && export FORCE_UNSAFE_CONFIGURE=1     && ./bootstrap --gnulib-srcdir=gnulib --no-git     && ./configure     --disable-gcc-warnings     --disable-nls     --enable-install-program=hostname     --enable-single-binary=symlinks     --without-gmp     && make]: exit code: 1
make: *** [Makefile:9: build-coreutils] Error 1

My Dockerfile has the following content:
...
RUN git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git \
    && cd coreutils \
    && git clone https://git.savannah.gnu.org/git/gnulib.git \
    && export FORCE_UNSAFE_CONFIGURE=1 \
    && ./bootstrap --gnulib-srcdir=gnulib --no-git \
    && ./configure \
    --disable-gcc-warnings \
    --disable-nls \
    --enable-install-program=hostname \
    --enable-single-binary=symlinks \
    --without-gmp \
    && make

Am I running bootstrap with improper flags or without necessary environment variables?

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Tuesday, August 17th, 2021 at 11:32 AM, Pádraig Brady <P <at> draigBrady.com> wrote:

> On 17/08/2021 16:16, Pádraig Brady wrote:
>
> > On 17/08/2021 02:32, softwarebugreports via GNU coreutils Bug Reports wrote:
> >
> > > I receive the following error when using make with coreutils in a alpine based docker container:
>
> > > > #10 304.5 parse-datetime.tab.c:658:10: fatal error: parse-datetime.tab.h: No such file or directory
>
> > > > RUN git clone --branch v8.32 --single-branch https://git.savannah.gnu.org/git/coreutils.git \
> > > >
> > > > && cd coreutils \
> > > >
> > > > && export FORCE_UNSAFE_CONFIGURE=1 \
> > > >
> > > > && ./bootstrap \
> > > >
> > > > && ./configure \
> > > >
> > > > --disable-gcc-warnings \
> > > >
> > > > --disable-nls \
> > > >
> > > > --enable-install-program=hostname \
> > > >
> > > > --enable-single-binary=symlinks \
> > > >
> > > > --without-gmp \
> > > >
> > > > && make
> > >
> > > Is there something I can try to correct this error?
> >
> > Seems this is related bison >= 3.7 which Bruno fixed in:
> >
> > https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00178.html
> >
> > That would have to be integrated as a patch against your coreutils sources.
>
> Actually there were a few more fixes in that file,
>
> so it's best base adjustments off this version:
>
> https://github.com/coreutils/gnulib/blob/8002ca7b/modules/parse-datetime
>
> cheers,
>
> Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#50085; Package coreutils. (Wed, 18 Aug 2021 15:02:02 GMT) Full text and rfc822 format available.

Message #19 received at 50085 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: softwarebugreports <softwarebugreports <at> protonmail.com>
Cc: Pádraig Brady <P <at> draigBrady.com>, 50085 <at> debbugs.gnu.org
Subject: Re: bug#50085: fatal error: parse-datetime.tab.h: No such file or
 directory
Date: Wed, 18 Aug 2021 08:01:34 -0700
On 8/17/21 4:48 PM, softwarebugreports via GNU coreutils Bug Reports wrote:
> Thank you for the help! I tried using 8002ca7b56acb46b42eeac4a343e112a8ee283cf and the latest commits from master

You can't combine the latest Coreutils master commit with old Gnulib 
commits like 8002ca7b56acb46b42eeac4a343e112a8ee283cf (2020-09-13). 
Combinations like that are not intended to work. You need to use the 
Gnulib commit given as a submodule in the Coreutils commit.




Information forwarded to bug-coreutils <at> gnu.org:
bug#50085; Package coreutils. (Wed, 18 Aug 2021 21:33:01 GMT) Full text and rfc822 format available.

Message #22 received at 50085 <at> debbugs.gnu.org (full text, mbox):

From: softwarebugreports <softwarebugreports <at> protonmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Pádraig Brady <P <at> draigBrady.com>, 50085 <at> debbugs.gnu.org
Subject: Re: bug#50085: fatal error: parse-datetime.tab.h: No such file or
 directory
Date: Wed, 18 Aug 2021 21:32:14 +0000
Thanks for your patience and clarification. I was able to get it working properly with the latest master:

RUN git clone --branch master --single-branch https://git.savannah.gnu.org/git/coreutils.git \
    && cd coreutils \
    && export FORCE_UNSAFE_CONFIGURE=1 \
    && ./bootstrap \
    && ./configure \
    --disable-gcc-warnings \
    && make

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Wednesday, August 18th, 2021 at 11:01 AM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:

> On 8/17/21 4:48 PM, softwarebugreports via GNU coreutils Bug Reports wrote:
>
> > Thank you for the help! I tried using 8002ca7b56acb46b42eeac4a343e112a8ee283cf and the latest commits from master
>
> You can't combine the latest Coreutils master commit with old Gnulib
>
> commits like 8002ca7b56acb46b42eeac4a343e112a8ee283cf (2020-09-13).
>
> Combinations like that are not intended to work. You need to use the
>
> Gnulib commit given as a submodule in the Coreutils commit.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 16 Sep 2021 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 278 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.