On Tue, Jun 07, 2005 at 10:29:32AM -0400, info at bannershift.com wrote:> I have problem compiling xapian php bindings. > > I am using debian sarge. > > I have installed php4-dev before compilation. > I am getting the following errors: > [...] > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/php4 -I/usr/include/php4/main > -I/usr/include/php4/Zend -I/usr/include/php4/TSRM -Wall -Wno-unused > -Wno-uninitialized -g -O2 -I/usr/local/include -MT xapian_wrap.lo -MD -MP -MF > .deps/xapian_wrap.Tpo -c xapian_wrap.cc -fPIC -DPIC -o .libs/xapian_wrap.o > xapian_wrap.cc: In function `void _wrap_PostingIterator_get_description(int, > zval*, zval*, int)': > xapian_wrap.cc:2552: internal compiler error: Segmentation faultThat's most likely a GCC bug. You shouldn't be able to cause an "internal compiler error" (or ICE) even if you feed in gibberish. The other possibility is bad hardware ("Segmentation fault" is signal number 11): http://www.bitwizard.nl/sig11/ If it's a hardware fault, it's unlikely to not be totally repeatable (see that link for more details). If it's a GCC bug, it's likely to be an optimisation problem (ICEs usually are in my experience), so you can probably work around it by turning down the optimisation level. Trying "make clean", and then add "CXXFLAGS=-O1" to the configure invocation, i.e.: ./configure --without-python --without-tcl --without-java --without-guile --without-csharp CXXFLAGS=-O1 If it still fails, try "CXXFLAGS=-O0" instead. If that fails, it's probably not the optimisers, so it's going to be harder to work around. Let me know how you get on. If this is a reproducible problem with a Debian release, we're probably going to need to automatically work around it... Cheers, Olly
Hi all. I have problem compiling xapian php bindings. I am using debian sarge. I have installed php4-dev before compilation. I am getting the following errors: boomer:~/xapian/xapian-bindings-0.9.0# make make all-recursive make[1]: Entering directory `/root/xapian/xapian-bindings-0.9.0' Making all in php4 make[2]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4' make all-recursive make[3]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4' Making all in docs make[4]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4/docs' Making all in examples make[5]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4/docs/examples' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/root/xapian/xapian-bindings-0.9.0/php4/docs/examples' make[5]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4/docs' make[5]: Nothing to be done for `all-am'. make[5]: Leaving directory `/root/xapian/xapian-bindings-0.9.0/php4/docs' make[4]: Leaving directory `/root/xapian/xapian-bindings-0.9.0/php4/docs' make[4]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4' if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/Zend -I/usr/include/php4/TSRM -Wall -Wno-unused -Wno-uninitialized -g -O2 -I/usr/local/include -MT xapian_wrap.lo -MD -MP -MF ".deps/xapian_wrap.Tpo" -c -o xapian_wrap.lo xapian_wrap.cc; \ then mv -f ".deps/xapian_wrap.Tpo" ".deps/xapian_wrap.Plo"; else rm -f ".deps/xapian_wrap.Tpo"; exit 1; fi mkdir .libs g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/Zend -I/usr/include/php4/TSRM -Wall -Wno-unused -Wno-uninitialized -g -O2 -I/usr/local/include -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c xapian_wrap.cc -fPIC -DPIC -o .libs/xapian_wrap.o xapian_wrap.cc: In function `void _wrap_PostingIterator_get_description(int, zval*, zval*, int)': xapian_wrap.cc:2552: 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. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>. make[4]: *** [xapian_wrap.lo] Error 1 make[4]: Leaving directory `/root/xapian/xapian-bindings-0.9.0/php4' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/root/xapian/xapian-bindings-0.9.0/php4' make[2]: *** [all] Error 2 make[2]: Leaving directory `/root/xapian/xapian-bindings-0.9.0/php4' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/xapian/xapian-bindings-0.9.0' make: *** [all] Error 2 The configure script was executed with the folowing parameters: ./configure --without-python --without-tcl --without-java --without-guile --without-csharp
info@bannershift.com wrote:> Hi all. > > I have problem compiling xapian php bindings. > > I am using debian sarge. > > I have installed php4-dev before compilation. > I am getting the following errors: > > boomer:~/xapian/xapian-bindings-0.9.0# make > make all-recursive > make[1]: Entering directory `/root/xapian/xapian-bindings-0.9.0' > Making all in php4 > make[2]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4' > make all-recursive > make[3]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4' > Making all in docs > make[4]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4/docs' > Making all in examples > make[5]: Entering directory > `/root/xapian/xapian-bindings-0.9.0/php4/docs/examples' > make[5]: Nothing to be done for `all'. > make[5]: Leaving directory > `/root/xapian/xapian-bindings-0.9.0/php4/docs/examples' > make[5]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4/docs' > make[5]: Nothing to be done for `all-am'. > make[5]: Leaving directory `/root/xapian/xapian-bindings-0.9.0/php4/docs' > make[4]: Leaving directory `/root/xapian/xapian-bindings-0.9.0/php4/docs' > make[4]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4' > if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. > -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/Zend > -I/usr/include/php4/TSRM -Wall -Wno-unused -Wno-uninitialized -g -O2 > -I/usr/local/include -MT xapian_wrap.lo -MD -MP -MF ".deps/xapian_wrap.Tpo" -c > -o xapian_wrap.lo xapian_wrap.cc; \ > then mv -f ".deps/xapian_wrap.Tpo" ".deps/xapian_wrap.Plo"; else rm -f > ".deps/xapian_wrap.Tpo"; exit 1; fi > mkdir .libs > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/php4 -I/usr/include/php4/main > -I/usr/include/php4/Zend -I/usr/include/php4/TSRM -Wall -Wno-unused > -Wno-uninitialized -g -O2 -I/usr/local/include -MT xapian_wrap.lo -MD -MP -MF > .deps/xapian_wrap.Tpo -c xapian_wrap.cc -fPIC -DPIC -o .libs/xapian_wrap.o > xapian_wrap.cc: In function `void _wrap_PostingIterator_get_description(int, > zval*, zval*, int)': > xapian_wrap.cc:2552: 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. > For Debian GNU/Linux specific bug reporting instructions, seeSounds like the GCC really doesn't like things there..., so reporting a GCC bug may be the correcter thing to do. (it seems it crashes gcc, which is not directly a xapian error but a compiler fault/bug) Michael