Bug#739186: inventor: FTBFS on s390x: error: cast from 'void*' to 'int' loses precision [-fpermissive]
Patch enabling s390x and aarch64 (arm64): --- inventor-2.1.5-10/debian/patches/endianness.patch 2011-09-25 03:15:31.0 + +++ inventor-2.1.5-10/debian/patches/endianness.patch 2014-03-30 12:05:39.0 +0200 @@ -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__ || __aarch64__) +# define USE_64BIT_HACKS 1 +#else +# define USE_64BIT_HACKS 0 -- debian-science-maintainers mailing list debian-science-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers
Bug#739186: inventor: FTBFS on s390x: error: cast from 'void*' to 'int' loses precision [-fpermissive]
On 30 March 2014 12:06, Graham Inggs gra...@nerve.org.za wrote: Patch enabling s390x and aarch64 (arm64): --- inventor-2.1.5-10/debian/patches/endianness.patch 2011-09-25 03:15:31.0 + +++ inventor-2.1.5-10/debian/patches/endianness.patch 2014-03-30 12:05:39.0 +0200 @@ -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__ || __aarch64__) +# define USE_64BIT_HACKS 1 +#else +# define USE_64BIT_HACKS 0 I have uploaded a new version to Ubuntu including the changes above (and those from #719485) and it built successfully on arm64 [1]. [1] https://launchpad.net/ubuntu/+source/inventor/2.1.5-10-17ubuntu2/+build/5864245 -- debian-science-maintainers mailing list debian-science-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers
Bug#739186: inventor: FTBFS on s390x: error: cast from 'void*' to 'int' loses precision [-fpermissive]
I recently received a notification that inventor also FTBFS on arm64 in Ubuntu Trusty, buildlog [1]. Inventor wasn't built for Ubuntu Saucy as tcsh was not available, buildlog [2]. Could this fix be extended to include __arm64__ as well, please? [1] https://launchpadlibrarian.net/171094762/buildlog_ubuntu-trusty-arm64.inventor_2.1.5-10-17ubuntu1_FAILEDTOBUILD.txt.gz [2] https://launchpadlibrarian.net/153838803/buildlog_ubuntu-saucy-arm64.inventor_2.1.5-10-17ubuntu1_MANUALDEPWAIT.txt.gz -- debian-science-maintainers mailing list debian-science-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers
Bug#739186: inventor: FTBFS on s390x: error: cast from 'void*' to 'int' loses precision [-fpermissive]
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.0 + +++ inventor-2.1.5-10/debian/patches/endianness.patch 2014-02-16 15:58:23.0 + @@ -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 -- debian-science-maintainers mailing list debian-science-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers