Bug#776357: libreoffice FTBFS on hppa architecture (with patch)
Package: libreoffice
Version: 4.4.0~rc3-1
Severity: important
Tags: patch
libreoffice fails to build because of this error during configure stage:
configure: WARNING: You are building 64-bit binaries but the JDK /usr/lib/jvm/java-gcj/bin/java is 32-bit
configure: error: You should pass the --with-jdk-home option pointing to a 64-bit JDK
Error running configure at ./autogen.sh line 266.
Full log: http://buildd.debian-ports.org/status/fetch.php?pkg=libreoffice&arch=hppa&ver=1%3A4.4.0%7Erc3-1&stamp=1422344321
The attached patch fixes this. The problem is, that on the hppa architecture we still only
support 32bit userspace (although this 32bit userspace can run on a 64bit kernel).
The configure scripts in libreoffice assume we are 64bit userspace and as such expects a 64bit JDK which is wrong.
The attached patch moves the hppa platform down to the 32bit platforms.
I assume that there are one or two further patches needed for hppa (The source is still compiling since a day so I can't tell exactly yet)...
Thanks!
Helge
diff -up ./configure.ac.org ./configure.ac
--- ./configure.ac.org 2015-01-25 22:57:04.032592826 +0100
+++ ./configure.ac 2015-01-25 22:58:19.272731089 +0100
@@ -6605,13 +6605,13 @@ if test "$ENABLE_JAVA" != ""; then
# at least 2 reasons to check: officebean needs to link -ljawt,
# and libjpipe.so needs to be loaded by java to run JunitTests.
case $CPUNAME in
- AARCH64|AXP|X86_64|HPPA|IA64|POWERPC64|S390X|SPARC64)
+ AARCH64|AXP|X86_64|IA64|POWERPC64|S390X|SPARC64)
if test -f "$JAVAINTERPRETER" -a "`$JAVAINTERPRETER -version 2>&1 | $GREP -i 64-bit`" = "" >/dev/null; then
AC_MSG_WARN([You are building 64-bit binaries but the JDK $JAVAINTERPRETER is 32-bit])
AC_MSG_ERROR([You should pass the --with-jdk-home option pointing to a 64-bit JDK])
fi
;;
- *) # assumption: everything else 32-bit
+ HPPA|*) # assumption: everything else 32-bit
if test -f "$JAVAINTERPRETER" -a "`$JAVAINTERPRETER -version 2>&1 | $GREP -i 64-bit`" != "" >/dev/null; then
AC_MSG_WARN([You are building 32-bit binaries but the JDK $howfound is 64-bit])
AC_MSG_ERROR([You should pass the --with-jdk-home option pointing to a (32-bit) JDK])
Reply to: