seg fault when generating basedll_string.o

I'm trying to build wxPython from source (wxPython-src-2.8.12.1). Any
ideas what I may be doing wrong?

Thanks,

Rick

Here's my environment
# uname -a
Linux xxxxx 2.6.18-238.el5 #1 SMP Thu Jan 13 15:51:15 EST 2011 x86_64
x86_64 x86_64 GNU/Linux

# gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)

I ran configure with the following:
../configure \
--prefix=/opt/wx/2.8 \
--enable-unicode \
--with-gtk \
--with-gnomeprint \
--with-opengl \
--enable-debug_flag \
--enable-debug_gdb \
--enable-geometry \
--enable-graphics_ctx \
--enable-sound --with-sdl \
--enable-mediactrl \
--enable-display \
--with-libjpeg=builtin \
--with-libpng=builtin \
--with-libtiff=builtin \
--with-zlib=builtin \
--enable-optimize \
--enable-rpath=/opt/wx/2.8/lib \

When I next run 'make', it fails with the following:

/opt/packages/wxPython-src-2.8.12.1/bld/bk-deps g++ -c -o
basedll_string.o -I./.pch/wxprec_basedll -D__WXGTK__ -DWXBUILDING -
I../src/tiff -I../src/jpeg -I../src/png -I../src/zlib -I../src/regex -
I../src/expat/lib -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1 -
fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -I/opt/
packages/wxPython-src-2.8.12.1/bld/lib/wx/include/gtk2-unicode-
debug-2.8 -I../include -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/
gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/
include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/
include -I/usr/include/freetype2 -I/usr/include/libpng12 -DWX_PRECOMP -
pthread -Wall -Wundef -Wno-ctor-dtor-privacy -ggdb -O0 ../src/common/
string.cpp
../include/wx/string.h: In member function
âwxStringBase::reverse_iterator
wxStringBase::reverse_iterator::operator++(int)â:
../include/wx/string.h:339: internal compiler error: Segmentation
fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccbMtXwO.out file, please attach
this to your bugreport.

I can provide the /tmp/ccbMtXwO.out if that would prove to be useful.

Line 339 of ../include/wx/string.h is:
  wxSTRING_REVERSE_ITERATOR(reverse_iterator, wxSTRING_CONST);

I'm trying to build wxPython from source (wxPython-src-2.8.12.1). Any
ideas what I may be doing wrong?

Linux xxxxx 2.6.18-238.el5 #1 SMP Thu Jan 13 15:51:15 EST 2011 x86_64
x86_64 x86_64 GNU/Linux

# gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)

When I next run 'make', it fails with the following:

...

../include/wx/string.h: In member function
âwxStringBase::reverse_iterator
wxStringBase::reverse_iterator::operator++(int)â:
../include/wx/string.h:339: internal compiler error: Segmentation
fault

Could be wx options colliding, but looks like your compiler has a
problem, either an internal one or an obsolescence one (4.1.2 is very
old: Debian stable version is: 4.4.5-8)

···

On Wed, 14 Dec 2011 17:42:17 -0800 (PST) Rick Martin <rick.b.martin@gmail.com> wrote:

--
                printk("ufs_read_super: fucking Sun blows me\n");
    -- /usr/src/linux/fs/ufs/ufs_super.c

Nothing. That just means that the compiler is broken. You can try getting a newer version, or you can try experimenting with different build options to see if you can work around the problem. The first thing I would try is to do a full clean and then configure without the --enable-optimize option and try building again.

···

On 12/14/11 5:42 PM, Rick Martin wrote:

I'm trying to build wxPython from source (wxPython-src-2.8.12.1). Any
ideas what I may be doing wrong?

--
Robin Dunn
Software Craftsman