This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [BUG] glibs tries to install bogus /usr/include/stdlib.h when "make check" is run twice


On 14/12/16 13:39, Markus Trippelsdorf wrote:
> (My sourceware.org/bugzilla/ account got blocked due to bogus SPAM
> warning. So I send the report directly to the list.)
> 
> When one runs "make check" twice in a row, glibc tries to install
> an internal header file to /usr/include/stdlib.h, e.g.:
...
>  % make -j4 check
> ...
> make[2]: Entering directory '/home/markus/glibc/nptl'
> /usr/bin/install -c -m 644 ../include/stdlib.h /usr/include/stdlib.h
> /usr/bin/install: cannot remove '/usr/include/stdlib.h': Permission denied

i've run into this header issue a few times

but for me usually it was some toolchain issue:
some make dependencies are generated by gcc and
a path setup issue can easily cause gcc to find
standard headers in /usr/include instead of in
the new glibc and then make tries to rebuild
those headers. (there are libstdc++ headers with
include_next which can make gcc look at the wrong
place).

this is fragile and dangerous behaviour:
i'd prefer if glibc did not try to rebuild
out-of-date headers outside the build directory
during make or make check.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]