Rony Nandy
2011-Aug-09 16:12 UTC
[Speex-dev] not building with --enable-arm-asm -enable-arm5e-asm
Hi, I am getting the following dump while trying to build for arm ./configure --prefix=/root/dump --host=arm-linux --with-gnu-ld --disable-static --enable-fixed-point --enable-arm-asm -enable-arm5e-asm configure: WARNING: unrecognized options: --enable-arm-asm Type "make; make install" to compile and install Speex root at rony-ubuntu:~/speex# make make all-recursive make[1]: Entering directory `/root/speex' Making all in libspeex make[2]: Entering directory `/root/speex/libspeex' /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I.. -I/root/dump/include -g -O2 -fvisibility=hidden -MT cb_search.lo -MD -MP -MF .deps/cb_search.Tpo -c -o cb_search.lo cb_search.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I.. -I/root/dump/include -g -O2 -fvisibility=hidden -MT cb_search.lo -MD -MP -MF .deps/cb_search.Tpo -c cb_search.c -fPIC -DPIC -o .libs/cb_search.o fixed_arm5e.h: Assembler messages: fixed_arm5e.h:41: Error: no such instruction: `smulbb %ecx,%ax,%di' fixed_arm5e.h:50: Error: no such instruction: `smlabb %edx,%si,%edi,%ecx' fixed_arm5e.h:50: Error: no such instruction: `smlabb %edi,%cx,%esi,%edx' fixed_arm5e.h:41: Error: no such instruction: `smulbb %ecx,%si,%dx' fixed_arm5e.h:50: Error: no such instruction: `smlabb %esi,%dx,%ecx,%edi' fixed_arm5e.h:41: Error: no such instruction: `smulbb %esi,%dx,%cx' make[2]: *** [cb_search.lo] Error 1 make[2]: Leaving directory `/root/speex/libspeex' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/speex' make: *** [all] Error 2 Any idea whats the problem? -- Rony Nandy Multimdedia Working Group, www.linaro.org ? Open source software for ARM SoCs
Pavel Pavlov
2011-Aug-09 16:18 UTC
[Speex-dev] not building with --enable-arm-asm -enable-arm5e-asm
> Hi, > > > I am getting the following dump while trying to build for arm > > >./configure --prefix=/root/dump --host=arm-linux --with-gnu-ld > --disable-static --enable-fixed-point --enable-arm-asm -enable-arm5e-asmcmd line gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I.. -I/root/dump/include -g -O2 -fvisibility=hidden -MT cb_search.lo -MD -MP -MF .deps/cb_search.Tpo -c cb_search.c -fPIC -DPIC -o .libs/cb_search.o does not have appropriate cpu or arch param, that's why these instructions are not valid for default arm cpu (which is armv4). you need to pass -mcpu or -march with appropriate cpu. smlaXX instructions are armv5e. Check inside configure script what you need to pass to be able to properly compile.
Steve Checkoway
2011-Aug-09 16:40 UTC
[Speex-dev] not building with --enable-arm-asm -enable-arm5e-asm
On Aug 9, 2011, at 9:12 AM, Rony Nandy wrote:> ./configure --prefix=/root/dump --host=arm-linux --with-gnu-ld > --disable-static --enable-fixed-point --enable-arm-asm -enable-arm5e-asm--host=armv5tel-unknown-linux-gnueabi --build=x86_64-unknown-linux-gnu worked for me, but that's just the compiler I have installed. -- Steve Checkoway
Hi All, I have downloaded libogg-1.3.0 along with speex.But,during build speex is exiting with ogg.h missing.Any suggestions will be highly appreciated. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- /opt/linaro-gcc-4.5-arm-linux-gnueabi-32bit/bin/arm-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I.. -I/root/dump/include -I../libogg-1.3.0/include/ -marm -fvisibility=hidden -MT testjitter.o -MD -MP -MF .deps/testjitter.Tpo -c -o testjitter.o testjitter.c mv -f .deps/testjitter.Tpo .deps/testjitter.Po /bin/bash ../libtool --tag=CC --mode=link /opt/linaro-gcc-4.5-arm-linux-gnueabi-32bit/bin/arm-linux-gnueabi-gcc -I../libogg-1.3.0/include/ -marm -fvisibility=hidden -o testjitter testjitter.o libspeexdsp.la -lm libtool: link: /opt/linaro-gcc-4.5-arm-linux-gnueabi-32bit/bin/arm-linux-gnueabi-gcc -I../libogg-1.3.0/include/ -marm -fvisibility=hidden -o testjitter testjitter.o ./.libs/libspeexdsp.a -lm make[2]: Leaving directory `/root/speex/libspeex' Making all in include make[2]: Entering directory `/root/speex/include' Making all in speex make[3]: Entering directory `/root/speex/include/speex' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/root/speex/include/speex' make[3]: Entering directory `/root/speex/include' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/root/speex/include' make[2]: Leaving directory `/root/speex/include' Making all in src make[2]: Entering directory `/root/speex/src' /opt/linaro-gcc-4.5-arm-linux-gnueabi-32bit/bin/arm-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/root/dump/include -I../libogg-1.3.0/include/ -marm -fvisibility=hidden -MT speexenc.o -MD -MP -MF .deps/speexenc.Tpo -c -o speexenc.o speexenc.c speexenc.c:51:21: fatal error: ogg/ogg.h: No such file or directory compilation terminated. make[2]: *** [speexenc.o] Error 1 make[2]: Leaving directory `/root/speex/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/speex' make: *** [all] Error 2 root at rony-ubuntu:~/speex# ./configure --prefix=/root/dump --host=arm-linux --disable-shared --enable-fixed-point --enable-arm5e-asm CC=/opt/linaro-gcc-4.5-arm-linux-gnueabi-32bit/bin/arm-linux-gnueabi-gcc CFLAGS="-I../libogg-1.3.0/include/ -marm" -- Rony Nandy Multimdedia Working Group, www.linaro.org ? Open source software for ARM SoCs
On mer, 2011-08-10 at 09:41 -0400, Rony Nandy wrote:> Hi All, > I have downloaded libogg-1.3.0 along with speex.But,during > build speex is exiting with ogg.h missing.Any suggestions will be highly > appreciated.IIRC, speexenc encodes your data into a speex stream which is encapsulated into an OGG container, so you need to libogg to compile it. Though, it has been ages since I've worked with it. Regards, -- Luca Ottaviano <lcottaviano at gmail.com>