[Speex-dev] Cross-compiling with Cirrus Logic MaverickCrunch support

llandre r&d2 at dave-tech.it
Tue May 10 01:37:53 PDT 2005


Hi Jean-Marc,

I have the following problem when cross-building speex 1.1.7 with
MaverickCrunch support. To add this support I had to define CPPFLAGS as 
follows:

export CPPFLAGS='-mcpu=ep9312 -mfix-crunch-d1'

but it seems libtool does not like it, while the object files are
compiled fine:

...
  arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include 
-I/home/llandre/devel/zephyr/sw/rootfs/usr/local/include/ogg -mcpu=ep9312 
-mfix-crunch-d1 -g -O2 -c mdf.c -MT mdf.lo -MD -MP -MF 
.deps/mdf.TPlo  -fPIC -DPIC -o .libs/mdf.o arm-linux-gcc -DHAVE_CONFIG_H 
-I. -I. -I.. -I../include 
-I/home/llandre/devel/zephyr/sw/rootfs/usr/local/include/ogg -mcpu=ep9312 
-mfix-crunch-d1 -g -O2 -c mdf.c -MT mdf.lo -MD -MP -MF .deps/mdf.TPlo -o 
mdf.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link arm-linux-gcc  -g -O2   -o libspeex.la 
-rpath /usr/lib -version-info 3:0:2 nb_celp.lo sb_celp.lo lpc.lo ltp.lo 
lsp.lo quant_lsp.lo lsp_tables_nb.lo gain_table.lo gain_table_lbr.lo 
cb_search.lo filters.lo bits.lo modes.lo speex.lo vq.lo high_lsp_tables.lo 
vbr.lo hexc_table.lo exc_5_256_table.lo exc_5_64_table.lo 
exc_8_128_table.lo exc_10_32_table.lo exc_10_16_table.lo exc_20_32_table.lo 
hexc_10_32_table.lo misc.lo speex_header.lo speex_callbacks.lo 
math_approx.lo stereo.lo preprocess.lo smallft.lo lbr_48k_tables.lo 
jitter.lo mdf.lo  -lm
arm-linux-gcc -shared  .libs/nb_celp.o .libs/sb_celp.o .libs/lpc.o 
.libs/ltp.o .libs/lsp.o .libs/quant_lsp.o .libs/lsp_tables_nb.o 
.libs/gain_table.o .libs/gain_table_lbr.o .libs/cb_search.o .libs/filters.o 
.libs/bits.o .libs/modes.o .libs/speex.o .libs/vq.o .libs/high_lsp_tables.o 
.libs/vbr.o .libs/hexc_table.o .libs/exc_5_256_table.o 
.libs/exc_5_64_table.o .libs/exc_8_128_table.o .libs/exc_10_32_table.o 
.libs/exc_10_16_table.o .libs/exc_20_32_table.o .libs/hexc_10_32_table.o 
.libs/misc.o .libs/speex_header.o .libs/speex_callbacks.o 
.libs/math_approx.o .libs/stereo.o .libs/preprocess.o .libs/smallft.o 
.libs/lbr_48k_tables.o .libs/jitter.o .libs/mdf.o  -lm  -Wl,-soname 
-Wl,libspeex.so.1 -o .libs/libspeex.so.1.2.0
/usr/local/arm/zaniah/d1/lib/gcc/arm-linux/3.4.0/../../../../arm-linux/bin/ld: 
ERROR: /usr/local/arm/zaniah/d1/lib/gcc/arm-linux/3.4.0/crtbeginS.o uses 
Maverick instructions, whereas .libs/libspeex.so.1.2.0 does not
File format not recognized: failed to merge target specific data of file 
/usr/local/arm/zaniah/d1/lib/gcc/arm-linux/3.4.0/crtbeginS.o
...

What am I missing?


Thanks in advance,

llandre

DAVE Electronics System House - R&D Department
web:   http://www.dave-tech.it
email: r&d2 at dave-tech.it



More information about the Speex-dev mailing list