[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#24788: marked as done ([Fix in {gcc,egcc}-2.91.x] gcc with -save-temps does not compile)



Your message dated Thu, 12 Apr 2001 23:52:39 +0200 (MEST)
with message-id <15062.8940.590633.88211@bolero>
and subject line closing gcc272 bugs
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 am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 20 Jul 1998 13:36:13 +0000
Received: (qmail 10703 invoked from network); 20 Jul 1998 13:36:06 -0000
Received: from usr35.web4u.com.br (HELO cesarb1.cesarb.personal.net) (root@200.244.50.35)
  by debian.novare.net with SMTP; 20 Jul 1998 13:36:06 -0000
Received: by cesarb.personal.net
	via sendmail from stdin
	id <m0yyG2p-0006ydC@cesarb1.cesarb.personal.net> (Debian Smail3.2.0.101)
	for submit@bugs.debian.org; Mon, 20 Jul 1998 10:31:59 -0300 (EST) 
Message-Id: <m0yyG2p-0006ydC@cesarb1.cesarb.personal.net>
Date: Mon, 20 Jul 1998 10:31:59 -0300 (EST)
To: submit@bugs.debian.org
From: Cesar.Barros@web4u.com.br
Reply-To: Cesar.Barros@web4u.com.br
Subject: gcc with -save-temps does not compile
CC: cesarb@cesarb.personal.net

Package: gcc
Version: 2.7.2.3-4.8

When I try to compile a trivial program (hello.c) with -save-temps, it does not
compile. Using the same command without -save-temps, everything works.

You can see that cc1 is overwriting its own input file. Also, the file names
are wrong: the cpp output must be hello.i, the cc1 output should be hello.s.


$ gcc -W -Wall -O3 -pg -a -g3 hello.c -o hello -save-temps -v
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2.3/specs
gcc version 2.7.2.3
 /usr/lib/gcc-lib/i486-linux/2.7.2.3/cpp -lang-c -v -undef -D__GNUC__=2 -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__ -g3 -W -Wall hello.c hello
GNU CPP version 2.7.2.3 (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/i486-linux/include
 /usr/lib/gcc-lib/i486-linux/2.7.2.3/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i486-linux/2.7.2.3/cc1 hello -quiet -dumpbase hello.c -a -g3 -O3 -W -Wall -version -p -o hello
GNU C version 2.7.2.3 (i386 Linux/ELF) compiled by GNU C version 2.7.2.3.
 as -V -Qy hello -o hello.o
GNU assembler version 2.9.1 (i486-linux), using BFD version 2.9.1
 ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o hello /usr/lib/gcrt1.o /usr/lib/crti.o /usr/lib/gcc-lib/i486-linux/2.7.2.3/crtbegin.o -L/usr/lib/gcc-lib/i486-linux/2.7.2.3 hello.o -lgcc -lc -lgcc /usr/lib/gcc-lib/i486-linux/2.7.2.3/crtend.o /usr/lib/crtn.o
/usr/lib/gcrt1.o(.text+0x36): undefined reference to `main'

Here is the file (hello.c):

--- hello.c ---
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>

int main (int argc, const char *argv[argc])
{
        fputs ("Hello, world!\n", stdout);
        return EXIT_SUCCESS;
}

--- END OF FILE ---

I'm using Debian 2.0.
uname -a: Linux cesarb1 2.0.34 #2 Sun Jun 7 13:17:03 EST 1998 i386 unknown
$ dpkg --list gcc libc6 cpp binutils libc6-dev
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        Description
+++-===============-==============-============================================
ii  gcc             2.7.2.3-4.8    The GNU C compiler.
ii  libc6           2.0.7t-1       The GNU C library version 2 (run-time files)
ii  cpp             2.7.2.3-4.8    The GNU C preprocessor.
ii  binutils        2.9.1-0.2      The GNU assembler, linker and binary utiliti
ii  libc6-dev       2.0.7t-1       The GNU C library version 2 (development fil


---------------------------------------
Received: (at 24788-done) by bugs.debian.org; 12 Apr 2001 21:58:24 +0000
>From doko@cs.tu-berlin.de Thu Apr 12 16:58:24 2001
Return-path: <doko@cs.tu-berlin.de>
Received: from mail.cs.tu-berlin.de [130.149.17.13] (root)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 14np6d-0003Xr-00; Thu, 12 Apr 2001 16:58:24 -0500
Received: from bolero.cs.tu-berlin.de (bolero.cs.tu-berlin.de [130.149.19.1])
	by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id XAA08192;
	Thu, 12 Apr 2001 23:53:09 +0200 (MET DST)
Received: (from doko@localhost)
	by bolero.cs.tu-berlin.de (8.9.3+Sun/8.9.3) id XAA19323;
	Thu, 12 Apr 2001 23:52:39 +0200 (MEST)
From: Matthias Klose <doko@cs.tu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Date: Thu, 12 Apr 2001 23:52:39 +0200 (MEST)
To: 4429-done@bugs.debian.org, 4430-done@bugs.debian.org,
        4954-done@bugs.debian.org, 5367-done@bugs.debian.org,
        6047-done@bugs.debian.org, 12375-done@bugs.debian.org,
        20606-done@bugs.debian.org, 20889-done@bugs.debian.org,
        24788-done@bugs.debian.org, 26100-done@bugs.debian.org,
        34322-done@bugs.debian.org, 48726-done@bugs.debian.org,
        54544-done@bugs.debian.org, 63154-done@bugs.debian.org
Subject: closing gcc272 bugs
X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs  Lucid
Message-ID: <15062.8940.590633.88211@bolero>
Delivered-To: 24788-done@bugs.debian.org

gcc272 (2.7.2.3-18) unstable; urgency=low

  * Close all gcc272 in the Debian bug tracking archive. The use of
    gcc272 is deprecated. The only reason it exists is to have a
    compiler for the linux kernel 2.0.x.
    The bug reports for gcc272 are still available on
    http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=gcc272&archive=yes
    Closes: #4429, #4430, 4954, #5367, #6047, #12375, #20606, #20889,
    #24788, #26100, #34322, #48726, #54544, #63154.



Reply to: