Bug#409255: audacity - FTBFS: error: unrecognized command line option -msse

2007-02-11 Thread Joost Yervante Damad
Hi,

the problem is that the sse_optimized.cpp file NEEDS to be compiled with -msse 
on the i386 and amd64 archs. The runtime cpu detection system of the program 
will take care of actually using it or not depending on the cpu features.

Joost

-- 
The planet Andete is famous for it's killer edible poets.


pgpO5PiRTxHNl.pgp
Description: PGP signature


Bug#409255: audacity - FTBFS: error: unrecognized command line option -msse

2007-02-11 Thread Joost Yervante Damad
Hi,

The addition of

AC_CANONICAL_HOST
case $host in
amd64-*-*) LIBSSE_CFLAGS=-msse ;;
i?86-*-*)  LIBSSE_CFLAGS=-msse ;;
*) LIBSSE_CFLAGS= ;;
esac
AC_SUBST([LIBSSE_CFLAGS])

to configure.ac of soundtouch and

noinst_LTLIBRARIES = libsse.la
libSoundTouch_la_LIBADD = libsse.la
libsse_la_SOURCES = sse_optimized.cpp
libsse_la_CXXFLAGS = -O3 $(LIBSSE_CFLAGS) -fcheck-new -I../../include

to the Makefile.am of soundtouch/source/SoundTouch

Seems to do the job for me.

Joost

-- 
The planet Andete is famous for it's killer edible poets.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#409255: audacity - FTBFS: error: unrecognized command line option -msse

2007-02-09 Thread Free Ekanayaka
Hi Bastian,

|--== Bastian Kleineidam writes:

  BK Bastian Blank schrieb:
  So using this flag is not appropriate for debian i386 packages.
  BK Ok, I attached a patch that just removes the flag usage. Since it
  BK patches Makefile.in directly, no regeneration ist needed.

  BK --- Makefile.in.orig  2007-02-06 18:40:29.122955147 +0100
  BK +++ Makefile.in   2007-02-06 18:40:33.941222659 +0100
  BK @@ -197,7 +197,7 @@
 
  BK  # ??? test for -fcheck-new in configure.ac
  BK  # other compiler flags to add
  BK -AM_CXXFLAGS = -O3 -msse -fcheck-new -I../../include
  BK +AM_CXXFLAGS = -O3 -fcheck-new -I../../include
  BK  all: all-am
 
thanks for the patch.  I've tried to  apply it, but soundtouch doesn't
seem  to like it,  so  probably a finer patch  is  needed. See the log
below:

Making all in SoundTouch
make[5]: Entering directory 
`/tmp/buildd/audacity-1.3.2/lib-src/soundtouch/source/SoundTouch'
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
-I../../include -I../../include   -O3 -fcheck-new -I../../include  -c -o 
AAFilter.lo AAFilter.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -O3 -fcheck-new 
-I../../include -c AAFilter.cpp -o AAFilter.o
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
-I../../include -I../../include   -O3 -fcheck-new -I../../include  -c -o 
FIRFilter.lo FIRFilter.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -O3 -fcheck-new 
-I../../include -c FIRFilter.cpp -o FIRFilter.o
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
-I../../include -I../../include   -O3 -fcheck-new -I../../include  -c -o 
FIFOSampleBuffer.lo FIFOSampleBuffer.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -O3 -fcheck-new 
-I../../include -c FIFOSampleBuffer.cpp -o FIFOSampleBuffer.o
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
-I../../include -I../../include   -O3 -fcheck-new -I../../include  -c -o 
mmx_optimized.lo mmx_optimized.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -O3 -fcheck-new 
-I../../include -c mmx_optimized.cpp -o mmx_optimized.o
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
-I../../include -I../../include   -O3 -fcheck-new -I../../include  -c -o 
sse_optimized.lo sse_optimized.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -O3 -fcheck-new 
-I../../include -c sse_optimized.cpp -o sse_optimized.o
In file included from sse_optimized.cpp:70:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/xmmintrin.h:34:3: error: #error SSE 
instruction set not enabled
sse_optimized.cpp: In member function 'virtual double 
soundtouch::TDStretchSSE::calcCrossCorrStereo(const float*, const float*) 
const':
sse_optimized.cpp:76: error: '__m128' was not declared in this scope
sse_optimized.cpp:76: error: expected `;' before 'vSum'
sse_optimized.cpp:106: error: 'pVec2' was not declared in this scope
sse_optimized.cpp:106: error: expected primary-expression before ')' token
sse_optimized.cpp:106: error: expected `;' before 'pV2'
sse_optimized.cpp:107: error: 'vSum' was not declared in this scope
sse_optimized.cpp:107: error: '_mm_setzero_ps' was not declared in this scope
sse_optimized.cpp:113: error: '_mm_load_ps' was not declared in this scope
sse_optimized.cpp:113: error: '_mm_mul_ps' was not declared in this scope
sse_optimized.cpp:113: error: '_mm_add_ps' was not declared in this scope
sse_optimized.cpp: In member function 'virtual uint 
soundtouch::FIRFilterSSE::evaluateFilterStereo(float*, const float*, uint) 
const':
sse_optimized.cpp:296: error: expected initializer before '*' token
sse_optimized.cpp:297: error: '__m128' was not declared in this scope
sse_optimized.cpp:297: error: expected `;' before 'sum1'
sse_optimized.cpp:301: error: 'pFil' was not declared in this scope
sse_optimized.cpp:301: error: expected primary-expression before ')' token
sse_optimized.cpp:301: error: expected `;' before 'filterCoeffsAlign'
sse_optimized.cpp:303: error: 'sum1' was not declared in this scope
sse_optimized.cpp:303: error: 'sum2' was not declared in this scope
sse_optimized.cpp:303: error: '_mm_setzero_ps' was not declared in this scope
sse_optimized.cpp:313: error: '_mm_loadu_ps' was not declared in this scope
sse_optimized.cpp:313: error: '_mm_mul_ps' was not declared in this scope
sse_optimized.cpp:313: error: '_mm_add_ps' was not declared in this scope
sse_optimized.cpp:334: error: '_MM_SHUFFLE' was not declared in this scope
sse_optimized.cpp:334: error: '_mm_shuffle_ps' was not declared in this scope
sse_optimized.cpp:336: error: '_mm_add_ps' was not declared in this scope
sse_optimized.cpp:336: error: '_mm_storeu_ps' was not declared in this scope
make[5]: *** [sse_optimized.lo] Error 1
make[5]: Leaving directory 
`/tmp/buildd/audacity-1.3.2/lib-src/soundtouch/source/SoundTouch'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory 

