Fwd: Re: [lfs-dev] make-4.4 and glibc-2.36

Xi Ruoyao xry111@xry111.site
Tue Nov 1 01:24:40 GMT 2022


Hi,

Has somebody already noticed this issue with make-4.4?

-------- Forwarded Message --------
发件人: Bruce Dubbs <lfs-dev@lists.linuxfromscratch.org>
回复至: Bruce Dubbs <bruce.dubbs@gmail.com>
收件人: LFS Developers Mailinglist <lfs-dev@lists.linuxfromscratch.org>
主题: Re: [lfs-dev] make-4.4 and glibc-2.36
日期: 2022年11月01日 08时47分47秒

> On 10/31/22 18:12, Bruce Dubbs wrote:
> > On 10/31/22 17:50, Bruce Dubbs wrote:
> > > I just made the November 1st update to LFS.  I did run into a
> > > problem with glibc in 
> > > Chapter 8.  It failed in what appears to be a race condition at my
> > > normal -j22.
> > > 
> > > For now I added -j1 to make in that package, but will try to find
> > > a better solution.
> > 
> > More info.  The error I get at -j22 is:
> > 
> > 
> > type "make help" for help with common glibc makefile targets
> > 
> > rm -f /sources/glibc-2.36/build/stamp.o; > /sources/glibc-
> > 2.36/build/stamp.o
> > rm -f /sources/glibc-2.36/build/stamp.os; > /sources/glibc-
> > 2.36/build/stamp.os
> > rm -f /sources/glibc-2.36/build/stamp.oS; > /sources/glibc-
> > 2.36/build/stamp.oS
> > make  subdir=csu -C csu ..=../ subdir_lib
> > make[2]: Entering directory '/sources/glibc-2.36/csu'
> > make[2]: *** Cannot open jobserver /tmp/GMfifo21248r: No such file
> > or directory.  Stop.
> > make[2]: Leaving directory '/sources/glibc-2.36/csu'
> > make[1]: *** [Makefile:484: csu/subdir_lib] Error 2
> > make[1]: Leaving directory '/sources/glibc-2.36'
> > make: *** [Makefile:9: all] Error 2
> > 
> > There does not seem to be any error before this. This is only 174
> > lines into the make 
> > output.
> 
> I think I got it.  If I use:
> 
>    make -j22 --jobserver-style=pipe
> 
> glibc builds OK.  In the make release notes:
> 
> "New feature: The --jobserver-style command line option and named
> pipes A new 
> jobserver method is used on systems where mkfifo(3) is supported. This
> solves a 
> number of obscure issues related to using the jobserver and recursive
> invocations of 
> GNU Make. This change means that sub-makes will connect to the
> jobserver even if they 
> are not marked as recursive. It also means that other tools that want
> to participate 
> in the jobserver will need to be enhanced as described in the GNU Make
> manual. You 
> can force GNU Make to use the simple pipe-based jobserver (perhaps if
> you are 
> integrating with other tools or older versions of GNU Make) by adding
> the 
> '--jobserver-style=pipe' option to the command line of the top-level
> invocation of 
> GNU Make, or via MAKEFLAGS or GNUMAKEFLAGS. To detect this change
> search for 
> 'jobserver-fifo' in the .FEATURES variable."
> 
> We may need to do that for glibc in Chapter 5 also if the host is
> using make-4.4 or 
> later.  I'm not sure yet how to handle that.  Right now if make is
> version 4.3, the 
> above line, 'make -j22 --jobserver-style=pipe', gives:
> 
> make: unrecognized option '--jobserver-style=pipe'
> 
> Does anyone have thoughts on how to address this?
> 
>    -- Bruce
> -- 
> http://lists.linuxfromscratch.org/sympa/info/lfs-dev
> Unsubscribe: See the above information page

-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University


More information about the Libc-alpha mailing list