OpenSL|ES in Android 2.3 can not be built with Linaro GCC 4.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Android |
Fix Released
|
Medium
|
Luse Cheng |
Bug Description
While trying the combination of Android 2.3.2 + linaro-gcc 4.5-2011.03-0, OpenSL|ES can not get built as following messages:
arget thumb C++: BufferQueue_test <=
system/
system/
function 'void TestBufferQueue
system/
warning: passing NULL to non-pointer argument 3 of 'static
testing:
testing:
const T1&, T2*) [with T1 = int, T2 = const SLObjectItf_* const]'
system/
warning: passing NULL to non-pointer argument 3 of 'static
testing:
testing:
const T1&, T2*) [with T1 = int, T2 = const SLObjectItf_* const]'
system/
function 'virtual void TestBufferQueue
system/
warning: passing NULL to non-pointer argument 3 of 'static
testing:
testing:
const T1&, T2*) [with T1 = int, T2 = const SLObjectItf_* const]'
system/
warning: passing NULL to non-pointer argument 3 of 'static
testing:
testing:
const T1&, T2*) [with T1 = int, T2 = const SLObjectItf_* const]'
system/
function 'virtual void TestBufferQueue
system/
warning: passing NULL to non-pointer argument 3 of 'static
testing:
testing:
const T1&, T2*) [with T1 = int, T2 = const SLObjectItf_* const]'
system/
warning: passing NULL to non-pointer argument 3 of 'static
testing:
testing:
const T1&, T2*) [with T1 = int, T2 = const SLObjectItf_* const]'
target Executable: BufferQueue_test
(out/target/
out/target/
reference to `typeinfo for android:
out/target/
reference to `vtable for __cxxabiv1:
collect2: ld returned 1 exit status
make: *** [out/target/
Changed in linaro-android: | |
assignee: | nobody → Luse Cheng (luse) |
Changed in linaro-android: | |
status: | Fix Committed → Fix Released |
In libopenSLES, IAndroidEffect.c use c++ releative features but with .c extension.
Compiler driver leak some c++ parts for this case druing linking.
It can simple fix it with renaming IAndroidEffect.c to IAndroidEffect.cpp and modifying Android.mk