Package: belle-sip
Version: 1.3.0-1
Tags: sid patch
Severity: important
Justification: FTBFS
User: [email protected]
Usertags: mips-patch



Package belle-sip FTBFS on
mips, hurd-i386 and sparc with an error:

> error(10):  internal error: 
> org.antlr.tool.Grammar.createLookaheadDFA(Grammar.java:1279): could not even 
> do k=1 for decision 157; reason: timed out (>1000ms)
> 
> error(10):  internal error: ./belle_sip_message.g : 
> java.lang.NullPointerException

I tested it on our local MIPS boards,
the same error appeared on Cavium boards for mips and mipsel.

In order to avoid this error I created a patch that increases
antlr3 conversion timeout.

With this patch I was able to successfully build belle-sip
for mips, mipsel and amd64.

Could you please consider including this patch?


Best regards,
Dejan
--- belle-sip-1.3.0.orig/src/grammars/Makefile.am	2014-02-05 10:45:57.000000000 +0000
+++ belle-sip-1.3.0/src/grammars/Makefile.am	2014-05-13 15:23:46.000000000 +0000
@@ -12,13 +12,13 @@
 	
 .NOTPARALLEL 	$(builddir)/belle_sip_messageParser.c $(builddir)/belle_sip_messageParser.h \
 				$(builddir)/belle_sip_messageLexer.c $(builddir)/belle_sip_messageLexer.h  : belle_sip_message.g 
-	$(ANTLR)  -make -Xmultithreaded  -fo  $(builddir) $(srcdir)/belle_sip_message.g
+	$(ANTLR)  -make -Xmultithreaded -Xconversiontimeout 10000  -fo  $(builddir) $(srcdir)/belle_sip_message.g
 
 .NOTPARALLEL 	$(builddir)/belle_sdpLexer.c \
 				$(builddir)/belle_sdpParser.c \
 				$(builddir)/belle_sdpLexer.h \
 				$(builddir)/belle_sdpParser.h : $(srcdir)/belle_sdp.g
-	$(ANTLR)  -make -Xmultithreaded  -fo $(builddir)  $<
+	$(ANTLR)  -make -Xmultithreaded  -Xconversiontimeout 10000 -fo $(builddir)  $<
 
 
 AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src 

Reply via email to