Alex Deucher
2006-Jun-15 20:41 UTC
[Xapian-devel] xapian 0.9.6 build error on debian etch sparc
I'm getting the follwoing error when trying to build xapian 0.9.6 on debian sparc: g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../common -I../include -I../include -Wall -W -Wredundant-decls -Wundef -Wpointer-arith -Wcast-qual -Wcast-align -Wno-multichar -Wno-long-long -fno-gnu-keywords -g -O2 -MT andmaybepostlist.lo -MD -MP -MF .deps/andmaybepostlist.Tpo -c andmaybepostlist.cc -fPIC -DPIC -o .libs/andmaybepostlist.o andmaybepostlist.cc: In member function 'virtual PostList* AndMaybePostList::next(Xapian::weight)': andmaybepostlist.cc:68: internal compiler error: in invert_exp_1, at jump.c:1719 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-4.0/README.Bugs>. make[2]: *** [andmaybepostlist.lo] Error 1 make[2]: Leaving directory `/usr/local/xapian-core-0.9.6/matcher' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/xapian-core-0.9.6' make: *** [all] Error 2 Any ideas? Looks like a gcc error. Thanks, Alex
Olly Betts
2006-Jun-15 20:53 UTC
[Xapian-devel] xapian 0.9.6 build error on debian etch sparc
On Thu, Jun 15, 2006 at 04:41:48PM -0400, Alex Deucher wrote:> andmaybepostlist.cc: In member function 'virtual PostList* > AndMaybePostList::next(Xapian::weight)': > andmaybepostlist.cc:68: internal compiler error: in invert_exp_1, at > jump.c:1719 > 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-4.0/README.Bugs>. > make[2]: *** [andmaybepostlist.lo] Error 1 > make[2]: Leaving directory `/usr/local/xapian-core-0.9.6/matcher' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/local/xapian-core-0.9.6' > make: *** [all] Error 2 > > Any ideas? Looks like a gcc error.It is. If you're running the latest GCC 4.0.X you should probably follow the directions and report it to the GCC team, or perhaps better to the debian BTS in this case since debian's compilers usually include a number of patches. Meanwhile as a workaround, you can try compiling without optimisation for just the problematic file as that usually helps. E.g.: cd matcher make CXXFLAGS='-g -O0' andmaybepostlist.lo cd .. make "-O0" turns off almost all optimisation. You might find "-O1" works in which case it's probably a better option. The other thing to try is a different branch - e.g. GCC 4.1 or GCC 3.4. Cheers, Olly