Qualcomm code form code  aurora have the same error (8x09 android 8.1).
But I found I can build successfully with AOSP code tag android-cts-8.1_r19.


在 2018年9月18日星期二 UTC+8上午1:45:15,이병호写道:
>
> Hi everyone.
>
> I am currently developing an Android device with Oreo(8.1.0 R8) OS, and I 
> am preparing for GMS certification.
>
> However, the following build error occurs.
>
> IDevice.h file does not exist in the hardware / interfaces / 
> neuralnetworks / 1.0 folder in my source.
>
>
> [image: ssssssssssssss.PNG]
>
>
> Do I need to add sources? Or what configuration should I add?
>
>
> Please help me.
>
>
> FAILED: out/target/product/msm8953_64/obj/EXECUTABLES/
> CtsNNAPITestCases_intermediates/src/TestMemory.o
> /bin/bash -c "PWD=/proc/self/cwd 
> vendor/qcom/proprietary/llvm-arm-toolchain-ship/4.0/bin/clang++        -I 
> frameworks/ml/nn/runtime/include/ -I frameworks/ml/nn/runtime/test/ -I 
> frameworks/ml/nn/runtime/ -I frameworks/ml/nn/common/include -I 
> frameworks/ml/nn/tools/test_generator/include -I 
> cts/tests/tests/neuralnetworks -I 
> out/target/product/msm8953_64/obj/EXECUTABLES/CtsNNAPITestCases_intermediates 
> -I 
> out/target/product/msm8953_64/gen/EXECUTABLES/CtsNNAPITestCases_intermediates 
> \$(cat 
> out/target/product/msm8953_64/obj/EXECUTABLES/CtsNNAPITestCases_intermediates/import_includes)
>  
>   -isystem prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/include 
> -isystem prebuilts/ndk/current/sources/cxx-stl/llvm-libc++abi/include 
> -isystem prebuilts/ndk/current/sources/android/support/include -isystem 
> out/soong/ndk/sysroot/usr/include -isystem 
> out/soong/ndk/sysroot/usr/include/aarch64-linux-android -isystem 
> prebuilts/ndk/current/platforms/android-24/arch-arm64/usr/include -c 
>  -fno-exceptions -Wno-multichar -fno-strict-aliasing 
> -fstack-protector-strong -ffunction-sections -fdata-sections 
> -funwind-tables -Wa,--noexecstack -Werror=format-security 
> -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes 
> -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast 
> -Werror=implicit-function-declaration -DNDEBUG -O2 -g -Wstrict-aliasing=2 
> -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self 
> -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= 
> -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion 
> -Wno-reserved-id-macro -Wno-format-pedantic 
> -Wno-unused-command-line-argument -fcolor-diagnostics 
> -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type 
> -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point 
> -Werror=date-time -nostdlibinc  -target aarch64-linux-android 
> -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin
>  
>  -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference 
> -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative 
> -fvisibility-inlines-hidden -std=c++11   -fno-rtti -Werror -Wall 
> -D__ANDROID_API__=__ANDROID_API_FUTURE__ -fPIE -DANDROID_STRICT   
> -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast 
> -Werror=address-of-temporary -Werror=return-type   -Wno-vectorizer-no-neon 
> -Wno-vectorizer-no-neon -MD -MF 
> out/target/product/msm8953_64/obj/EXECUTABLES/CtsNNAPITestCases_intermediates/src/TestMemory.d
>  
> -o 
> out/target/product/msm8953_64/obj/EXECUTABLES/CtsNNAPITestCases_intermediates/src/TestMemory.o
>  
> cts/tests/tests/neuralnetworks/src/TestMemory.cpp"
> In file included from cts/tests/tests/neuralnetworks/src/TestMemory.cpp:18
> :
> In file included from frameworks/ml/nn/runtime/test/TestMemory.cpp:19:
> In file included from frameworks/ml/nn/runtime/Memory.h:21:
> In file included from frameworks/ml/nn/common/include/Utils.h:20:
> frameworks/ml/nn/common/include/HalInterfaces.h:20:10: fatal error: 
> 'android/hardware/neuralnetworks/1.0/IDevice.h' file not found
> #include <android/hardware/neuralnetworks/1.0/IDevice.h>
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> [  0% 7/27936] target thumb C++: CtsNNAPITestCases_32 <= cts/tests/tests/
> neuralnetworks/src/TestMemory.cpp
> FAILED: out/target/product/msm8953_64/obj_arm/EXECUTABLES/
> CtsNNAPITestCases_intermediates/src/TestMemory.o
> /bin/bash -c "PWD=/proc/self/cwd 
> vendor/qcom/proprietary/llvm-arm-toolchain-ship/4.0/bin/clang++        -I 
> frameworks/ml/nn/runtime/include/ -I frameworks/ml/nn/runtime/test/ -I 
> frameworks/ml/nn/runtime/ -I frameworks/ml/nn/common/include -I 
> frameworks/ml/nn/tools/test_generator/include -I 
> cts/tests/tests/neuralnetworks -I 
> out/target/product/msm8953_64/obj_arm/EXECUTABLES/CtsNNAPITestCases_intermediates
>  
> -I 
> out/target/product/msm8953_64/gen/EXECUTABLES/CtsNNAPITestCases_intermediates 
> \$(cat 
> out/target/product/msm8953_64/obj_arm/EXECUTABLES/CtsNNAPITestCases_intermediates/import_includes)
>  
>   -isystem prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/include 
> -isystem prebuilts/ndk/current/sources/cxx-stl/llvm-libc++abi/include 
> -isystem prebuilts/ndk/current/sources/android/support/include -isystem 
> out/soong/ndk/sysroot/usr/include -isystem 
> out/soong/ndk/sysroot/usr/include/arm-linux-androideabi -isystem 
> prebuilts/ndk/current/platforms/android-24/arch-arm/usr/include -c 
>  -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections 
> -funwind-tables -fstack-protector-strong -Wa,--noexecstack 
> -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums 
> -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID 
> -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith 
> -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= 
> -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion 
> -Wno-reserved-id-macro -Wno-format-pedantic 
> -Wno-unused-command-line-argument -fcolor-diagnostics 
> -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type 
> -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point 
> -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon 
> -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -D__ARM_FEATURE_LPAE=1 -target 
> arm-linux-androideabi 
> -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin
>  
>  -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference 
> -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative 
> -fvisibility-inlines-hidden -std=c++11 -mthumb -Os -fomit-frame-pointer 
> -fno-strict-aliasing  -fno-rtti -Werror -Wall 
> -D__ANDROID_API__=__ANDROID_API_FUTURE__ -fPIE -DANDROID_STRICT   
> -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast 
> -Werror=address-of-temporary -Werror=return-type   -Wno-vectorizer-no-neon 
> -Wno-vectorizer-no-neon -MD -MF 
> out/target/product/msm8953_64/obj_arm/EXECUTABLES/CtsNNAPITestCases_intermediates/src/TestMemory.d
>  
> -o 
> out/target/product/msm8953_64/obj_arm/EXECUTABLES/CtsNNAPITestCases_intermediates/src/TestMemory.o
>  
> cts/tests/tests/neuralnetworks/src/TestMemory.cpp"
> In file included from cts/tests/tests/neuralnetworks/src/TestMemory.cpp:18
> :
> In file included from frameworks/ml/nn/runtime/test/TestMemory.cpp:19:
> In file included from frameworks/ml/nn/runtime/Memory.h:21:
> In file included from frameworks/ml/nn/common/include/Utils.h:20:
> frameworks/ml/nn/common/include/HalInterfaces.h:20:10: fatal error: 
> 'android/hardware/neuralnetworks/1.0/IDevice.h' file not found
> #include <android/hardware/neuralnetworks/1.0/IDevice.h>
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
>
>
>
> Thank you
>
>
>
>
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/9c32e7db-8f53-4a68-9b48-191ec1395d19o%40googlegroups.com.

Reply via email to