glibc Makefile issues
Jakub Jelinek
jakub@redhat.com
Tue Dec 31 08:53:00 GMT 2002
On Tue, Dec 31, 2002 at 05:07:52PM +0100, Jakub Jelinek wrote:
> Hi!
>
> While glibc from CVS up to Sat built just fine, with today's
> CVS I'm getting not completely reproduceable errors during make -jN
> (not make install), like:
>
> make[2]: Entering directory `/usr/src/build/186224-i686/BUILD/glibc-2.3.1-20021231/stdio-common'
> mkdir /usr/src/build/186224-i686/BUILD/glibc-2.3.1-20021231/build-i686-linux2.4/stdio-common
> /usr/bin/install: cannot remove `/usr/include/bits/stdio_lim.h': Permission denied
> make[2]: *** [/usr/include/bits/stdio_lim.h] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: *** Waiting for unfinished jobs....
> make[2]: Leaving directory `/usr/src/build/186224-i686/BUILD/glibc-2.3.1-20021231/stdio-common'
> make[1]: *** [stdio-common/subdir_lib] Error 2
>
> Got this twice on i686 (once in NPTL and once in linuxthreads build), once on i386,
> once on x86_64 (from 4 builds on all arches, the remaining arches built fine).
>
> Have tried to add back
> +# Convenient target to update all the generated source files.
> +.PHONY: generated
> +generated: $(addprefix $(common-objpfx),$(common-generated)) \
> + $(addprefix $(objpfx),$(generated))
> +
>
> to Rules (and remove generated += $(foreach s,.c .S l.c l.S f.c f.S,$(calls:s_%=m_%$s))
> from math/Makefile, since then IA-64 wouldn't build), but it happened again.
>
> Any ideas what's going on (ie. why something other than make install is
> attempting to install files)?
Seems like the s-proto-cancel.d changes are the culprit:
...
Prerequisite `/usr/include/bits/stdio_lim.h' is older than target `/usr/src/redhat/BUILD/glibc-2.3.1-20021231/build-x86_64-linux/s-proto-cancel.d'.
Depending on what exact order s-proto-cancel.d
vs. bits/stdio_lim.h are generated it contains either
$(common-objpfx)bits/stdio_lim.h
or
/usr/include/bits/stdio_lim.h
Jakub
More information about the Libc-hacker
mailing list