Bug#688246: qgis fails to build on powerpc due to internal spatialite
David Matthew Mattli
dmm at mattli.us
Thu Sep 20 16:59:51 UTC 2012
Package: qgis
Version: 1.7.4+1.7.5~20120320-1.1
Severity: important
Tags:
Dear Maintainer,
qgis currently fails to build on powerpc. The problem seems to be
the src/core/spatialite/spatialite.c file which somehow makes
gcc emit code that the assembler rejects. I have two powerpc
systems that I've reproduced the problem on. They have identical
output to buildd log:
https://buildd.debian.org/status/fetch.php?pkg=qgis&arch=powerpc&ver=1.7.4%2B1.7.5~20120320-1.1&stamp=1337680851
I tried to build with both gcc-4.6 and gcc-4.7 but get the
same errors.
qgis has libspatialite-dev as a build-dep and libspatialite3 as
a depedency of the binary package, through libgdal1, so why not
use the external libspatialite ?
I removed the comment from the line
CMAKE_OPTS += -D WITH_INTERNAL_SPATIALITE=FALSE
in the debian/rules file and the package builds fine.
The maintainers of qgis say that the amalgamated version of
spatialite.c included with qgis is mainly for windows support:
http://hub.qgis.org/issues/4030
This is the section I changed:
--- rules 2012-09-20 11:37:58.000000000 -0500
+++ rules 2012-09-20 10:33:59.000000000 -0500
@@ -43,7 +43,7 @@
#ifeq (,$(findstring $(DISTRIBUTION),"squeeze lucid maverick natty sid"))
CMAKE_OPTS += -D WITH_INTERNAL_SPATIALITE=TRUE
#else
-# CMAKE_OPTS += -D WITH_INTERNAL_SPATIALITE=FALSE
+ CMAKE_OPTS += -D WITH_INTERNAL_SPATIALITE=FALSE
#endif
ifneq (,$(findstring $(DISTRIBUTION),"hardy intrepid"))
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: powerpc (ppc64)
Kernel: Linux 3.2.0-3-powerpc64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
More information about the Pkg-grass-devel
mailing list