Gcc Segfaults on GCH compile

Bug #506728 reported by James Michael DuPont
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-defaults
Invalid
Medium
gcc-defaults (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

mdupont@introspector-desktop:~/2010/01/mapnik$ make -C include/mapnik/
make: Entering directory `/media/sdd2/home/mdupont/2010/01/mapnik/include/mapnik'
g++ -save-temps -I ../.. -I .. -I -pg \
 -DMAPNIK_DEBUG \
 -I/usr/include/libpng12 \
 -I/usr/include/freetype2 \
 -I/home/mdupont/2010/01/mapnik/agg/include \
 -I/usr/local/include \
 -I/usr/include/libxml2 \
 -D_REENTRANT -I/usr/include/cairomm-1.0 -I/usr/include/cairo -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -c stdinc.hpp
stdinc.hpp:5:9: warning: #pragma once in main file
g++ -save-temps -I ../.. -I .. -I -pg \
 -DMAPNIK_DEBUG \
 -I/usr/include/libpng12 \
 -I/usr/include/freetype2 \
 -I/home/mdupont/2010/01/mapnik/agg/include \
 -I/usr/local/include \
 -I/usr/include/libxml2 \
 -D_REENTRANT -I/usr/include/cairomm-1.0 -I/usr/include/cairo -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -c agg_renderer.hpp
g++ -save-temps -I ../.. -I .. -I -pg \
 -DMAPNIK_DEBUG \
 -I/usr/include/libpng12 \
 -I/usr/include/freetype2 \
 -I/home/mdupont/2010/01/mapnik/agg/include \
 -I/usr/local/include \
 -I/usr/include/libxml2 \
 -D_REENTRANT -I/usr/include/cairomm-1.0 -I/usr/include/cairo -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -c layer.hpp
stdinc.ii:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
make: *** [layer.hpp.gch] Error 1
make: Leaving directory `/media/sdd2/home/mdupont/2010/01/mapnik/include/mapnik'
mdupont@introspector-desktop:~/2010/01/mapnik$ git commit -m "problme with gcc, wont compile" -a
[master 36b8c21] problme with gcc, wont compile
 7 files changed, 19 insertions(+), 30 deletions(-)
mdupont@introspector-desktop:~/2010/01/mapnik$ git push origin master
Counting objects: 21, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (11/11), done.
Writing objects: 100% (11/11), 973 bytes, done.
Total 11 (delta 9), reused 0 (delta 0)
To <email address hidden>:h4ck3rm1k3/MapNickAutotools.git
   98cc67d..36b8c21 master -> master

ProblemType: Bug
Architecture: i386
Date: Wed Jan 13 01:59:02 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu-Netbook-Remix 9.10 "Karmic Koala" - Release i386 (20091028.4)
NonfreeKernelModules: nvidia
Package: g++ 4:4.4.1-1ubuntu2
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
SourcePackage: gcc-defaults
Tags: ubuntu-unr
Uname: Linux 2.6.31-17-generic i686

Revision history for this message
James Michael DuPont (jamesmikedupont) wrote :
Revision history for this message
James Michael DuPont (jamesmikedupont) wrote :

The problem i am having is with pch,

I would like to compile a bunch of templates using pch.
I have refactored the includes so that they all use stdinc.h
this works on its own, to compile stdinc.h, but when someone uses it to define themselves,
i get a class defined already error, so I remove that for layer.h and used the existing files,
now it segfaults.

Revision history for this message
James Michael DuPont (jamesmikedupont) wrote :
Matthias Klose (doko)
Changed in gcc-defaults (Ubuntu):
status: New → Invalid
Changed in gcc-defaults:
status: Unknown → Invalid
Changed in gcc-defaults:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.