This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fwd: PING^3: [PATCH]: New configure options that make the compiler use -fPIE and -pie as default option
- From: Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Andreas Schwab <schwab at linux-m68k dot org>, Richard Earnshaw <richard dot earnshaw at arm dot com>, Bernd Schmidt <bernds at codesourcery dot com>, Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>, Nick Clifton <nickc at redhat dot com>, Matthew Fortune <Matthew dot Fortune at imgtec dot com>, David Edelsohn <dje dot gcc at gmail dot com>, "David S. Miller" <davem at redhat dot com>, Matt Thomas <matt at 3am-software dot com>, Rainer Orth <ro at cebitec dot uni-bielefeld dot de>, Mike Stump <mikestump at comcast dot net>, GCC Patches <gcc-patches at gcc dot gnu dot org>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Tue, 26 May 2015 16:40:52 -0500
- Subject: Re: Fwd: PING^3: [PATCH]: New configure options that make the compiler use -fPIE and -pie as default option
- Authentication-results: sourceware.org; auth=none
- References: <CAMe9rOrw7OFObOmOCG1wM2Hfr_hpKo-wY0_17ngB89CTQ_34Mw at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1505072104300 dot 20024 at digraph dot polyomino dot org dot uk> <CAMe9rOrcADb1t2Ch0LDy9SOaS9RDoj4BGgo8qL+6jtg1tnLA8g at mail dot gmail dot com> <3072346 dot CTCrhcXNep at laptop1 dot gw dot ume dot nu> <alpine dot DEB dot 2 dot 10 dot 1505190109380 dot 16300 at digraph dot polyomino dot org dot uk> <CAMe9rOr-mU-vxmF3po-zKAYtLyYGGCN4LeM-DJkL6Kv3fYxD_g at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1505191520110 dot 32308 at digraph dot polyomino dot org dot uk> <CAMe9rOqncLsJhb7Fhr3t3acDO+Kq38AeA+ac1TKt6oqWwGz-5Q at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1505191531440 dot 32308 at digraph dot polyomino dot org dot uk> <CAMe9rOrW1BGje8b6EmrzaJP8b0rPWF+WrTTWdAn-67Fn7-imqw at mail dot gmail dot com> <CAMe9rOpZow4w3zcycLoTb5LZdLKP2QWNpsU5oLMJCyZGUTd1fg at mail dot gmail dot com> <87vbflkh05 dot fsf at igel dot home> <CAMe9rOr0SApdtzeOrc-uNDRH8=z6c4EzHUkyXmERW_q9BYjrAQ at mail dot gmail dot com> <87k2w1k54t dot fsf at igel dot home> <CAMe9rOqUj4dhH3omFO7UONsPgmg9iOaXhntfK+dNByLeGnrm_Q at mail dot gmail dot com> <1432676355 dot 2757 dot 4 dot camel at gnopaine>
Ah, never mind. I guess I need to run automake first.
Bill
On Tue, 2015-05-26 at 16:39 -0500, Bill Schmidt wrote:
> Hi H.J.,
>
> I tried your patch on powerpc64le-linux-gnu, and it fails to bootstrap
> as follows:
>
> > g++ -std=c++98 -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwi
> > nd-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmiss
> > ing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic
> > -macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE @N
> > O_PIE_CFLAGS@ -I. -Ibuild -I/home/wschmidt/gcc/gcc-mainline-test/gcc -I/home/wsc
> > hmidt/gcc/gcc-mainline-test/gcc/build -I/home/wschmidt/gcc/gcc-mainline-test/gcc
> > /../include -I/home/wschmidt/gcc/gcc-mainline-test/gcc/../libcpp/include \
> > -DBASEVER="\"6.0.0\"" -DDATESTAMP="\" 20150526\"" \
> > -DREVISION="\" [trunk revision 223719]\"" \
> > -DDEVPHASE="\" (experimental)\"" -DPKGVERSION="\"(GCC) \"" \
> > -DBUGURL="\"<http://gcc.gnu.org/bugs.html>\"" -o build/version.o /home/wschmidt/gcc/gcc-mainline-test/gcc/version.c
> > g++: error: @NO_PIE_CFLAGS@: No such file or directory
> > make[3]: *** [build/version.o] Error 1
>
> Thanks,
> Bill
>
> On Fri, 2015-05-22 at 08:18 -0700, H.J. Lu wrote:
> > I fixed a typo in gcc/config/openbsd.h. Here is the updated patch. The whole
> > patch is also on hjl/pie/master branch in GCC git mirror.
> >
>