Discussion:
[android-porting] Building Failed
tkj
2017-01-24 03:24:30 UTC
Permalink
Hello all,
I was trying to build AOSP for my device but failed.

[ 73% 25529/34711] target SharedLib: libstagefright_soft_avcdec
(out/target/product/kiw/obj/SHARED_LIBRARIES/libstagefright_soft_avcdec_intermediates/LINKED/libstagefright_soft_avcdec.so)
FAILED: /bin/bash -c
"prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -nostdlib
-Wl,-soname,libstagefright_soft_avcdec.so -Wl,--gc-sections -shared
-Lout/target/product/kiw/obj/lib
out/target/product/kiw/obj/lib/crtbegin_so.o
out/target/product/kiw/obj/SHARED_LIBRARIES/libstagefright_soft_avcdec_intermediates/SoftAVCDec.o
-Wl,--whole-archive -Wl,--no-whole-archive
out/target/product/kiw/obj/STATIC_LIBRARIES/libavcdec_intermediates/libavcdec.a
out/target/product/kiw/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a

prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9/../../../../aarch64-linux-android/lib/../lib64/libatomic.a
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9/libgcc.a
-lstagefright -lstagefright_omx -lstagefright_foundation -lutils -llog
-lc++ -ldl -ldl -lc -lm -o
out/target/product/kiw/obj/SHARED_LIBRARIES/libstagefright_soft_avcdec_intermediates/LINKED/libstagefright_soft_avcdec.so
-Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5
-Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,-maarch64linux
-Wl,--hash-style=gnu -Wl,--fix-cortex-a53-843419 -fuse-ld=gold
-Wl,--icf=safe -Wl,--no-undefined-version -Wl,--allow-shlib-undefined
-target aarch64-linux-android
-Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin
-Wl,-Bsymbolic -Wl,--no-undefined
out/target/product/kiw/obj/lib/crtend_so.o"
external/libavc/decoder/arm/ih264d_function_selector.c:67: error: undefined
reference to 'ih264d_init_function_ptr_av8'
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
[ 73% 25529/34711] target C++: libstagefright_soft_avcenc <=
frameworks/av/media/libstagefright/codecs/avcenc/SoftAVCEnc.cpp
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (59:04 (mm:ss)) ####

Can someone help me, please? Thanks a lot.
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Aditya Parmar
2017-05-17 14:04:05 UTC
Permalink
Having same issue.
Post by tkj
Hello all,
I was trying to build AOSP for my device but failed.
[ 73% 25529/34711] target SharedLib: libstagefright_soft_avcdec
(out/target/product/kiw/obj/SHARED_LIBRARIES/libstagefright_soft_avcdec_intermediates/LINKED/libstagefright_soft_avcdec.so)
FAILED: /bin/bash -c
"prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -nostdlib
-Wl,-soname,libstagefright_soft_avcdec.so -Wl,--gc-sections -shared
-Lout/target/product/kiw/obj/lib
out/target/product/kiw/obj/lib/crtbegin_so.o
out/target/product/kiw/obj/SHARED_LIBRARIES/libstagefright_soft_avcdec_intermediates/SoftAVCDec.o
-Wl,--whole-archive -Wl,--no-whole-archive
out/target/product/kiw/obj/STATIC_LIBRARIES/libavcdec_intermediates/libavcdec.a
out/target/product/kiw/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9/../../../../aarch64-linux-android/lib/../lib64/libatomic.a
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9/libgcc.a
-lstagefright -lstagefright_omx -lstagefright_foundation -lutils -llog
-lc++ -ldl -ldl -lc -lm -o
out/target/product/kiw/obj/SHARED_LIBRARIES/libstagefright_soft_avcdec_intermediates/LINKED/libstagefright_soft_avcdec.so
-Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5
-Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,-maarch64linux
-Wl,--hash-style=gnu -Wl,--fix-cortex-a53-843419 -fuse-ld=gold
-Wl,--icf=safe -Wl,--no-undefined-version -Wl,--allow-shlib-undefined
-target aarch64-linux-android
-Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin
-Wl,-Bsymbolic -Wl,--no-undefined
out/target/product/kiw/obj/lib/crtend_so.o"
undefined reference to 'ih264d_init_function_ptr_av8'
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
[ 73% 25529/34711] target C++: libstagefright_soft_avcenc <=
frameworks/av/media/libstagefright/codecs/avcenc/SoftAVCEnc.cpp
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (59:04 (mm:ss)) ####
Can someone help me, please? Thanks a lot.
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Lee Jones
2018-01-04 12:02:08 UTC
Permalink
I just hit this. Was there a trivial solution?
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hongtao Jia
2018-06-29 09:30:38 UTC
Permalink
I ran into this issue too and you just need to set ARCH_ARM_HAVE_NEON to be
"True".

diff --git a/core/combo/arch/arm64/armv8-a.mk
b/core/combo/arch/arm64/armv8-a.mk
index 5e27e5a..56c8abe 100644
--- a/core/combo/arch/arm64/armv8-a.mk
+++ b/core/combo/arch/arm64/armv8-a.mk
@@ -1,3 +1,5 @@
+ARCH_ARM_HAVE_NEON := true
+
ifneq (,$(filter cortex-a53,$(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT)))
arch_variant_cflags := -mcpu=cortex-a53
else
Post by tkj
Hello all,
I was trying to build AOSP for my device but failed.
[ 73% 25529/34711] target SharedLib: libstagefright_soft_avcdec
(out/target/product/kiw/obj/SHARED_LIBRARIES/libstagefright_soft_avcdec_intermediates/LINKED/libstagefright_soft_avcdec.so)
FAILED: /bin/bash -c
"prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -nostdlib
-Wl,-soname,libstagefright_soft_avcdec.so -Wl,--gc-sections -shared
-Lout/target/product/kiw/obj/lib
out/target/product/kiw/obj/lib/crtbegin_so.o
out/target/product/kiw/obj/SHARED_LIBRARIES/libstagefright_soft_avcdec_intermediates/SoftAVCDec.o
-Wl,--whole-archive -Wl,--no-whole-archive
out/target/product/kiw/obj/STATIC_LIBRARIES/libavcdec_intermediates/libavcdec.a
out/target/product/kiw/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9/../../../../aarch64-linux-android/lib/../lib64/libatomic.a
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9/libgcc.a
-lstagefright -lstagefright_omx -lstagefright_foundation -lutils -llog
-lc++ -ldl -ldl -lc -lm -o
out/target/product/kiw/obj/SHARED_LIBRARIES/libstagefright_soft_avcdec_intermediates/LINKED/libstagefright_soft_avcdec.so
-Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5
-Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,-maarch64linux
-Wl,--hash-style=gnu -Wl,--fix-cortex-a53-843419 -fuse-ld=gold
-Wl,--icf=safe -Wl,--no-undefined-version -Wl,--allow-shlib-undefined
-target aarch64-linux-android
-Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin
-Wl,-Bsymbolic -Wl,--no-undefined
out/target/product/kiw/obj/lib/crtend_so.o"
undefined reference to 'ih264d_init_function_ptr_av8'
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
[ 73% 25529/34711] target C++: libstagefright_soft_avcenc <=
frameworks/av/media/libstagefright/codecs/avcenc/SoftAVCEnc.cpp
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (59:04 (mm:ss)) ####
Can someone help me, please? Thanks a lot.
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...