Bug#739186: inventor: FTBFS on s390x: error: cast from 'void*' to 'int' loses precision [-fpermissive]
Aurelien Jarno
aurel32 at debian.org
Sun Feb 16 16:06:45 UTC 2014
Package: inventor
Version: 2.1.5-10-17
Severity: important
Tags: patch upstream
Justification: fails to build from source
inventor fails to build from source on s390x with the following error:
| In file included from So.c++:63:0:
| SoType.c++: In static member function 'static SoType SoType::fromName(SbName)':
| SoType.c++:338:35: error: cast from 'void*' to 'int' loses precision [-fpermissive]
| In file included from So.c++:67:0:
| SoOutput.c++: In member function 'int SoOutput::findReference(const SoBase*) const':
| SoOutput.c++:1468:21: error: cast from 'void*' to 'int' loses precision [-fpermissive]
The problem is that inventor uses an harcoded list of 64-bit
architectures, which doesn't includes s390x. The following patch fixes
the issue:
--- inventor-2.1.5-10/debian/patches/endianness.patch 2011-09-25 03:15:31.000000000 +0000
+++ inventor-2.1.5-10/debian/patches/endianness.patch 2014-02-16 15:58:23.000000000 +0000
@@ -53,7 +53,7 @@
#endif
+/* Added for Debian by Steve M. Robbins */
-+#if (_MIPS_SZPTR == 64 || __ia64 || __x86_64 || __alpha__ || __powerpc64__)
++#if (_MIPS_SZPTR == 64 || __ia64 || __x86_64 || __alpha__ || __powerpc64__ || __s390x__)
+# define USE_64BIT_HACKS 1
+#else
+# define USE_64BIT_HACKS 0
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: s390x
Kernel: Linux 3.2.0-4-s390x (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
More information about the debian-science-maintainers
mailing list