Public bug reported: bluez fails to built in the latest test rebuild (test-rebuild-20111222), with gcc-4.7:
# source='sbc/sbc_primitives_mmx.c' object='sbc/sbc_libsbc_la-sbc_primitives_mmx.lo' libtool=yes /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./lib -I./src -I./src -I./audio -I./sbc -I./gdbus -I./attrib -I./btio -I./health -D_FORTIFY_SOURCE=2 -finline-functions -fgcse-after-reload -funswitch-loops -funroll-loops -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -fPIC -g -c -o sbc/sbc_libsbc_la-sbc_primitives_mmx.lo `test -f 'sbc/sbc_primitives_mmx.c' || echo './'`sbc/sbc_primitives_mmx.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./lib -I./src -I./src -I./audio -I./sbc -I./gdbus -I./attrib -I./btio -I./health -D_FORTIFY_SOURCE=2 -finline-functions -fgcse-after-reload -funswitch-loops -funroll-loops -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -fPIC -g -c sbc/sbc_primitives_mmx.c -fPIC -DPIC -o sbc/.libs/sbc_libsbc_la-sbc_primitives_mmx.o sbc/sbc_primitives_mmx.c: In function 'sbc_calc_scalefactors_mmx': sbc/sbc_primitives_mmx.c:294:4: warning: asm operand 2 probably doesn't match constraints [enabled by default] sbc/sbc_primitives_mmx.c:294:4: error: impossible constraint in 'asm' make[2]: *** [sbc/sbc_libsbc_la-sbc_primitives_mmx.lo] Error 1 See https://launchpadlibrarian.net/88149127/buildlog_ubuntu- precise-i386.bluez_4.96-3ubuntu4_FAILEDTOBUILD.txt.gz It appears to be related to this piece of code: static void sbc_calc_scalefactors_mmx( int32_t sb_sample_f[16][2][8], uint32_t scale_factor[2][8], int blocks, int channels, int subbands) { static const SBC_ALIGNED int32_t consts[2] = { 1 << SCALE_OUT_BITS, 1 << SCALE_OUT_BITS, }; int ch, sb; intptr_t blk; for (ch = 0; ch < channels; ch++) { for (sb = 0; sb < subbands; sb += 2) { blk = (blocks - 1) * (((char *) &sb_sample_f[1][0][0] - (char *) &sb_sample_f[0][0][0])); __asm__ volatile ( "movq (%4), %%mm0\n" "1:\n" "movq (%1, %0), %%mm1\n" "pxor %%mm2, %%mm2\n" "pcmpgtd %%mm2, %%mm1\n" "paddd (%1, %0), %%mm1\n" "pcmpgtd %%mm1, %%mm2\n" "pxor %%mm2, %%mm1\n" "por %%mm1, %%mm0\n" "sub %2, %0\n" "jns 1b\n" "movd %%mm0, %k0\n" "psrlq $32, %%mm0\n" "bsrl %k0, %k0\n" "subl %5, %k0\n" "movl %k0, (%3)\n" "movd %%mm0, %k0\n" "bsrl %k0, %k0\n" "subl %5, %k0\n" "movl %k0, 4(%3)\n" : "+r" (blk) : "r" (&sb_sample_f[0][ch][sb]), "i" ((char *) &sb_sample_f[1][0][0] - (char *) &sb_sample_f[0][0][0]), "r" (&scale_factor[ch][sb]), "r" (&consts), "i" (SCALE_OUT_BITS) : "cc", "memory"); ** Affects: bluez (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/911871 Title: FTBFS on amd64, i386 for test-rebuild-20111222 (gcc-4.7) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/911871/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
