bug#50085: fatal error: parse-datetime.tab.h: No such file or directory
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 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#50085: fatal error: parse-datetime.tab.h: No such file or directory
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#50085: fatal error: parse-datetime.tab.h: No such file or directory
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@boldquot.header #10 154.5 Copying file po/en@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 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? > > > >
bug#50085: fatal error: parse-datetime.tab.h: No such file or directory
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
bug#50085: fatal error: parse-datetime.tab.h: No such file or directory
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
bug#50085: fatal error: parse-datetime.tab.h: No such file or directory
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?