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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20338 in the body.
You can then email your comments to 20338 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#20338; Package emacs. (Wed, 15 Apr 2015 19:14:02 GMT) Full text and rfc822 format available.

Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):

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




Added indication that bug 20338 blocks19759 Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 15 Apr 2015 19:15:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20338; Package emacs. (Wed, 15 Apr 2015 19:43:02 GMT) Full text and rfc822 format available.

Message #8 received at 20338 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 20338 <at> debbugs.gnu.org
Subject: Re: bug#20338: configure test for nopie with gcc 4.4.3 on Trisquel 4.1
Date: Wed, 15 Apr 2015 15:42:30 -0400
IIUC, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15303 says that you
can't reliably use the exit status of gcc to check whether it supports
a command-line option prior to gcc 4.6. Whee.




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Thu, 16 Apr 2015 07:20:04 GMT) Full text and rfc822 format available.

Notification sent to Glenn Morris <rgm <at> gnu.org>:
bug acknowledged by developer. (Thu, 16 Apr 2015 07:20:05 GMT) Full text and rfc822 format available.

Message #13 received at 20338-done <at> debbugs.gnu.org (full text, mbox):

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 1 (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)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 14 May 2015 11:24:07 GMT) Full text and rfc822 format available.

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

Previous Next


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