GNU bug report logs - #57631
Coreutils 9.1 build error with glibc 2.23

Previous Next

Package: coreutils;

Reported by: Satadru Pramanik <satadru <at> gmail.com>

Date: Tue, 6 Sep 2022 18:58:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

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 57631 in the body.
You can then email your comments to 57631 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#57631; Package coreutils. (Tue, 06 Sep 2022 18:58:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Satadru Pramanik <satadru <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 06 Sep 2022 18:58:02 GMT) Full text and rfc822 format available.

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

From: Satadru Pramanik <satadru <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Coreutils 9.1 build error with glibc 2.23
Date: Tue, 6 Sep 2022 13:45:47 -0400
[Message part 1 (text/plain, inline)]
Hello all,

I'm a dev for the Chromebrew distribution. We're supporting older hardware
with ChromeOS, and we're having some trouble building Coreutils 9.1 against
the glibc 2.23 which comes on older i686 Chromebooks. We are using GCC
12.2, and the mold linker. We have no problems building this with the same
arguments on x86_64 and armv7l with glibc 2.27.

Configure line is:
./configure --prefix=/usr/local --libdir=/usr/local/lib
--mandir=/usr/local/share/man --build=i686-cros-linux-gnu
--host=i686-cros-linux-gnu --target=i686-cros-linux-gnu --program-prefix=''
--program-suffix=''"

The error we are seeing is below. Any ideas on what we should do to work
around this?

(Due to the nature of this hardware, we are unable to update the glibc on
these machines.)

  GEN      src/coreutils.h
  GEN      src/version.c
  GEN      src/version.h
make  all-recursive
make[1]: Entering directory
'/usr/local/tmp/crew/coreutils.20220906165907.dir/coreutils-9.1'
Making all in po
make[2]: Entering directory
'/usr/local/tmp/crew/coreutils.20220906165907.dir/coreutils-9.1/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory
'/usr/local/tmp/crew/coreutils.20220906165907.dir/coreutils-9.1/po'
Making all in .
make[2]: Entering directory
'/usr/local/tmp/crew/coreutils.20220906165907.dir/coreutils-9.1'
  CC       lib/libcoreutils_a-long-options.o
  CC       lib/libcoreutils_a-malloca.o
  CC       lib/libcoreutils_a-mbchar.o
  CC       lib/libcoreutils_a-math.o
In file included from /usr/local/include/string.h:630,
                 from ./lib/string.h:41,
                 from lib/mbchar.h:148,
                 from lib/mbchar.c:23:
./lib/string.h:1091:1: error: expected identifier or '(' before
'__extension__'
 1091 | _GL_FUNCDECL_SYS (strndup, char *,
      | ^~~~~~~~~~~~~~~~
make[2]: *** [Makefile:14554: lib/libcoreutils_a-mbchar.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
'/usr/local/tmp/crew/coreutils.20220906165907.dir/coreutils-9.1'
make[1]: *** [Makefile:21011: all-recursive] Error 1
make[1]: Leaving directory
'/usr/local/tmp/crew/coreutils.20220906165907.dir/coreutils-9.1'
make: *** [Makefile:8269: all] Error 2
coreutils failed to build: `CFLAGS="-O2 -pipe -ffat-lto-objects -fPIC
-fuse-ld=mold  -flto" CXXFLAGS="-O2 -pipe -ffat-lto-objects -fPIC
-fuse-ld=mold  -flto" FCFLAGS="-O2 -pipe -ffat-lto-objects -fPIC
-fuse-ld=mold  -flto" FFLAGS="-O2 -pipe -ffat-lto-objects -fPIC
-fuse-ld=mold  -flto" LDFLAGS="-flto " bash -c make


(We can also provide the docker commands to replicate the docker build
environment we use for this architecture if that would help.)
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#57631; Package coreutils. (Tue, 06 Sep 2022 19:19:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Satadru Pramanik <satadru <at> gmail.com>
Cc: 57631 <at> debbugs.gnu.org
Subject: Re: bug#57631: Coreutils 9.1 build error with glibc 2.23
Date: Tue, 6 Sep 2022 14:18:45 -0500
Thanks for the bug report. Please try this Gnulib patch, which should 
appear in the next Coreutils release:

https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=84863a1c4dc8cca8fb0f6f670f67779cdd2d543b





bug closed, send any further explanations to 57631 <at> debbugs.gnu.org and Satadru Pramanik <satadru <at> gmail.com> Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Tue, 06 Sep 2022 22:35:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-coreutils <at> gnu.org:
bug#57631; Package coreutils. (Wed, 07 Sep 2022 16:08:05 GMT) Full text and rfc822 format available.

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

From: Satadru Pramanik <satadru <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 57631 <at> debbugs.gnu.org
Subject: Re: bug#57631: Coreutils 9.1 build error with glibc 2.23
Date: Tue, 6 Sep 2022 17:34:07 -0400
[Message part 1 (text/plain, inline)]
Thanks! That solved the issue!

On Tue, Sep 6, 2022 at 3:18 PM Paul Eggert <eggert <at> cs.ucla.edu> wrote:

> Thanks for the bug report. Please try this Gnulib patch, which should
> appear in the next Coreutils release:
>
>
> https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=84863a1c4dc8cca8fb0f6f670f67779cdd2d543b
>
>
[Message part 2 (text/html, inline)]

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

This bug report was last modified 1 year and 202 days ago.

Previous Next


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