[Debian-med-packaging] Bug#594860: Bug#594860: hmmer: FTBFS (powerpc): altivec and cast errors
Steffen Möller
steffen_moeller at gmx.de
Mon Aug 30 21:31:33 UTC 2010
Hello,
this is somewhat mysterious to me. I presume that altivec is kind of found but also not configured at the same time. Charles, I
recall you to be a PowerPC user, could you please test this
--- debian/rules (revision 5197)
+++ debian/rules (working copy)
@@ -3,8 +3,19 @@
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
+ARCH=`dpkg-architecture -qDEB_BUILD_ARCH_CPU`
+
+ifeq ("amd64",$(ARCH))
+DEB_CONFIGURE_EXTRA_FLAGS := --enable-threads --enable-sse --mandir=$(CURDIR)/debian/tmp/usr/share/man
+else
+ifeq ("powerpc",$(ARCH))
+DEB_CONFIGURE_EXTRA_FLAGS := --enable-threads --enable-vmx --mandir=$(CURDIR)/debian/tmp/usr/share/man
+else
+DEB_CONFIGURE_EXTRA_FLAGS := --enable-threads --mandir=$(CURDIR)/debian/tmp/usr/share/man
+endif
+endif
+
#DEB_CONFIGURE_EXTRA_FLAGS := --enable-threads --enable-mpi
-DEB_CONFIGURE_EXTRA_FLAGS := --enable-threads --mandir=$(CURDIR)/debian/tmp/usr/share/man
DEB_MAKE_INSTALL_TARGET := install prefix=$(CURDIR)/debian/tmp/usr
DEB_MAKE_CHECK_TARGET = check
which is not necessarily nice but it expclicitly switches on vmx on powerpc which should then define the flag which then includes
the missing <altivec.h>. More is on http://m68hc11.serveftp.org/doc/gcc_5.html .
I will commit this to svn as unreleased and then wait for reports. Many thanks
Steffen
On 08/30/2010 10:49 AM, Philipp Kern wrote:
> Source: hmmer
> Version: 3.0-2
> Severity: serious
>
>>
>> sbuild (Debian sbuild) 0.60.0 (23 Feb 2010) on porpora.debian.org
>>
>> ╔══════════════════════════════════════════════════════════════════════════════╗
>> ║ hmmer 3.0-2 (powerpc) 29 Aug 2010 18:06 ║
>> ╚══════════════════════════════════════════════════════════════════════════════╝
> [...]
>> gcc -std=gnu99 -I. -I. -g -O2 -g -Wall -O2 -pthread -maltivec -mabi=altivec -o esl_vmx.o -c esl_vmx.c
>> In file included from esl_vmx.c:38:
>> esl_vmx.h: In function 'esl_vmx_set_float':
>> esl_vmx.h:30: warning: implicit declaration of function 'vec_lde'
>> esl_vmx.h:30: error: incompatible types when assigning to type '__vector float' from type 'int'
>> esl_vmx.h:31: warning: implicit declaration of function 'vec_lvsl'
>> esl_vmx.h:31: error: incompatible types when assigning to type '__vector unsigned char' from type 'int'
>> esl_vmx.h:32: warning: implicit declaration of function 'vec_perm'
>> esl_vmx.h:32: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:33: warning: implicit declaration of function 'vec_splat'
>> esl_vmx.h:33: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h: In function 'esl_vmx_set_s16':
>> esl_vmx.h:48: error: incompatible types when assigning to type '__vector signed short' from type 'int'
>> esl_vmx.h:49: error: incompatible types when assigning to type '__vector unsigned char' from type 'int'
>> esl_vmx.h:50: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:51: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h: In function 'esl_vmx_set_u8':
>> esl_vmx.h:66: error: incompatible types when assigning to type '__vector unsigned char' from type 'int'
>> esl_vmx.h:67: error: incompatible types when assigning to type '__vector unsigned char' from type 'int'
>> esl_vmx.h:68: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:69: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h: In function 'esl_vmx_hsum_float':
>> esl_vmx.h:83: warning: implicit declaration of function 'vec_add'
>> esl_vmx.h:83: warning: implicit declaration of function 'vec_sld'
>> esl_vmx.h:83: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:83: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:84: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:84: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:85: warning: implicit declaration of function 'vec_ste'
>> esl_vmx.h:85: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h: In function 'esl_vmx_hsum_s16':
>> esl_vmx.h:100: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:100: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:101: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:101: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:102: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:102: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:103: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h: In function 'esl_vmx_hmax_float':
>> esl_vmx.h:118: warning: implicit declaration of function 'vec_max'
>> esl_vmx.h:118: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:118: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:119: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:119: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:120: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h: In function 'esl_vmx_hmax_s16':
>> esl_vmx.h:135: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:135: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:136: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:136: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:137: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:137: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:138: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h: In function 'esl_vmx_hmax_u8':
>> esl_vmx.h:153: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:153: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:154: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:154: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:155: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:155: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:156: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:156: error: AltiVec argument passed to unprototyped function
>> esl_vmx.h:157: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c: In function 'esl_vmx_logf':
>> esl_vmx.c:92: warning: implicit declaration of function 'vec_splat_u32'
>> esl_vmx.c:92: error: can't convert between vector values of different size
>> esl_vmx.c:96: warning: implicit declaration of function 'vec_sr'
>> esl_vmx.c:96: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:98: warning: implicit declaration of function 'vec_cmple'
>> esl_vmx.c:98: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:99: warning: implicit declaration of function 'vec_cmpeq'
>> esl_vmx.c:99: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:100: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:103: warning: implicit declaration of function 'vec_and'
>> esl_vmx.c:103: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:105: warning: implicit declaration of function 'vec_or'
>> esl_vmx.c:105: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:105: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:107: warning: implicit declaration of function 'vec_sub'
>> esl_vmx.c:107: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:108: warning: implicit declaration of function 'vec_ctf'
>> esl_vmx.c:108: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:111: warning: implicit declaration of function 'vec_cmplt'
>> esl_vmx.c:111: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:111: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:112: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:113: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:114: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:114: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:115: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:116: warning: implicit declaration of function 'vec_madd'
>> esl_vmx.c:116: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:118: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:119: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:119: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:120: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:120: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:121: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:121: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:122: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:122: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:123: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:123: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:124: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:124: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:125: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:125: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:126: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:126: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:127: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:128: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:130: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:130: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:131: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:133: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:133: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:134: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:136: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:137: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:137: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:140: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:141: warning: implicit declaration of function 'vec_sel'
>> esl_vmx.c:141: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:142: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c: In function 'esl_vmx_expf':
>> esl_vmx.c:173: error: can't convert between vector values of different size
>> esl_vmx.c:176: warning: implicit declaration of function 'vec_cmpgt'
>> esl_vmx.c:176: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:177: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:180: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:181: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:184: warning: implicit declaration of function 'vec_floor'
>> esl_vmx.c:184: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:185: warning: implicit declaration of function 'vec_cts'
>> esl_vmx.c:185: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:188: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:188: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:189: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:189: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:190: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:191: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:192: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:194: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:195: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:195: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:196: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:196: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:197: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:197: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:198: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:198: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:199: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:199: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:200: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:201: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:204: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:205: warning: implicit declaration of function 'vec_sl'
>> esl_vmx.c:205: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:210: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:213: error: AltiVec argument passed to unprototyped function
>> esl_vmx.c:214: error: AltiVec argument passed to unprototyped function
>> make[2]: *** [esl_vmx.o] Error 1
>> make[2]: Leaving directory `/build/buildd-hmmer_3.0-2-powerpc-XTH3EQ/hmmer-3.0/easel'
>> make[1]: *** [easel_lib] Error 2
>> make: *** [debian/stamp-makefile-build] Error 2
>> dpkg-buildpackage: error: debian/rules build gave error exit status 2
>> make[1]: Leaving directory `/build/buildd-hmmer_3.0-2-powerpc-XTH3EQ/hmmer-3.0'
>> ────────────────────────────────────────────────────────────────────────────────
>> Build finished at 20100829-1808
>> FAILED [dpkg-buildpackage died]
>> ────────────────────────────────────────────────────────────────────────────────
>> Purging /var/lib/schroot/mount/sid-powerpc-sbuild-63940f4a-b9fe-44eb-894b-2e55bfb7b6e9/build/buildd-hmmer_3.0-2-powerpc-XTH3EQ
>> Not removing build depends: cloned chroot in use
>> ────────────────────────────────────────────────────────────────────────────────
>> Finished at 20100829-1808
>> Build needed 00:01:51, 15768k disc space
>>
>>
>> _______________________________________________
>> Debian-med-packaging mailing list
>> Debian-med-packaging at lists.alioth.debian.org
>> http://lists.alioth.debian.org/mailman/listinfo/debian-med-packaging
More information about the Debian-med-packaging
mailing list