tags 679914 patch
thanks

Hi,

Vincent Lefevre <vinc...@vinc17.net> writes:

> llvm-gcc can't compile even simple C programs such as
>
> int main (void) { return 0; }
>
> I get the following error:
>
> $ llvm-gcc tst.c
> Incompatible plugin version
> cc1: error: fail to initialize plugin 
> /usr/lib/gcc/x86_64-linux-gnu/4.6/plugin/dragonegg.so
>
> even though llvm-gcc-4.6 and dragonegg-4.6 have the same version 3.1-1
> (current unstable).

Since dragonegg 3.1-1, the patch donotfailincompatiblepluginversion.diff
is no longer applied and it seems using dragonegg_disable_version_check
no longer works.

I suggest the attached patch which builds dragonegg with
DISABLE_VERSION_CHECK=1 to be able to use a different gcc version that
the one dragonegg was built against. I built dragonegg on amd64 with
this patch and it fixes this bug.

Hope that helps,
Vincent

diff -Nru dragonegg-3.1/debian/changelog dragonegg-3.1/debian/changelog
--- dragonegg-3.1/debian/changelog	2012-06-22 19:39:37.000000000 +0200
+++ dragonegg-3.1/debian/changelog	2012-07-10 22:15:56.000000000 +0200
@@ -1,3 +1,12 @@
+dragonegg (3.1-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/rules: Build with DISABLE_VERSION_CHECK=1 to be able to use a
+    different gcc version that the one dragonegg was built against.
+    (Closes: #679914)
+
+ -- Vincent Legout <vleg...@debian.org>  Tue, 10 Jul 2012 22:02:05 +0200
+
 dragonegg (3.1-1) unstable; urgency=low
 
   * New upstream release
diff -Nru dragonegg-3.1/debian/rules dragonegg-3.1/debian/rules
--- dragonegg-3.1/debian/rules	2012-06-22 19:31:29.000000000 +0200
+++ dragonegg-3.1/debian/rules	2012-07-10 21:54:29.000000000 +0200
@@ -20,7 +20,7 @@
 	mkdir -p $(DEB_SRCDIR)/$(GCC_VERSION)
 	cd $(DEB_SRCDIR)/$(GCC_VERSION); \
 	GCC=gcc-$(GCC_VERSION) CC=gcc-$(GCC_VERSION) CXX=g++-$(GCC_VERSION) \
-	LDFLAGS=-L/usr/lib/llvm-$(LLVM_VERSION)/lib $(MAKE) \
+	DISABLE_VERSION_CHECK=1 LDFLAGS=-L/usr/lib/llvm-$(LLVM_VERSION)/lib $(MAKE) \
 		VERBOSE=1 \
 		LLVM_CONFIG=/usr/lib/llvm-$(LLVM_VERSION)/bin/llvm-config \
 		-C ../; \
@@ -31,7 +31,7 @@
 	mkdir -p $(DEB_SRCDIR)/$(GCC_VERSION_NEXT)
 	cd $(DEB_SRCDIR)/$(GCC_VERSION_NEXT); \
 	GCC=gcc-$(GCC_VERSION_NEXT) CC=gcc-$(GCC_VERSION_NEXT) CXX=g++-$(GCC_VERSION_NEXT) \
-	LDFLAGS=-L/usr/lib/llvm-$(LLVM_VERSION)/lib $(MAKE) \
+	DISABLE_VERSION_CHECK=1 LDFLAGS=-L/usr/lib/llvm-$(LLVM_VERSION)/lib $(MAKE) \
 		VERBOSE=1 \
 		LLVM_CONFIG=/usr/lib/llvm-$(LLVM_VERSION)/bin/llvm-config \
 		-C ..; \

Reply via email to