Bugzilla – Bug 158670
compile a program
Last modified: 2006-03-18 09:08:42 UTC
If i compile my program with g++ -g I don't get any error. But if I want the compiler to optimize my program with g++ -O3 -g I get an error. The whole message is In file included from /usr/include/g++/backward/iostream.h:31, from collectormovmem4var.cc:1: /usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. collectormovmem4var.cc: In function `int main()': collectormovmem4var.cc:328: internal compiler error: in change_address_1, at emit-rtl.c:2329 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.suse.de/feedback> for instructions. Preprocessed source stored into /tmp/ccM21tdR.out file, please attach this to your bugreport. Unfortunatly I don't see where I can attach a file here and the mentioned file contains something like 30000 lines, so pleaase let me know where I can send it. best wishes Olivier Merlo
Created attachment 73328 [details] output file of the compiler included program
What program are you trying to compile here?
It's a c++ program whjich I have written. It is a simulation of a billiard. It uses very few libraries. So first it compiles without problems if I don't use the optimze option or if I compile the program with the -O2 or -O1 option. I just realized that on that machine we have installed SUSE 9.2 and not 10.0. The program uses only very basic commands. It uses the following libraries. #include <iostream.h> #include <stream.h> #include <math.h> #include <stdio.h> #include <unistd.h> By the side the program is at the end of the reportfile.
Sorry I just realized I am comiling the program on another machine. So the Version of SUSE is 9.2. The machine is a opteron. So I change all in the list below.
We will not fix the compiler for SUSE Linux 9.2. Please update your system or use a compiler optimization that will not trigger this bug. If you can reproduce the same problem with a 10.1 beta, we will investigate.