Bug#409255: audacity - FTBFS: error: unrecognized command line option -msse

2007-02-06 Thread Bastian Kleineidam
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I think the reason for the compile error lies in the SoundTouch package,
located at lib-src/soundtouch. It uses the -msse flag to compile its
files. The -msse flag is not supported on all platforms; according to
documentation only on i386 and x86-64. Yet the flag is used
unconditionally on all platforms.

A little googling found the patch[1] below. It tests if -msse is
supported for the current platform. It touches configure.ac and
Makefile.am, so you need to regenerate configure and Makefile.in.
[1]
http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/soundtouch-optflags.patch?rev=1.4

Regards,
  Bastian

- --
  ,''`.  Bastian Kleineidam
 : :' :GnuPG Schlüssel
 `. `'gpg --keyserver wwwkeys.pgp.net --recv-keys 32EC6F3E
   `-

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFyFuEeBwlBDLsbz4RAiFRAJ41Z6YX3wK5wfWQOmFHWk8FBP/tQQCcCCwz
AzoUIRog5EbZLF+8tdc0V8c=
=hACb
-END PGP SIGNATURE-



Bug#409255: audacity - FTBFS: error: unrecognized command line option -msse

2007-02-06 Thread Bastian Blank
On Tue, Feb 06, 2007 at 11:42:12AM +0100, Bastian Kleineidam wrote:
 I think the reason for the compile error lies in the SoundTouch package,
 located at lib-src/soundtouch. It uses the -msse flag to compile its
 files. The -msse flag is not supported on all platforms; according to
 documentation only on i386 and x86-64. Yet the flag is used
 unconditionally on all platforms.

The -msse flag enables use of sse opcodes and breaks the code on
machines without sse support. (It seems to be on per defaults on x86-64
as all of them support sse.)

So using this flag is not appropriate for debian i386 packages.

Bastian

-- 
Not one hundred percent efficient, of course ... but nothing ever is.
-- Kirk, Metamorphosis, stardate 3219.8


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#409255: audacity - FTBFS: error: unrecognized command line option -msse

2007-02-06 Thread Bastian Kleineidam
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bastian Blank schrieb:
 So using this flag is not appropriate for debian i386 packages.
Ok, I attached a patch that just removes the flag usage. Since it
patches Makefile.in directly, no regeneration ist needed.

Regards,
  Bastian
- --
  ,''`.  Bastian Kleineidam
 : :' :GnuPG Schlüssel
 `. `'gpg --keyserver wwwkeys.pgp.net --recv-keys 32EC6F3E
   `-

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFyL3DeBwlBDLsbz4RAkslAJwOCXyh4R9//i+6NioJvR+rgkrgNwCgpfb+
6cbjKOH3vhQzxnFKYHGPV64=
=H2q0
-END PGP SIGNATURE-
--- Makefile.in.orig2007-02-06 18:40:29.122955147 +0100
+++ Makefile.in 2007-02-06 18:40:33.941222659 +0100
@@ -197,7 +197,7 @@
 
 # ??? test for -fcheck-new in configure.ac
 # other compiler flags to add
-AM_CXXFLAGS = -O3 -msse -fcheck-new -I../../include
+AM_CXXFLAGS = -O3 -fcheck-new -I../../include
 all: all-am
 
 .SUFFIXES:


Bug#409255: audacity - FTBFS: error: unrecognized command line option -msse

2007-02-01 Thread Bastian Blank
Package: audacity
Version: 1.3.2-1
Severity: serious

There was an error while trying to autobuild your package:

 Automatic build of audacity_1.3.2-1 on lxdebian.bfinv.de by sbuild/s390 98
[...]
 make[5]: Entering directory 
 `/build/buildd/audacity-1.3.2/lib-src/soundtouch/source/SoundTouch'
 /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
 -I../../include -I../../include   -O3 -msse -fcheck-new -I../../include  -c 
 -o AAFilter.lo AAFilter.cpp
  g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -O3 -msse 
 -fcheck-new -I../../include -c AAFilter.cpp -o AAFilter.o
 cc1plus: error: unrecognized command line option -msse
 make[5]: *** [AAFilter.lo] Error 1
 make[5]: Leaving directory 
 `/build/buildd/audacity-1.3.2/lib-src/soundtouch/source/SoundTouch'
 make[4]: *** [all-recursive] Error 1


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]