[HTC Pico (Explorer)] sakindia123:
Anyone knows what might cause this error while building cm10.1

device/htc/pico/libaudio/audio_policy_hal.cpp: In function 'int android_audio_legacy::create_qcom_ap(const audio_policy_device*, audio_policy_service_ops*, void*, audio_policy**)':
device/htc/pico/libaudio/audio_policy_hal.cpp:400:41: error: invalid conversion from 'audio_io_handle_t (*)(audio_policy*, effect_descriptor_s*) {aka int (*)(audio_policy*, effect_descriptor_s*)}' to 'audio_io_handle_t (*)(audio_policy*, const effect_descriptor_s*) {aka int (*)(audio_policy*, const effect_descriptor_s*)}' [-fpermissive]
device/htc/pico/libaudio/audio_policy_hal.cpp:401:35: error: invalid conversion from 'int (*)(audio_policy*, effect_descriptor_s*, audio_io_handle_t, uint32_t, int, int) {aka int (*)(audio_policy*, effect_descriptor_s*, int, unsigned int, int, int)}' to 'int (*)(audio_policy*, const effect_descriptor_s*, audio_io_handle_t, uint32_t, int, int) {aka int (*)(audio_policy*, const effect_descriptor_s*, int, unsigned int, int, int)}' [-fpermissive]
realmake: *** [/home/sakindia123/mr1/out/target/product/pico/obj/SHARED_LIBRARIES/audio_policy.msm7x27a_intermediates/audio_policy_hal.o] Error 1
realmake: *** Waiting for unfinished jobs....
target thumb C++: libpixelflinger <= system/core/libpixelflinger/codeflinger/texturing.cpp
In file included from device/htc/pico/libaudio/audio_hw_hal.cpp:25:0:
hardware/libhardware/include/hardware/audio.h:151:16: warning: 'typedef' was ignored in this declaration [enabled by default]
device/htc/pico/libaudio/audio_hw_hal.cpp: In function 'int android_audio_legacy::adev_open_output_stream(audio_hw_device*, audio_io_handle_t, audio_devices_t, audio_output_flags_t, audio_config*, audio_stream_out**)':
device/htc/pico/libaudio/audio_hw_hal.cpp:479:60: error: no matching function for call to 'android_audio_legacy::AudioHardwareInterface::openOutputStream(audio_devices_t&, audio_output_flags_t&, int*, audio_channel_mask_t*, uint32_t*, android::status_t*)'
device/htc/pico/libaudio/audio_hw_hal.cpp:479:60: note: candidate is:
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:261:29: note: virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface::openOutputStream(uint32_t, int*, uint32_t*, uint32_t*, android::status_t*)
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:261:29: note: candidate expects 5 arguments, 6 provided
realmake: *** [/home/sakindia123/mr1/out/target/product/pico/obj/SHARED_LIBRARIES/audio.primary.msm7x27a_intermediates/audio_hw_hal.o] Error 1
device/htc/pico/libaudio/AudioPolicyManager.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioPolicyManager::setDeviceConnectionState(android_audio_legacy::AudioSystem::audio_devices, android_audio_legacy::AudioSystem::device_connection_state, char const*)':
device/htc/pico/libaudio/AudioPolicyManager.cpp:435:33: error: 'updateDeviceForStrategy' was not declared in this scope
device/htc/pico/libaudio/AudioPolicyManager.cpp: In member function 'virtual void android_audio_legacy::AudioPolicyManager::setForceUse(android_audio_legacy::AudioSystem::force_use, android_audio_legacy::AudioSystem::forced_config)':
device/htc/pico/libaudio/AudioPolicyManager.cpp:558:29: error: 'updateDeviceForStrategy' was not declared in this scope
hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h: In member function 'virtual android::status_t android_audio_legacy::AudioPolicyManager::startOutput(audio_io_handle_t, android_audio_legacy::AudioSystem::stream_type, int)':
hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h:582:14: error: 'void android_audio_legacy::AudioPolicyManagerBase::handleNotificationRoutingForStream(android_audio_legacy::AudioSystem::stream_type)' is private
device/htc/pico/libaudio/AudioPolicyManager.cpp:704:9: error: within this context
hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h:582:14: error: 'void android_audio_legacy::AudioPolicyManagerBase::handleNotificationRoutingForStream(android_audio_legacy::AudioSystem::stream_type)' is private
device/htc/pico/libaudio/AudioPolicyManager.cpp:704:50: error: within this context
hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h: In member function 'virtual android::status_t android_audio_legacy::AudioPolicyManager::stopOutput(audio_io_handle_t, android_audio_legacy::AudioSystem::stream_type, int)':
hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h:582:14: error: 'void android_audio_legacy::AudioPolicyManagerBase::handleNotificationRoutingForStream(android_audio_legacy::AudioSystem::stream_type)' is private
device/htc/pico/libaudio/AudioPolicyManager.cpp:763:13: error: within this context
hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h:582:14: error: 'void android_audio_legacy::AudioPolicyManagerBase::handleNotificationRoutingForStream(android_audio_legacy::AudioSystem::stream_type)' is private
device/htc/pico/libaudio/AudioPolicyManager.cpp:763:54: error: within this context
realmake: *** [/home/sakindia123/mr1/out/target/product/pico/obj/SHARED_LIBRARIES/audio_policy.msm7x27a_intermediates/AudioPolicyManager.o] Error 1
In file included from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:32:0,
from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareBase.h:20,
from device/htc/pico/libaudio/AudioHardware.h:27,
from device/htc/pico/libaudio/AudioHardware.cpp:35:
hardware/libhardware/include/hardware/audio.h:151:16: warning: 'typedef' was ignored in this declaration [enabled by default]
device/htc/pico/libaudio/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
device/htc/pico/libaudio/AudioHardware.h:484:17: warning: 'android_audio_legacy::AudioHardware::mTtyMode' will be initialized after [-Wreorder]
device/htc/pico/libaudio/AudioHardware.h:471:36: warning: 'android_audio_legacy::AudioHardware::AudioStreamOutMSM72xx* android_audio_legacy::AudioHardware::mOutput' [-Wreorder]
device/htc/pico/libaudio/AudioHardware.cpp:148:1: warning: when initialized here [-Wreorder]
device/htc/pico/libaudio/AudioHardware.h:471:36: warning: 'android_audio_legacy::AudioHardware::mOutput' will be initialized after [-Wreorder]
device/htc/pico/libaudio/AudioHardware.h:469:18: warning: 'bool android_audio_legacy::AudioHardware::mBluetoothVGS' [-Wreorder]
device/htc/pico/libaudio/AudioHardware.cpp:148:1: warning: when initialized here [-Wreorder]
device/htc/pico/libaudio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setParameters(const android::String8&)':
device/htc/pico/libaudio/AudioHardware.cpp:629:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/htc/pico/libaudio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
device/htc/pico/libaudio/AudioHardware.cpp:1421:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/htc/pico/libaudio/AudioHardware.cpp:1421:98: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/htc/pico/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
device/htc/pico/libaudio/AudioHardware.cpp:1721:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/htc/pico/libaudio/AudioHardware.cpp:1724:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/htc/pico/libaudio/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
device/htc/pico/libaudio/AudioHardware.cpp:3236:136: warning: format '%d' expects argument of type 'int', but argument 4 has type 'ssize_t {aka long int}' [-Wformat]
device/htc/pico/libaudio/AudioHardware.cpp: In function 'android_audio_legacy::AudioHardwareInterface* android_audio_legacy::createAudioHardware()':
device/htc/pico/libaudio/AudioHardware.cpp:3346:30: error: cannot allocate an object of abstract type 'android_audio_legacy::AudioHardware'
device/htc/pico/libaudio/AudioHardware.h:174:7: note: because the following virtual functions are pure within 'android_audio_legacy::AudioHardware':
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:261:29: note:	virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface::openOutputStream(uint32_t, int*, uint32_t*, uint32_t*, android::status_t*)
realmake: *** [/home/sakindia123/mr1/out/target/product/pico/obj/SHARED_LIBRARIES/audio.primary.msm7x27a_intermediates/AudioHardware.o] Error 1
sakindia123@build1 ~/mr1 $

i had once built a cm10.1 build for pico just for run,and it compile fine,so the audio library is fine.So what causes this error?