Closed dslm4515 closed 3 years ago
But yet if I try it under the host, and not in the chroot:
$ autoreconf -vfi
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
Copying file build-aux/config.rpath
Copying file m4/extern-inline.m4
Copying file m4/glibc2.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intmax.m4
Copying file m4/printf-posix.m4
Copying file m4/uintmax_t.m4
Copying file po/Makefile.in.in
Copying file po/Makevars.template
autoreconf: running: aclocal -I /usr/share/aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
Recompiled libtool without this prepended to the configure script:
lt_cv_shlibpath_overrides_runpath=yes
Then recompile autoconf and automake.
Now coreutils builds fine without running autoreconf -fvi
first. Although, autoreconf -fvi
still fails.
Just noticed that in the coreutils
source, gl_PTHREADLIB
appears in the m4 directory:
$ grep gl_PTHREADLIB m4/*
m4/mbrtowc.m4: AC_REQUIRE([gl_PTHREADLIB])
m4/pthread_h.m4: AC_REQUIRE([gl_PTHREADLIB])
m4/sched_yield.m4: AC_REQUIRE([gl_PTHREADLIB])
m4/setlocale_null.m4: AC_REQUIRE([gl_PTHREADLIB])
m4/threadlib.m4:dnl gl_PTHREADLIB
m4/threadlib.m4:dnl The guts of gl_PTHREADLIB. Needs to be expanded only once.
m4/threadlib.m4:AC_DEFUN([gl_PTHREADLIB_BODY],
m4/threadlib.m4:AC_DEFUN([gl_PTHREADLIB],
m4/threadlib.m4: gl_PTHREADLIB_BODY
m4/threadlib.m4: gl_PTHREADLIB_BODY
m4/threadlib.m4: gl_PTHREADLIB_BODY
m4/yield.m4: AC_REQUIRE([gl_PTHREADLIB])
Perhaps, autoconf is skipping this directory?
Rebuilt Toolchain with gettext-tiny
instead of GNU'sgettext
. There are a few warnings, but autoreconf
exits with no errors:
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
cp: cannot stat '/usr/local/share/gettext-tiny/m4/*.m4': No such file or directory
install: cannot stat '/usr/local/share/gettext-tiny/data/autopoint_Makefile.in': No such file or directory
install: cannot stat '/usr/local/share/gettext-tiny/data/autopoint_Makefile.in': No such file or directory
install: cannot stat '/usr/local/share/gettext-tiny/data/autopoint_Makefile.in': No such file or directory
install: cannot stat '/usr/local/share/gettext-tiny/data/Makevars.template': No such file or directory
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
Configure
script also runs without errors.
Error goes away if this symlink/directory does not exist /usr/local/share/gettext-tiny
... but these warning show up:
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
cp: cannot stat '/usr/local/share/gettext-tiny/m4/*.m4': No such file or directory
install: cannot stat '/usr/local/share/gettext-tiny/data/autopoint_Makefile.in': No such file or directory
install: cannot stat '/usr/local/share/gettext-tiny/data/autopoint_Makefile.in': No such file or directory
install: cannot stat '/usr/local/share/gettext-tiny/data/autopoint_Makefile.in': No such file or directory
install: cannot stat '/usr/local/share/gettext-tiny/data/Makevars.template': No such file or directory
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
I might consider dropping gettext-tiny
So far this issue hasn't popped up in my other builds, CMLFS
Regenerating the configure script fails with
autoreconf -vfi
under chroot environment:Host System: Truple: i686-linux-musl Distro: MLFS-7.00