Source: lush Severity: normal Tags: patch User: [email protected] Usertags: ppc64el
Dear Maintainer, The package lush fails to build from source on ppc64el with the subject error. gcc -DHAVE_CONFIG_H -DNO_DEBUG -Wall -O3 -mcpu=powerpc64le -I../include -pthread -I/usr/include/freetype2 -c at.c /tmp/ccyAN7yu.s: Assembler messages: /tmp/ccyAN7yu.s:2020: Error: junk at end of line: `8' /tmp/ccyAN7yu.s:2234: Error: junk at end of line: `8' Full log at: https://buildd.debian.org/status/fetch.php?pkg=lush&arch=ppc64el&ver=1.2.1-9%2Bcvs20110227%2Bnmu1%2Bb5&stamp=1449250655 That is caused by the optimization, which uses a move from condition register that is used differently on newer ABI. Adding -mno-mfcrf as a compiler option fixes it. The patch attached is a way to do so. Thanks and regards. Fernando
diff -Nru lush-1.2.1/debian/changelog lush-1.2.1/debian/changelog --- lush-1.2.1/debian/changelog 2011-11-08 16:22:44.000000000 -0500 +++ lush-1.2.1/debian/changelog 2015-12-14 09:02:17.000000000 -0500 @@ -1,3 +1,13 @@ +lush (1.2.1-9+cvs20110227+nmu1.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * debian/patches/ppc64el.patch: adds -mno-mfcrf when arch is ppc64el + to fix FTBFS. + * debian/rules: changed autotools_dev to autoreconf + * debian/control: switched autotools-dev to dh-autoreconf + + -- Fernando Seiti Furusato <[email protected]> Mon, 14 Dec 2015 09:01:46 -0500 + lush (1.2.1-9+cvs20110227+nmu1) unstable; urgency=low * Non-maintainer upload. diff -Nru lush-1.2.1/debian/control lush-1.2.1/debian/control --- lush-1.2.1/debian/control 2011-11-08 17:14:15.000000000 -0500 +++ lush-1.2.1/debian/control 2015-12-14 09:01:44.000000000 -0500 @@ -2,7 +2,7 @@ Section: devel Priority: extra Maintainer: Yaroslav Halchenko <[email protected]> -Build-Depends: debhelper (>= 7.0.50~), autotools-dev, binutils-dev, libxt-dev, libxft-dev, gfortran, indent, pkg-config, libncurses-dev, libreadline-dev, libgsl0-dev, liblapack-dev, libgl1-mesa-dev | libgl-dev, libsdl-dev, libcv-dev, libasound2-dev, libaudiofile-dev, zlib1g-dev +Build-Depends: debhelper (>= 7.0.50~), dh-autoreconf, binutils-dev, libxt-dev, libxft-dev, gfortran, indent, pkg-config, libncurses-dev, libreadline-dev, libgsl0-dev, liblapack-dev, libgl1-mesa-dev | libgl-dev, libsdl-dev, libcv-dev, libasound2-dev, libaudiofile-dev, zlib1g-dev Standards-Version: 3.9.1 Homepage: http://lush.sourceforge.net/ Vcs-Browser: http://git.onerussian.com/?p=deb/lush.git diff -Nru lush-1.2.1/debian/patches/ppc64el.patch lush-1.2.1/debian/patches/ppc64el.patch --- lush-1.2.1/debian/patches/ppc64el.patch 1969-12-31 19:00:00.000000000 -0500 +++ lush-1.2.1/debian/patches/ppc64el.patch 2015-12-14 08:47:20.000000000 -0500 @@ -0,0 +1,19 @@ +Index: lush-1.2.1/configure.ac +=================================================================== +--- lush-1.2.1.orig/configure.ac ++++ lush-1.2.1/configure.ac +@@ -30,6 +30,14 @@ AC_ARG_WITH(extra-libraries, + AC_MSG_ERROR([Cannot stat directory $withval]) + fi ] ) + ++# Check if host arch is ppc64le so powerpc64 does not use mfcrf in ++# optimization when in LE ++case $host in ++ ppc64le-* | powerpc64le-* ) ++ CPPFLAGS="$CPPFLAGS -mno-mfcrf" ++ ;; ++esac ++ + # Always look into a "gnu" directory. + curwd=`pwd` + if test -d $curwd/gnu/include ; then diff -Nru lush-1.2.1/debian/patches/series lush-1.2.1/debian/patches/series --- lush-1.2.1/debian/patches/series 2011-11-08 16:17:44.000000000 -0500 +++ lush-1.2.1/debian/patches/series 2015-12-14 08:45:54.000000000 -0500 @@ -4,3 +4,4 @@ 03-gcc4-mips 04-ld-no-add-needed 05-static-libbfd-needs-lz +ppc64el.patch diff -Nru lush-1.2.1/debian/rules lush-1.2.1/debian/rules --- lush-1.2.1/debian/rules 2011-02-27 16:13:03.000000000 -0500 +++ lush-1.2.1/debian/rules 2015-12-14 09:00:49.000000000 -0500 @@ -16,7 +16,7 @@ # Mega rule %: - dh $@ --with autotools_dev + dh $@ --with autoreconf get-cvs-snapshot: #cd ../$(CVS_ROOT_PATH) && cvs update

