[lfs-dev] glibc-2.25 compile error

Pierre Labastie pierre.labastie at neuf.fr
Thu Feb 23 07:55:22 PST 2017

On 23/02/2017 16:02, Vladislav Dembskiy wrote:
> Dear colleagues,
> I decided to rebuild glib-2.25 according to current development 
> version of LFS Book systemd using kernel headers 4.9.11
> I have got the following error during compilation:
> /sources/glibc-2.25/build/posix/sched_cpucount.o.dt -MT 
> /sources/glibc-2.25/build/posix/sched_cpucount.o
> In file included from *regex.c:67:0*:
> *regexec.c:* In function ‘*check_node_accept_bytes*’:
> *regexec.c:3856:29:* *error: *‘*extra*’ may be used uninitialized in 
> this function [*-Werror=maybe-uninitialized*]
>         const unsigned char **coll_sym*= extra + cset->coll_syms[i];
> *^~~~~~~~*
> *
> *
> I have to add *—disable-werror option *to continue compilation. The 
> only deviation from the book only I use *—enable-kernel=4.9.6 *because 
> my host Gentoo use this kernel.
> Kind regards,
> Vladislav
Hi Vladislav,
There are a lot of possibilities, because you do not say what you have done:

-Did you restart the whole build in /tools, including binutils-pass1 and 
gcc-pass1? (assuming you get the error in chapter 5)
-Or did you just try to compile glibc-2.25 on the LFS host?


More information about the lfs-dev mailing list