Building on AIX 6 with IBM's gcc package causes segfault

61 views
Skip to first unread message

AJ Lewis

unread,
Nov 30, 2011, 11:45:21 AM11/30/11
to prot...@googlegroups.com
Hi all,

I'm trying to compile protobufs 2.4.1 on AIX6 using the gcc compiler IBM distributes for AIX (http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/ezinstall.html), which is 4.2.0 based.  When I do this, I get:

/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    -D_THREAD_SAFE  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O  -MT extension_set.lo -MD -MP -MF .deps/extension_set.Tpo -c -o extension_set.lo `test -f 'google/protobuf/extension_set.cc' || echo './'`google/protobuf/extension_set.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O -MT extension_set.lo -MD -MP -MF .deps/extension_set.Tpo -c google/protobuf/extension_set.cc  -DPIC -o .libs/extension_set.o
google/protobuf/extension_set.cc:65: warning: missing braces around initializer for 'int [28]'
google/protobuf/extension_set.cc:1463: internal compiler error: Segmentation fault

Now, I know that the GCC team doesn't support 4.2.0 anymore, so this may be a dead end for me, but I also have tried compiling older versions of protobuf, and they compiled fine up until version 2.3.0.

Does anyone know what could cause such a segfault?

Thanks,
AJJ
Reply all
Reply to author
Forward
0 new messages