SALSA library in ARM platform
Hi,
I tried compiling SALSA for ARM. I got few errors.
CC=arm-none-linux-gnueabi-gcc ./configure --target=arm-linux --host=i386 --prefix=/usr
make
Then I am getting following errors See the bottom part
/bin/bash ../libtool --tag=CC --mode=compile
arm-none-linux-gnueabi-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"salsa-lib\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -I. -Wall -g -g -O2 -MT mixer.lo
-MD -MP -MF .deps/mixer.Tpo -c -o mixer.lo mixer.c
arm-none-linux-gnueabi-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"salsa-lib\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -I. -Wall -g -g -O2 -MT mixer.lo -MD -MP -MF .deps/mixer.Tpo -c mixer.c -o mixer.o
In file included from hcontrol.h:36,
from mixer.h:25,
from mixer.c:30:hctl_macros.h: In function 'snd_hctl_elem_tlv_read':
hctl_macros.h:136: warning: 'snd_ctl_elem_tlv_read' is deprecated (declared at ctl_macros.h:1131)hctl_macros.h: In function 'snd_hctl_elem_tlv_write':
hctl_macros.h:142: warning: 'snd_ctl_elem_tlv_write' is deprecated (declared at ctl_macros.h:1138)hctl_macros.h: In function 'snd_hctl_elem_tlv_command':
hctl_macros.h:148: warning: 'snd_ctl_elem_tlv_command' is deprecated (declared at ctl_macros.h:1145)
mv -f .deps/mixer.Tpo .deps/mixer.Plo/bin/bash ../libtool --tag=CC --mode=link arm-none-linux-gnueabi-gcc
-Wall -g -g -O2 -version-number 0:0:1 -o libsalsa.la -rpath /usr/lib control.lo cards.lo pcm.lo pcm_params.lo pcm_misc.lo hcontrol.lo mixer.lo
mkdir .libs
libtool: link: CURRENT `' must be a nonnegative integer
libtool: link: `0:0:1' is not valid version information make[1]: *** [libsalsa.la] Error 1
make[1]: Leaving directory `/home/nmathew/Desktop/salsa-lib-0.0.1/src'
make: *** [all-recursive] Error 1
At Thu, 21 Jun 2007 10:58:30 +0530,
Quoted 6 lines · Nobin Mathew
Hi,
I tried compiling SALSA for ARM. I got few errors.CC=arm-none-linux-gnueabi-gcc ./configure --target=arm-linux --host=i386 --prefix=/usr
You need to pass --host=i386-linux. Otherwise configure doesn't set the right $host_os.
Quoted 25 lines
make
Then I am getting following errors See the bottom part
/bin/bash../libtool --tag=CC --mode=compile
arm-none-linux-gnueabi-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"(quoted diff) +0
-14-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"salsa-lib\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -I. -Wall -g -g -O2 -MT mixer.lo -MD -MP -MF .deps/mixer.Tpo -c -o mixer.lo mixer.c arm-none-linux-gnueabi-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"salsa-lib\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -I. -Wall -g -g -O2 -MT mixer.lo -MD -MP -MF .deps/mixer.Tpo -c mixer.c -o mixer.oIn file included from hcontrol.h:36,
from mixer.h:25, from mixer.c:30:
Quoted 9 lines
hctl_macros.h: In function 'snd_hctl_elem_tlv_read':
hctl_macros.h:136: warning: 'snd_ctl_elem_tlv_read' is deprecated (declared at ctl_macros.h:1131)hctl_macros.h: In function 'snd_hctl_elem_tlv_write':
hctl_macros.h:142: warning: 'snd_ctl_elem_tlv_write' is deprecated (declared at ctl_macros.h:1138)hctl_macros.h: In function 'snd_hctl_elem_tlv_command':
hctl_macros.h:148: warning: 'snd_ctl_elem_tlv_command' is deprecated (declared at ctl_macros.h:1145)
These warnings are intentional (as you didn't enable the dB support).
Quoted 8 lines
mv -f .deps/mixer.Tpo .deps/mixer.Plo
/bin/bash../libtool --tag=CC --mode=link arm-none-linux-gnueabi-gcc
-Wall -g -g -O2 -version-number 0:0:1 -o libsalsa.la -rpath/usr/libcontrol.lo cards.lo pcm.lo pcm_params.lo pcm_misc.lo hcontrol.lo mixer.lo
mkdir .libs
libtool: link: CURRENT `' must be a nonnegative integer
libtool: link: `0:0:1' is not valid version information
This should be fixed via --host=i386-linux.
It's good to add --enable-libasound and replace libasound.so.2, too.
Takashi
it compiled perfectly for ARM
Now I need to test in the board.
Quoted 65 lines · Takashi Iwai
At Thu, 21 Jun 2007 10:58:30 +0530,
Quoted 6 lines · Nobin Mathew
Hi,
I tried compiling SALSA for ARM. I got few errors.CC=arm-none-linux-gnueabi-gcc ./configure --target=arm-linux --host=i386 --prefix=/usr
You need to pass --host=i386-linux. Otherwise configure doesn't set the right $host_os.
Quoted 25 lines
make
Then I am getting following errors See the bottom part
/bin/bash../libtool --tag=CC --mode=compile
arm-none-linux-gnueabi-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"(quoted diff) +0
-14-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"salsa-lib\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -I. -Wall -g -g -O2 -MT mixer.lo -MD -MP -MF .deps/mixer.Tpo -c -o mixer.lo mixer.c arm-none-linux-gnueabi-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"salsa-lib\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -I. -Wall -g -g -O2 -MT mixer.lo -MD -MP -MF .deps/mixer.Tpo -c mixer.c -o mixer.oIn file included from hcontrol.h:36,
from mixer.h:25, from mixer.c:30:Quoted 9 lines
hctl_macros.h: In function 'snd_hctl_elem_tlv_read':
hctl_macros.h:136: warning: 'snd_ctl_elem_tlv_read' is deprecated (declared at ctl_macros.h:1131)hctl_macros.h: In function 'snd_hctl_elem_tlv_write':
hctl_macros.h:142: warning: 'snd_ctl_elem_tlv_write' is deprecated (declared at ctl_macros.h:1138)hctl_macros.h: In function 'snd_hctl_elem_tlv_command':
hctl_macros.h:148: warning: 'snd_ctl_elem_tlv_command' is deprecated (declared at ctl_macros.h:1145)These warnings are intentional (as you didn't enable the dB support).
Quoted 8 lines
mv -f .deps/mixer.Tpo .deps/mixer.Plo
/bin/bash../libtool --tag=CC --mode=link arm-none-linux-gnueabi-gcc
-Wall -g -g -O2 -version-number 0:0:1 -o libsalsa.la -rpath/usr/libcontrol.lo cards.lo pcm.lo pcm_params.lo pcm_misc.lo hcontrol.lo mixer.lo
mkdir .libs
libtool: link: CURRENT `' must be a nonnegative integer
libtool: link: `0:0:1' is not valid version informationThis should be fixed via --host=i386-linux.
It's good to add --enable-libasound and replace libasound.so.2, too.Takashi
At Mon, 25 Jun 2007 15:53:50 +0530,
Quoted 2 lines · Nobin Mathew
it compiled perfectly for ARM
Good to hear. I fixed the libtool option to use -version-info instead of -version-number, and added a note in README. Now released version 0.0.2.
thanks,
Takashi
Quoted 69 lines
Now I need to test in the board.
Quoted 65 lines · Takashi Iwai
At Thu, 21 Jun 2007 10:58:30 +0530,
Quoted 6 lines · Nobin Mathew
Hi,
I tried compiling SALSA for ARM. I got few errors.CC=arm-none-linux-gnueabi-gcc ./configure --target=arm-linux --host=i386 --prefix=/usr
You need to pass --host=i386-linux. Otherwise configure doesn't set the right $host_os.
Quoted 25 lines
make
Then I am getting following errors See the bottom part
/bin/bash../libtool --tag=CC --mode=compile
arm-none-linux-gnueabi-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"(quoted diff) +0
-14-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"salsa-lib\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -I. -Wall -g -g -O2 -MT mixer.lo -MD -MP -MF .deps/mixer.Tpo -c -o mixer.lo mixer.c arm-none-linux-gnueabi-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"salsa-lib\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -I. -Wall -g -g -O2 -MT mixer.lo -MD -MP -MF .deps/mixer.Tpo -c mixer.c -o mixer.oIn file included from hcontrol.h:36,
from mixer.h:25, from mixer.c:30:Quoted 9 lines
hctl_macros.h: In function 'snd_hctl_elem_tlv_read':
hctl_macros.h:136: warning: 'snd_ctl_elem_tlv_read' is deprecated (declared at ctl_macros.h:1131)hctl_macros.h: In function 'snd_hctl_elem_tlv_write':
hctl_macros.h:142: warning: 'snd_ctl_elem_tlv_write' is deprecated (declared at ctl_macros.h:1138)hctl_macros.h: In function 'snd_hctl_elem_tlv_command':
hctl_macros.h:148: warning: 'snd_ctl_elem_tlv_command' is deprecated (declared at ctl_macros.h:1145)These warnings are intentional (as you didn't enable the dB support).
Quoted 8 lines
mv -f .deps/mixer.Tpo .deps/mixer.Plo
/bin/bash../libtool --tag=CC --mode=link arm-none-linux-gnueabi-gcc
-Wall -g -g -O2 -version-number 0:0:1 -o libsalsa.la -rpath/usr/libcontrol.lo cards.lo pcm.lo pcm_params.lo pcm_misc.lo hcontrol.lo mixer.lo
mkdir .libs
libtool: link: CURRENT `' must be a nonnegative integer
libtool: link: `0:0:1' is not valid version informationThis should be fixed via --host=i386-linux.
It's good to add --enable-libasound and replace libasound.so.2, too.Takashi