Report forwarded to debian-devel@pixar.com:
Bug#2493; Package gcc.   debian-devel@pixar.com  Subject: Bug#2493: GCC -O3 produces unsatisfied external ref to static function Reply-To: Ian Jackson , debian-bugs@pixar.com Resent-From: Ian Jackson Resent-To: debian-devel@pixar.com Resent-Date: Sun, 10 Mar 1996 22:48:01 GMT Resent-Message-ID: Resent-Sender: iwj10@cus.cam.ac.uk X-Debian-PR-Package: gcc X-Debian-PR-Keywords: Received: via spool for debian-bugs; Sun, 10 Mar 1996 22:48:01 GMT Received: with rfc822 via encapsulated-mail; Sun, 10 Mar 1996 22:41:37 GMT Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0tvtn4-0005ycC; Sun, 10 Mar 96 14:40 PST Received: from artemis.chu.cam.ac.uk by pixar.com with SMTP id AA27187 (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sun, 10 Mar 1996 14:40:36 -0800 Received: from chiark.chu.cam.ac.uk by artemis.chu.cam.ac.uk with smtp (Smail3.1.29.1 #33) id m0tvtmt-0007uSC; Sun, 10 Mar 96 22:40 GMT Received: by chiark.chu.cam.ac.uk id m0tvtmH-0002YGC (Debian /\oo/\ Smail3.1.29.1 #29.35); Sun, 10 Mar 96 22:39 GMT Message-Id: Date: Sun, 10 Mar 96 22:39 GMT From: Ian Jackson To: Debian bugs submission address Package: gcc Version: 2.7.2-5 This bug is the one that the people have been seeing who have been trying to compile dpkg using GCC 2.7.2 (ELF or M68K). The next version of dpkg will not compile dselect/main.cc (the problematic file) with -O3, instead using -O2 for most files, so this will no longer be a problem for dpkg. Ian. -chiark:~/junk> cat t.cc /**/ struct structure { void (*functionpointer)(void); }; static void function(void) { } static const struct structure table[]= { function }; int main(void) { table[0].functionpointer(); } -chiark:~/junk> g++ -O3 -v t.cc gcc -O3 -v t.cc -lg++ -lstdc++ -lm Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2/specs gcc version 2.7.2 /usr/lib/gcc-lib/i486-linux/2.7.2/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=7 -D__ELF__ -Dunix -Di386 -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix) -Asystem(posix) -Acpu(i386) -Amachine(i386) -D__OPTIMIZE__ -D__i486__ t.cc /tmp/cca27459.ii GNU CPP version 2.7.2 (i386 Linux/ELF) #include "..." search starts here: #include <...> search starts here: /usr/lib/g++-include /usr/local/include /usr/i486-linux/include /usr/lib/gcc-lib/i486-linux/2.7.2/include /usr/include End of search list. /usr/lib/gcc-lib/i486-linux/2.7.2/cc1plus /tmp/cca27459.ii -quiet -dumpbase t.cc -O3 -version -o /tmp/cca27459.s GNU C++ version 2.7.2 (i386 Linux/ELF) compiled by GNU C version 2.7.2. as -V -Qy -o /tmp/cca274591.o /tmp/cca27459.s GNU assembler version 2.6 (i486-linux), using BFD version 2.6.0.2 ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.1 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib/gcc-lib/i486-linux/2.7.2 /tmp/cca274591.o -lg++ -lstdc++ -lm -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o /tmp/cca274591.o(.rodata+0x0): undefined reference to `function(void)' -chiark:~/junk> dpkg -l gcc binutils Desired=Unknown/Install/Remove/Purge | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Rev Description +++-============-=========-====-=============================================== ii gcc 2.7.2 5 The GNU C compiler (ELF version). ii binutils 2.6 2 The GNU assembler and binary utilities (ELF ver -chiark:~/junk>   Acknowledgement sent to Ian Jackson <ian@chiark.chu.cam.ac.uk>:
New bug report received and forwarded to list.   -t  From: iwj10@thor.cam.ac.uk (Ian Jackson) To: Ian Jackson Subject: Bug#2493: Acknowledgement (was: GCC -O3 produces unsatisfied external ref to static function) In-Reply-To: References: Thank you for the problem report you have sent regarding Debian GNU/Linux. This is an automatically generated reply, to let you know your message has been received. It is being forwarded to the developers' mailing list for their attention; they will reply in due course. If you wish to submit further information on your problem, please send it to debian-bugs@pixar.com, but please ensure that the Subject line of your message starts with "Bug#2493" or "Re: Bug#2493" so that we can identify it as relating to the same problem. Please do not reply to the address at the top of this message, unless you wish to report a problem with the bug-tracking system. Ian Jackson (maintainer, debian-bugs)   From nobody@pixar.com Sun Mar 10 22:41:36 1996 Return-Path: Received: from mongo.pixar.com [138.72.50.60] by bootes.cus.cam.ac.uk with smtp (Smail-3.1.29.0 #36) id m0tvtnz-000BzwC; Sun, 10 Mar 96 22:41 GMT Received: by mongo.pixar.com (Smail3.1.28.1 #15) id m0tvtn4-0005zLC; Sun, 10 Mar 96 14:40 PST Message-Id: Date: Sun, 10 Mar 96 14:40 PST From: nobody@pixar.com (SVR4 nobody uid) To: iwj10@cus.cam.ac.uk Errors-To: iwj10@cus.cam.ac.uk X-Debian-Bugs: This is an autoforward from debian-bugs XFrom chiark.chu.cam.ac.uk!ian Sun Mar 10 14:40:38 1996 XReturn-Path: XReceived: from pixar.com by mongo.pixar.com with smtp X (Smail3.1.28.1 #15) id m0tvtn4-0005ycC; Sun, 10 Mar 96 14:40 PST XReceived: from artemis.chu.cam.ac.uk by pixar.com with SMTP id AA27187 X (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sun, 10 Mar 1996 14:40:36 -0800 XReceived: from chiark.chu.cam.ac.uk by artemis.chu.cam.ac.uk with smtp X (Smail3.1.29.1 #33) id m0tvtmt-0007uSC; Sun, 10 Mar 96 22:40 GMT XReceived: by chiark.chu.cam.ac.uk X id m0tvtmH-0002YGC X (Debian /\oo/\ Smail3.1.29.1 #29.35); Sun, 10 Mar 96 22:39 GMT XMessage-Id: XDate: Sun, 10 Mar 96 22:39 GMT XFrom: Ian Jackson XTo: Debian bugs submission address XSubject: GCC -O3 produces unsatisfied external ref to static function X XPackage: gcc XVersion: 2.7.2-5 X XThis bug is the one that the people have been seeing who have been Xtrying to compile dpkg using GCC 2.7.2 (ELF or M68K). X XThe next version of dpkg will not compile dselect/main.cc (the Xproblematic file) with -O3, instead using -O2 for most files, so this Xwill no longer be a problem for dpkg. X XIan. X X-chiark:~/junk> cat t.cc X/**/ Xstruct structure { void (*functionpointer)(void); }; Xstatic void function(void) { } Xstatic const struct structure table[]= { function }; Xint main(void) { table[0].functionpointer(); } X-chiark:~/junk> g++ -O3 -v t.cc X gcc -O3 -v t.cc -lg++ -lstdc++ -lm XReading specs from /usr/lib/gcc-lib/i486-linux/2.7.2/specs Xgcc version 2.7.2 X /usr/lib/gcc-lib/i486-linux/2.7.2/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=7 -D__ELF__ -Dunix -Di386 -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix) -Asystem(posix) -Acpu(i386) -Amachine(i386) -D__OPTIMIZE__ -D__i486__ t.cc /tmp/cca27459.ii XGNU CPP version 2.7.2 (i386 Linux/ELF) X#include "..." search starts here: X#include <...> search starts here: X /usr/lib/g++-include X /usr/local/include X /usr/i486-linux/include X /usr/lib/gcc-lib/i486-linux/2.7.2/include X /usr/include XEnd of search list. X /usr/lib/gcc-lib/i486-linux/2.7.2/cc1plus /tmp/cca27459.ii -quiet -dumpbase t.cc -O3 -version -o /tmp/cca27459.s XGNU C++ version 2.7.2 (i386 Linux/ELF) compiled by GNU C version 2.7.2. X as -V -Qy -o /tmp/cca274591.o /tmp/cca27459.s XGNU assembler version 2.6 (i486-linux), using BFD version 2.6.0.2 X ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.1 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib/gcc-lib/i486-linux/2.7.2 /tmp/cca274591.o -lg++ -lstdc++ -lm -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o X/tmp/cca274591.o(.rodata+0x0): undefined reference to `function(void)' X-chiark:~/junk> dpkg -l gcc binutils XDesired=Unknown/Install/Remove/Purge X| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed X|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) X||/ Name Version Rev Description X+++-============-=========-====-=============================================== Xii gcc 2.7.2 5 The GNU C compiler (ELF version). Xii binutils 2.6 2 The GNU assembler and binary utilities (ELF ver X-chiark:~/junk> YReceived: with rfc822 via encapsulated-mail; Sun, 10 Mar 1996 22:41:37 GMT   Noted your statement that bug has been forwarded to bug-g++@gnu.ai.mit.edu. Request was from Galen Hazelwood <galenh@micron.net> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 11 Jan 1997 23:42:22 +0000 Received: (qmail 3448 invoked from network); 11 Jan 1997 23:42:11 -0000 Received: from snowden.micron.net (198.60.253.136) by master.debian.org with SMTP; 11 Jan 1997 23:42:08 -0000 Received: from xerxes (cnam012p05.nam.micron.net [207.70.7.23]) by snowden.micron.net (8.8.2/8.7.3) with SMTP id QAA17717 for ; Sat, 11 Jan 1997 16:39:55 -0700 (MST) Sender: galen@micron.net Message-ID: <32D8243D.746630EF@micron.net> Date: Sat, 11 Jan 1997 16:37:33 -0700 From: Galen Hazelwood X-Mailer: Mozilla 3.0 (X11; U; Linux 2.0.27 i586) MIME-Version: 1.0 To: control@bugs.debian.org Subject: (no subject) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit forwarded 2493 bug-g++@gnu.ai.mit.edu   Information forwarded to debian-bugs-dist@lists.debian.org, Galen Hazelwood <galenh@micron.net>:
Bug#2493; Package gcc.   debian-bugs-dist@lists.debian.orgGalen Hazelwood  Subject: Bug#2493: GCC -O3 produces unsatisfied external ref to static function Reply-To: jdassen@wi.leidenuniv.nl, 2493@bugs.debian.org Resent-From: jdassen@wi.leidenuniv.nl Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Galen Hazelwood Resent-Date: Thu, 21 May 1998 13:48:01 GMT Resent-Message-ID: Resent-Sender: iwj@debian.org X-Debian-PR-Message: report 2493 X-Debian-PR-Package: gcc X-Debian-PR-Keywords: X-Loop: owner@bugs.debian.org Received: via spool by 2493-bugs@bugs.debian.org id=B2493.89575830924963 (code B ref 2493); Thu, 21 May 1998 13:48:01 GMT Message-ID: <19980521153543.15061@wi.leidenuniv.nl> Date: Thu, 21 May 1998 15:35:43 +0200 From: jdassen@wi.leidenuniv.nl To: 2493@bugs.debian.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84 This problem still exists with g++ 2.90.29-0.1 (egcs-2.90.29 980515 (egcs-1.0.3 release). compile dpkg-1.4.0.22 , remove dpkg-1.4.0.22/debian/build/dselect/main.o , change the "-O2"s in the Makefile to "-O3" and make: main.o: In function `urq_menu(void)': /tmp/dpkg-1.4.0.22/debian/build/dselect/../../../dselect/main.cc:253: undefined reference to `setdebug' /tmp/dpkg-1.4.0.22/debian/build/dselect/../../../dselect/main.cc:253: undefined reference to `helponly' /tmp/dpkg-1.4.0.22/debian/build/dselect/../../../dselect/main.cc:255: undefined reference to `versiononly' Ray -- POPULATION EXPLOSION Unique in human experience, an event which happened yesterday but which everyone swears won't happen until tomorrow. - The Hipcrime Vocab by Chad C. Mulligan   Acknowledgement sent to jdassen@wi.leidenuniv.nl:
Extra info received and forwarded to list. Copy sent to Galen Hazelwood <galenh@micron.net>.   -t  From: owner@bugs.debian.org (Ian Jackson) To: jdassen@wi.leidenuniv.nl Subject: Bug#2493: Info received (was GCC -O3 produces unsatisfied external ref to static function) Message-ID: In-Reply-To: <19980521153543.15061@wi.leidenuniv.nl> References: <19980521153543.15061@wi.leidenuniv.nl> X-Debian-PR-Message: ack-info-maintonly 2493 Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developer(s) and to the developers' mailing list to accompany the original report. Your message has been sent to the package maintainer(s): Galen Hazelwood If you wish to continue to submit further information on your problem, please send it to 2493@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the bug-tracking system. Ian Jackson (administrator, Debian bugs database)   Received: (at 2493) by bugs.debian.org; 21 May 1998 13:45:09 +0000 Received: (qmail 24960 invoked from network); 21 May 1998 13:45:09 -0000 Received: from zeus.wi.leidenuniv.nl (132.229.128.1) by debian.novare.net with SMTP; 21 May 1998 13:45:09 -0000 Received: from ultra5.wi.leidenuniv.nl (ultra5 [132.229.128.75]) by zeus.wi.leidenuniv.nl (8.8.8/8.8.8/WI) with SMTP id PAA26287 for <2493@bugs.debian.org>; Thu, 21 May 1998 15:45:13 +0200 (MET DST) Received: from (jdassen@localhost) by ultra5.wi.leidenuniv.nl (8.6.10a/FHM-1.01-S) id PAA22505 Thu, 21 May 1998 15:35:43 +0200 (MET) Message-ID: <19980521153543.15061@wi.leidenuniv.nl> Date: Thu, 21 May 1998 15:35:43 +0200 From: jdassen@wi.leidenuniv.nl To: 2493@bugs.debian.org Subject: Re: GCC -O3 produces unsatisfied external ref to static function Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84 This problem still exists with g++ 2.90.29-0.1 (egcs-2.90.29 980515 (egcs-1.0.3 release). compile dpkg-1.4.0.22 , remove dpkg-1.4.0.22/debian/build/dselect/main.o , change the "-O2"s in the Makefile to "-O3" and make: main.o: In function `urq_menu(void)': /tmp/dpkg-1.4.0.22/debian/build/dselect/../../../dselect/main.cc:253: undefined reference to `setdebug' /tmp/dpkg-1.4.0.22/debian/build/dselect/../../../dselect/main.cc:253: undefined reference to `helponly' /tmp/dpkg-1.4.0.22/debian/build/dselect/../../../dselect/main.cc:255: undefined reference to `versiononly' Ray -- POPULATION EXPLOSION Unique in human experience, an event which happened yesterday but which everyone swears won't happen until tomorrow. - The Hipcrime Vocab by Chad C. Mulligan   Bug reassigned from package `gcc' to `g++'. Request was from Matthias Klose <doko@cs.tu-berlin.de> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 24 Nov 1998 13:46:29 +0000 Received: (qmail 27384 invoked from network); 24 Nov 1998 13:46:04 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by master.debian.org with SMTP; 24 Nov 1998 13:46:04 -0000 Received: from bolero.cs.tu-berlin.de (doko@bolero.cs.tu-berlin.de [130.149.19.1]) by mail.cs.tu-berlin.de (8.9.1/8.9.1) with ESMTP id OAA09312 for ; Tue, 24 Nov 1998 14:43:47 +0100 (MET) Received: (from doko@localhost) by bolero.cs.tu-berlin.de (8.9.1/8.9.0) id OAA23208; Tue, 24 Nov 1998 14:43:45 +0100 (MET) From: Matthias Klose MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 24 Nov 1998 14:43:42 +0100 (MET) To: control@bugs.debian.org Subject: retitling gcc bug reports fixed in egcs-1.1 X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <13914.45247.184339.650355@bolero> retitle [Fix in {gcc,egcc}-2.91.x] gcc -O coredumps reassign 2493 g++ retitle 2493 [Fixed in g++-2.91.58] -O3 produces unsatisfied external ref to static function retitle 4954 [Fix in {gcc,egcc}-2.91.x] cc -pipe hangs retitle 5367 [Fix in {gcc,egcc}-2.91.x] gcc -O2 fails for INT_MIN < long long < INT_MAX retitle 6047 [Fix in {gcc,egcc}-2.91.x] badly initialized union in gcc include file retitle 12375 [Fix in {gcc,egcc}-2.91.x] gcc: -O2 produces bad code ! reassign 10612 g++ retitle 10612 [Fixed in g++-2.91.58] internal compiler error   Changed bug title. Request was from Matthias Klose <doko@cs.tu-berlin.de> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 24 Nov 1998 13:46:29 +0000 Received: (qmail 27384 invoked from network); 24 Nov 1998 13:46:04 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by master.debian.org with SMTP; 24 Nov 1998 13:46:04 -0000 Received: from bolero.cs.tu-berlin.de (doko@bolero.cs.tu-berlin.de [130.149.19.1]) by mail.cs.tu-berlin.de (8.9.1/8.9.1) with ESMTP id OAA09312 for ; Tue, 24 Nov 1998 14:43:47 +0100 (MET) Received: (from doko@localhost) by bolero.cs.tu-berlin.de (8.9.1/8.9.0) id OAA23208; Tue, 24 Nov 1998 14:43:45 +0100 (MET) From: Matthias Klose MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 24 Nov 1998 14:43:42 +0100 (MET) To: control@bugs.debian.org Subject: retitling gcc bug reports fixed in egcs-1.1 X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <13914.45247.184339.650355@bolero> retitle [Fix in {gcc,egcc}-2.91.x] gcc -O coredumps reassign 2493 g++ retitle 2493 [Fixed in g++-2.91.58] -O3 produces unsatisfied external ref to static function retitle 4954 [Fix in {gcc,egcc}-2.91.x] cc -pipe hangs retitle 5367 [Fix in {gcc,egcc}-2.91.x] gcc -O2 fails for INT_MIN < long long < INT_MAX retitle 6047 [Fix in {gcc,egcc}-2.91.x] badly initialized union in gcc include file retitle 12375 [Fix in {gcc,egcc}-2.91.x] gcc: -O2 produces bad code ! reassign 10612 g++ retitle 10612 [Fixed in g++-2.91.58] internal compiler error   Bug reassigned from package `g++' to `gcc272'. Request was from Matthias Klose <doko@cs.tu-berlin.de> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 9 May 1999 11:07:19 +0000 Received: (qmail 3026 invoked from network); 9 May 1999 11:07:18 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by master.debian.org with SMTP; 9 May 1999 11:07:18 -0000 Received: from benji.cs.tu-berlin.de (doko@benji.cs.tu-berlin.de [130.149.19.136]) by mail.cs.tu-berlin.de (8.9.1/8.9.1) with ESMTP id NAA18863 for ; Sun, 9 May 1999 13:04:46 +0200 (MET DST) Received: (from doko@localhost) by benji.cs.tu-berlin.de (8.9.1/8.9.0) id NAA29755; Sun, 9 May 1999 13:04:45 +0200 (MET DST) From: Matthias Klose MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 9 May 1999 13:04:45 +0200 (MET DST) To: control@bugs.debian.org Subject: reassign gcc bugs to gcc272 X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14133.27036.129799.609820@benji> reassign 24788 gcc272 reassign 20606 gcc272 reassign 26100 gcc272 reassign 2493 gcc272 reassign 4430 gcc272 reassign 4954 gcc272 reassign 5367 gcc272 reassign 6047 gcc272 reassign 10612 g++272 reassign 12375 gcc272 reassign 21122 g++272 thanks   Severity set to `fixed'. Request was from Matthias Klose <doko@cs.tu-berlin.de> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 7 Aug 1999 10:13:14 +0000 Received: (qmail 10765 invoked from network); 7 Aug 1999 10:13:13 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by master.debian.org with SMTP; 7 Aug 1999 10:13:13 -0000 Received: from bolero.cs.tu-berlin.de (doko@bolero.cs.tu-berlin.de [130.149.19.1]) by mail.cs.tu-berlin.de (8.9.1/8.9.1) with ESMTP id MAA19071 for ; Sat, 7 Aug 1999 12:11:52 +0200 (MET DST) Received: (from doko@localhost) by bolero.cs.tu-berlin.de (8.9.1/8.9.0) id MAA26349; Sat, 7 Aug 1999 12:11:50 +0200 (MET DST) From: Matthias Klose MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 7 Aug 1999 12:11:50 +0200 (MET DST) To: control@bugs.debian.org Subject: gcc: setting severity to fixed X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14252.1335.686643.629846@bolero> severity 20606 fixed severity 24788 fixed severity 26100 fixed severity 2493 fixed severity 4430 fixed severity 4954 fixed severity 5367 fixed severity 6047 fixed severity 10612 fixed severity 12375 fixed thanks   Reply sent to Matthias Klose <doko@cs.tu-berlin.de>:
You have taken responsibility.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Matthias Klose Cc: Debian GCC maintainers Bcc: debian-bugs-closed@lists.debian.org Subject: Bug#2493: marked as done ([Fixed in g++-2.91.58] -O3 produces unsatisfied external ref to static function) Message-ID: In-Reply-To: <14290.18725.697986.486244@bolero> References: <14290.18725.697986.486244@bolero> X-Debian-PR-Message: closed 2493 Your message dated Sun, 5 Sep 1999 12:45:54 +0200 (MET DST) with message-id <14290.18725.697986.486244@bolero> and subject line Fixed in egcs-1.1.2 and gcc-2.95 has caused the attached bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I'm talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Ian Jackson (administrator, Debian bugs database) Received: with rfc822 via encapsulated-mail; Sun, 10 Mar 1996 22:41:37 GMT From chiark.chu.cam.ac.uk!ian Sun Mar 10 14:40:38 1996 Return-Path: Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0tvtn4-0005ycC; Sun, 10 Mar 96 14:40 PST Received: from artemis.chu.cam.ac.uk by pixar.com with SMTP id AA27187 (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sun, 10 Mar 1996 14:40:36 -0800 Received: from chiark.chu.cam.ac.uk by artemis.chu.cam.ac.uk with smtp (Smail3.1.29.1 #33) id m0tvtmt-0007uSC; Sun, 10 Mar 96 22:40 GMT Received: by chiark.chu.cam.ac.uk id m0tvtmH-0002YGC (Debian /\oo/\ Smail3.1.29.1 #29.35); Sun, 10 Mar 96 22:39 GMT Message-Id: Date: Sun, 10 Mar 96 22:39 GMT From: Ian Jackson To: Debian bugs submission address Subject: GCC -O3 produces unsatisfied external ref to static function Package: gcc Version: 2.7.2-5 This bug is the one that the people have been seeing who have been trying to compile dpkg using GCC 2.7.2 (ELF or M68K). The next version of dpkg will not compile dselect/main.cc (the problematic file) with -O3, instead using -O2 for most files, so this will no longer be a problem for dpkg. Ian. -chiark:~/junk> cat t.cc /**/ struct structure { void (*functionpointer)(void); }; static void function(void) { } static const struct structure table[]= { function }; int main(void) { table[0].functionpointer(); } -chiark:~/junk> g++ -O3 -v t.cc gcc -O3 -v t.cc -lg++ -lstdc++ -lm Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2/specs gcc version 2.7.2 /usr/lib/gcc-lib/i486-linux/2.7.2/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=7 -D__ELF__ -Dunix -Di386 -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix) -Asystem(posix) -Acpu(i386) -Amachine(i386) -D__OPTIMIZE__ -D__i486__ t.cc /tmp/cca27459.ii GNU CPP version 2.7.2 (i386 Linux/ELF) #include "..." search starts here: #include <...> search starts here: /usr/lib/g++-include /usr/local/include /usr/i486-linux/include /usr/lib/gcc-lib/i486-linux/2.7.2/include /usr/include End of search list. /usr/lib/gcc-lib/i486-linux/2.7.2/cc1plus /tmp/cca27459.ii -quiet -dumpbase t.cc -O3 -version -o /tmp/cca27459.s GNU C++ version 2.7.2 (i386 Linux/ELF) compiled by GNU C version 2.7.2. as -V -Qy -o /tmp/cca274591.o /tmp/cca27459.s GNU assembler version 2.6 (i486-linux), using BFD version 2.6.0.2 ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.1 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib/gcc-lib/i486-linux/2.7.2 /tmp/cca274591.o -lg++ -lstdc++ -lm -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o /tmp/cca274591.o(.rodata+0x0): undefined reference to `function(void)' -chiark:~/junk> dpkg -l gcc binutils Desired=Unknown/Install/Remove/Purge | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Rev Description +++-============-=========-====-=============================================== ii gcc 2.7.2 5 The GNU C compiler (ELF version). ii binutils 2.6 2 The GNU assembler and binary utilities (ELF ver -chiark:~/junk>   Notification sent to Ian Jackson <ian@chiark.chu.cam.ac.uk>:
Bug acknowledged by developer.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Ian Jackson Subject: Bug#2493 acknowledged by developer ([Fixed in g++-2.91.58] -O3 produces unsatisfied external ref to static function) Message-ID: In-Reply-To: References: <14290.18725.697986.486244@bolero> X-Debian-PR-Message: they-closed 2493 This is an automatic notification regarding your bug report. It has been closed by one of the developers, namely Matthias Klose . Their explanation is attached below. If this explanation is unsatisfactory and you haven't received a better one in a separate message then please contact the developer directly, or email submit@bugs.debian.org or me. Ian Jackson (administrator, Debian bugs database) Received: (at 2493-done) by bugs.debian.org; 5 Sep 1999 10:47:28 +0000 Received: (qmail 10571 invoked from network); 5 Sep 1999 10:47:27 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by master.debian.org with SMTP; 5 Sep 1999 10:47:27 -0000 Received: from bolero.cs.tu-berlin.de (doko@bolero.cs.tu-berlin.de [130.149.19.1]) by mail.cs.tu-berlin.de (8.9.1/8.9.1) with ESMTP id MAA21899; Sun, 5 Sep 1999 12:46:15 +0200 (MET DST) Received: (from doko@localhost) by bolero.cs.tu-berlin.de (8.9.1/8.9.0) id MAA06741; Sun, 5 Sep 1999 12:46:09 +0200 (MET DST) From: Matthias Klose MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 5 Sep 1999 12:45:54 +0200 (MET DST) To: 2493-done@bugs.debian.org CC: Ian Jackson Subject: Fixed in egcs-1.1.2 and gcc-2.95 X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14290.18725.697986.486244@bolero> Closing this g++ bug, although it's still in g++272. g++-2.95 is the default compiler on all architectures.   Received: (at 2493-done) by bugs.debian.org; 5 Sep 1999 10:47:28 +0000 Received: (qmail 10571 invoked from network); 5 Sep 1999 10:47:27 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by master.debian.org with SMTP; 5 Sep 1999 10:47:27 -0000 Received: from bolero.cs.tu-berlin.de (doko@bolero.cs.tu-berlin.de [130.149.19.1]) by mail.cs.tu-berlin.de (8.9.1/8.9.1) with ESMTP id MAA21899; Sun, 5 Sep 1999 12:46:15 +0200 (MET DST) Received: (from doko@localhost) by bolero.cs.tu-berlin.de (8.9.1/8.9.0) id MAA06741; Sun, 5 Sep 1999 12:46:09 +0200 (MET DST) From: Matthias Klose MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 5 Sep 1999 12:45:54 +0200 (MET DST) To: 2493-done@bugs.debian.org CC: Ian Jackson Subject: Fixed in egcs-1.1.2 and gcc-2.95 X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14290.18725.697986.486244@bolero> Closing this g++ bug, although it's still in g++272. g++-2.95 is the default compiler on all architectures.