This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/21573] /usr/bin/install: cannot remove '/usr/include/stdlib.h': Permission denied
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 13 Jun 2017 11:04:18 +0000
- Subject: [Bug nptl/21573] /usr/bin/install: cannot remove '/usr/include/stdlib.h': Permission denied
- Auto-submitted: auto-generated
- References: <bug-21573-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21573
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
commit 8321286846970af562a2ff6b7272f1cd0860d6c1
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Jul 5 15:01:33 2016 -0700
Make copies of cstdlib/cmath and use them [BZ #20314]
If C++ headers <cstdlib> or <cmath> are used, GCC 6 will include
/usr/include/stdlib.h or /usr/include/math.h from "#include_next"
(instead of stdlib/stdlib.h or math/math.h in the glibc source
directory), and this turns up as a make dependency. An implicit
rule will kick in and make will try to install stdlib/stdlib.h or
math/math.h as /usr/include/stdlib.h or /usr/include/math.h because
the target is out of date. We make a copy of <cstdlib> and <cmath>
in the glibc build directory so that stdlib/stdlib.h and math/math.h
will be used instead of /usr/include/stdlib.h and /usr/include/math.h.
worked for GCC 6. But bits/std_abs.h from GCC 7 also includes
/usr/include/stdlib.h.
--
You are receiving this mail because:
You are on the CC list for the bug.