This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/960: Cannot compile anything



>Number:         960
>Category:       c++
>Synopsis:       Cannot compile anything
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 02 07:16:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Sami Vaaraniemi
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
FreeBSD 4.1.1-RELEASE #0 i386
>Description:
Compiling even the simplest C++ source fails. I suspect that
my gcc installation is somehow broken, but as I'm unsure of
how to solve the problem I thought I'd ask you. This is the
first time I'm trying to build software on the computer.

This is the source file:
-- main.cpp begin
#include <stdio.h>

int main(int argc, char* argv[])
{
        printf("Testing\n");
        return 0;
}
-- main.cpp end

This is the result:
$ gcc -v -save-temps -c main.cpp
Using builtin specs.
gcc version 2.95.2 19991024 (release)
 /usr/libexec/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Di386 -Dunix -D__FreeBSD__=4 -D__FreeBSD_cc_version=410000 -D__i386__ -D__unix__ -D__FreeBSD__=4 -D__FreeBSD_cc_version=410000 -D__i386 -D__unix -Acpu(i386) -Amachine(i386) -Asystem(unix) -Asystem(FreeBSD) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__ELF__ main.cpp main.ii
GNU CPP version 2.95.2 19991024 (release) (i386 FreeBSD/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/g++
 /usr/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/libexec/cc1plus main.ii -quiet -dumpbase main.cc -version -o main.s
GNU C++ version 2.95.2 19991024 (release) (i386-unknown-freebsd) compiled by GNU C version 2.95.2 19991024 (release).
In file included from main.cpp:1:
/usr/include/stdio.h: In function `int __sputc(int, FILE *)':
/usr/include/stdio.h:356: Internal compiler error.
/usr/include/stdio.h:356: Please submit a full bug report.
/usr/include/stdio.h:356: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Compiling other sources (that build ok on another FreeBSD
computer) usually fail with similar errors. The errors seem
to be related to preprocessor macros.

Thank You for any help you might be able to provide,
Sami Vaaraniemi
sami.vaaraniemi@helsinki.fi
>How-To-Repeat:
The problem occurs every time with the same source
file and command line.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="main.ii.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="main.ii.gz"

H4sICFMrKDoAA21haW4uaWkApVhLb9s4ED5Lv4J1gNZykziJs2kXRnvZB1Bgj72lASHLlCNEpgSS
sjdt8993+BBFSpTtdHNwJM43M5yZj0NSZ+gaTbZpQS+zup7EZ/J13nA2L2hWNmsy52JdVJePExAs
YhSf/Bew9Mzn2Zrk/BestX9HVMDp1d0ht4sDNgbjQSC4+PDbEReA+f3m2DTCxm8XY/m/MZZ78m2a
PRaUzFPKi9cmNoRDY3IUhonnmkBYUUEFwjgVghWrRhCMp1OMt9VaPmH85xeMkySJIsAA8u4Wi6VV
bWDqG0rW6DQbGDfWhDOZ1pqxhbLHlIE/pD1+DDpsMdqkh+GPFRORFoLs+i5owKCMAR8EA53+4mYs
YqutIX11pV0LNq6utQ1Ecej2IIficOIhcd9Jl1MLsgVDUV5X3CBQm3kuWJPJsvFVk6MfsZ9cNMOr
lJNlrMLB0sUyflkeXMi2Atby31/++Stkul5GyFhmy8g+7/Wzrg3Oy3TD/ZGiJGZAuYjM5PEq7wyW
q1zNFgZiObirinU0w1lVPRXEwqYwUlacJAhNJQLN4GlpZYykaxhoZedm4ucy4RqoUyqxnJAnD6tF
DtYY3bNCOA7BaEW5GJiOAwE2KzXzfh4bJ5GNzmQ8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cIbefELvvtF3SQJpYUQ0EDdcfSW6fv8egWKWwI2YwIbkAEwI
UzkNmAAgXuIztPgw+k3Nfocb/xwhP8l9PKpvoO63VHSjtzMkR1R2UrbJdN5n8nl3/5DEkCO9AqeT
r4SLgm6+0YkMzcR0JWP4D44YrqylFQAA

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]