Tinyalsa compilation error for Android JB4.3 for i.mx6sl evk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Tinyalsa compilation error for Android JB4.3 for i.mx6sl evk

1,907 Views
vincentchou
Contributor IV

Hi!  friends,

I tried to build my Android image in my ubuntu 10.04 environment and come across the following error.

======================

target thumb C: audio.primary.imx6 <= hardware/imx/alsa/tinyalsa_hal.c
hardware/imx/alsa/tinyalsa_hal.c: In function 'pcm_read_wrapper':
hardware/imx/alsa/tinyalsa_hal.c:1105:10: warning: implicit declaration of function 'pcm_state' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:1108:20: warning: implicit declaration of function 'pcm_prepare' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c: In function 'in_get_input_frames_lost':
hardware/imx/alsa/tinyalsa_hal.c:2111:5: warning: implicit declaration of function 'pcm_get_time_of_xrun' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c: In function 'scan_available_device':
hardware/imx/alsa/tinyalsa_hal.c:3037:9: warning: implicit declaration of function 'control_open' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:3037:21: warning: assignment makes pointer from integer without a cast [enabled by default]
hardware/imx/alsa/tinyalsa_hal.c:3040:9: warning: implicit declaration of function 'control_card_info_get_id' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:3040:9: warning: implicit declaration of function 'control_card_info_get_driver' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:3040:9: warning: implicit declaration of function 'control_card_info_get_name' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:3040:9: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat]
hardware/imx/alsa/tinyalsa_hal.c:3040:9: warning: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Wformat]
hardware/imx/alsa/tinyalsa_hal.c:3040:9: warning: format '%s' expects argument of type 'char *', but argument 7 has type 'int' [-Wformat]
hardware/imx/alsa/tinyalsa_hal.c:3044:13: warning: passing argument 1 of 'strstr' makes pointer from integer without a cast [enabled by default]
In file included from bionic/libc/include/signal.h:34:0,
                 from bionic/libc/include/pthread.h:32,
                 from hardware/imx/alsa/tinyalsa_hal.c:22:
bionic/libc/include/string.h:60:15: note: expected 'const char *' but argument is of type 'int'
hardware/imx/alsa/tinyalsa_hal.c:3053:30: warning: passing argument 1 of 'strcmp' makes pointer from integer without a cast [enabled by default]
In file included from bionic/libc/include/signal.h:34:0,
                 from bionic/libc/include/pthread.h:32,
                 from hardware/imx/alsa/tinyalsa_hal.c:22:
bionic/libc/include/string.h:52:15: note: expected 'const char *' but argument is of type 'int'
hardware/imx/alsa/tinyalsa_hal.c:3055:33: warning: passing argument 2 of 'strcpy' makes pointer from integer without a cast [enabled by default]
In file included from bionic/libc/include/signal.h:34:0,
                 from bionic/libc/include/pthread.h:32,
                 from hardware/imx/alsa/tinyalsa_hal.c:22:
bionic/libc/include/string.h:118:7: note: expected 'const char *' but argument is of type 'int'
hardware/imx/alsa/tinyalsa_hal.c:3083:17: warning: implicit declaration of function 'pcm_get_near_param' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:3083:55: error: 'PCM_HW_PARAM_RATE' undeclared (first use in this function)
hardware/imx/alsa/tinyalsa_hal.c:3083:55: note: each undeclared identifier is reported only once for each function it appears in
hardware/imx/alsa/tinyalsa_hal.c:3095:54: error: 'PCM_HW_PARAM_CHANNELS' undeclared (first use in this function)
hardware/imx/alsa/tinyalsa_hal.c:3099:17: warning: implicit declaration of function 'pcm_check_param_mask' [-Wimplicit-function-declaration]
hardware/imx/alsa/tinyalsa_hal.c:3099:56: error: 'PCM_HW_PARAM_FORMAT' undeclared (first use in this function)
hardware/imx/alsa/tinyalsa_hal.c:3117:9: warning: implicit declaration of function 'control_close' [-Wimplicit-function-declaration]
make: *** [out/target/product/evk_6sl/obj/SHARED_LIBRARIES/audio.primary.imx6_intermediates/tinyalsa_hal.o] Error 1

======================

I am building the image for i.MX6SL EVK. Could anyone share his/her experience on fixing this problem?

Vincent

Labels (4)
0 Kudos
Reply
2 Replies

1,022 Views
freewaymad
Contributor IV

Hi Vincent,

Make sure you are using "android_jb4.3_1.1.0-ga_source" to patch with. If so, I would run the patch again. It will ask to delete the patches; enter yes. It will delete the patches and then, re-patch. Now type:

$ make clobber

Then start your build again.

Hope this helps,

Dave

0 Kudos
Reply

1,022 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello, Vincent,

    I have tested compiling i.MX6SL android 4.3 BSP on unbunt 12.04 64bit LTS platform, No errors occured. I don't have enough time to set up the same environment with yours, So I recommend you use unbunt 12.04 64bit LTS.

    Attachment is a document written by me , I recorded  all the steps on setting up this environment! But the document is not a formal one, just for you as a reference.

Regards,

Weidong

0 Kudos
Reply