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]
Other format: [Raw text]

[Bug target/25602] internal compiler error while bootstraping (while compiling libobjc/sendmsg.c)



------- Comment #3 from alex at milivojevic dot org  2006-01-03 20:30 -------
Created an attachment (id=10579)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10579&action=view)
one more example of sigsegv

Trivial example where 64-bit gcc binary segfaults.

The code in question is old-style hello world:

#include <iostream.h>

int main()
{
     cout << "Hello World\n";
}

When attempting to compile:

$ g++ -v -save-temps hello-old.cc
Using built-in specs.
Target: sparc64-sun-solaris2.9
Configured with: ../configure sparc64-sun-solaris2.9 --prefix=/opt/pbl
--with-local-prefix=/opt/pbl --with-cpu=ultrasparc --with-tune=ultrasparc
--enable-languages=c,c++
Thread model: posix
gcc version 4.0.2
 /opt/pbl/libexec/gcc/sparc64-sun-solaris2.9/4.0.2/cc1plus -E -quiet -v
-D__arch64__ -D__sparcv9 hello-old.cc -mcpu=ultrasparc -mtune=ultrasparc
-fpch-preprocess -o hello-old.ii
ignoring nonexistent directory
"/opt/pbl/lib/gcc/sparc64-sun-solaris2.9/4.0.2/../../../../sparc64-sun-solaris2.9/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/pbl/lib/gcc/sparc64-sun-solaris2.9/4.0.2/../../../../include/c++/4.0.2

/opt/pbl/lib/gcc/sparc64-sun-solaris2.9/4.0.2/../../../../include/c++/4.0.2/sparc64-sun-solaris2.9

/opt/pbl/lib/gcc/sparc64-sun-solaris2.9/4.0.2/../../../../include/c++/4.0.2/backward
 /opt/pbl/include
 /opt/pbl/lib/gcc/sparc64-sun-solaris2.9/4.0.2/include
 /usr/include
End of search list.
In file included from <built-in>:0:
<built-in>:0: internal compiler error: Segmentation Fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Interestingly, the new style hello world compiles just fine:

#include <iostream>

using namespace std;

int main()
{
     cout << "Hello World\n";
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25602



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