[Xapian-devel] xapian 0.9.6 build error on debian etch sparc

Alex Deucher alexdeucher at gmail.com
Thu Jun 15 22:09:20 BST 2006


On 6/15/06, Olly Betts <olly at survex.com> wrote:
> 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.
>

-O1 seems to have done the trick.  I'll report the bug to gcc.

Thanks!

Alex

> The other thing to try is a different branch - e.g. GCC 4.1 or GCC 3.4.
>
> Cheers,
>     Olly
>



More information about the Xapian-devel mailing list