Package: simbody
Version: 3.4.1+dfsg-1
Severity: normal
Tags: patch
User: debian-powe...@lists.debian.org
Usertags: ppc64el powerpc

Dear Maintainer,
on the latest buildd log on simbody, the build fails on powerpc and ppc64el
with :
cd
/«BUILDDIR»/simbody-3.4.1+dfsg/obj-powerpc64le-linux-gnu/SimTKcommon/sharedTarget
&& /usr/bin/c++   -DSimTK_SIMBODY_AUTHORS=\"Michael.Sherman_Peter.Eastman\"
-DSimTK_SIMBODY_COPYRIGHT_YEARS=\"2005-14\"
-DSimTK_SimTKCOMMON_AUTHORS=\"Michael.Sherman_Peter.Eastman\"
-DSimTK_SimTKCOMMON_BUILDING_SHARED_LIBRARY
-DSimTK_SimTKCOMMON_COPYRIGHT_YEARS=\"2005-10\"
-DSimTK_SimTKCOMMON_LIBRARY_NAME=SimTKcommon
-DSimTK_SimTKCOMMON_MAJOR_VERSION=3 -DSimTK_SimTKCOMMON_MINOR_VERSION=4
-DSimTK_SimTKCOMMON_PATCH_VERSION=1 -DSimTK_SimTKCOMMON_SVN_REVISION=\"\"
-DSimTKcommon_EXPORTS -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2  -fPIC
-I/«BUILDDIR»/simbody-3.4.1+dfsg/Platform/Linux/include
-I/«BUILDDIR»/simbody-3.4.1+dfsg/SimTKcommon/./include
-I/«BUILDDIR»/simbody-3.4.1+dfsg/SimTKcommon/Scalar/include
-I/«BUILDDIR»/simbody-3.4.1+dfsg/SimTKcommon/SmallMatrix/include
-I/«BUILDDIR»/simbody-3.4.1+dfsg/SimTKcommon/Mechanics/include
-I/«BUILDDIR»/simbody-3.4.1+dfsg/SimTKcommon/BigMatrix/include
-I/«BUILDDIR»/simbody-3.4.1+dfsg/SimTKcommon/Geometry/include
-I/«BUILDDIR»/simbody-3.4.1+dfsg/SimTKcommon/Simulation/include
-I/«BUILDDIR»/simbody-3.4.1+dfsg/SimTKcommon/Random/include
-I/«BUILDDIR»/simbody-3.4.1+dfsg/SimTKcommon/Polynomial/include    -o
CMakeFiles/SimTKcommon.dir/__/src/tinyxml.cpp.o -c
/«BUILDDIR»/simbody-3.4.1+dfsg/SimTKcommon/src/tinyxml.cpp
/tmp/ccgchSJT.s: Assembler messages:
/tmp/ccgchSJT.s:236: Error: syntax error; found `i', expected `,'
/tmp/ccgchSJT.s:236: Error: junk at end of line: `isync'
/tmp/ccgchSJT.s:309: Error: syntax error; found `i', expected `,'
/tmp/ccgchSJT.s:309: Error: junk at end of line: `isync'

There seems to be a typo in SimTKcommon/src/gmx_atomic.h which I tried to fix
with the attached patch.
The package then builds successfully.
Could you please review and confirm ? Thank you!

F.
--- a/debian/patches/fix_ppc64el.patch	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/patches/fix_ppc64el.patch	2014-11-05 13:21:05.736000696 +0100
@@ -0,0 +1,11 @@
+--- simbody-3.4.1+dfsg.orig/SimTKcommon/src/gmx_atomic.h
++++ simbody-3.4.1+dfsg/SimTKcommon/src/gmx_atomic.h
+@@ -470,7 +470,7 @@ gmx_atomic_add_return(gmx_atomic_t *
+ 	__asm__ __volatile__("1:     lwarx   %0,0,%2\n"
+                          "\tadd     %0,%1,%0\n"
+                          "\tstwcx.  %0,0,%2 \n"
+-                         "\tbne-    1b"
++                         "\tbne-    1b\n"
+                          "\tisync\n"
+                          : "=&r" (t)
+ 						 : "r" (i), "r" (&a->value)
--- a/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/patches/series	2014-11-05 13:20:56.708000696 +0100
@@ -0,0 +1 @@
+fix_ppc64el.patch

Reply via email to