GNU bug report logs - #20338
configure test for nopie with gcc 4.4.3 on Trisquel 4.1

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Wed, 15 Apr 2015 19:14:02 UTC

Severity: normal

Found in version 25.0.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#20338: closed (configure test for nopie with gcc 4.4.3 on
 Trisquel 4.1)
Date: Thu, 16 Apr 2015 07:20:04 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 16 Apr 2015 00:18:57 -0700
with message-id <552F6261.3050408 <at> cs.ucla.edu>
and subject line Re: configure test for nopie with gcc 4.4.3 on Trisquel 4.1
has caused the debbugs.gnu.org bug report #20338,
regarding configure test for nopie with gcc 4.4.3 on Trisquel 4.1
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
20338: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20338
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: configure test for nopie with gcc 4.4.3 on Trisquel 4.1
Date: Wed, 15 Apr 2015 15:13:04 -0400
Package: emacs
Version: 25.0.50

On fencepost.gnu.org, I noticed the following oddity in config.log:

    configure:30326: checking whether gcc -std=gnu99 accepts -nopie
    configure:30346: gcc -std=gnu99 -o conftest -g3 -O2 -Werror -nopie conftest.c   >&5 
    gcc: unrecognized option '-nopie'
    configure:30346: $? = 0
    configure:30356: result: yes

cat /etc/issue
Trisquel GNU/Linux 4.1 \n \l

gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3

cat test.c
int main ()
 {
   return 0;
 }

gcc -std=gnu99 -o conftest -g3 -O2 -Werror -nopie test.c
gcc: unrecognized option '-nopie'

echo $?
0


Seems odd. Whereas:

gcc -std=gnu99 -o conftest -g3 -O2 -Werror  -foobar test.c
cc1: error: unrecognized command line option "-foobar"

echo $?
1


[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 20338-done <at> debbugs.gnu.org
Subject: Re: configure test for nopie with gcc 4.4.3 on Trisquel 4.1
Date: Thu, 16 Apr 2015 00:18:57 -0700
[Message part 4 (text/plain, inline)]
Thanks for reporting that.  In master commit 
c6e93df20266fe9f8517f14f3b7c367281f988a5 I installed the attached patch, which 
fixed the bug for me.
[0001-Pre-4.6-GCC-succeeds-with-unknown-option.patch (text/x-patch, attachment)]

This bug report was last modified 10 years and 35 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.