account arrowhead-down arrowhead-up mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

Build error with AOSP Pie for Xperia X Performance Dual(F8132)

SOLVED
Visitor
Message 1 of 4
996 Views
Message 1 of 4

Build error with AOSP Pie for Xperia X Performance Dual(F8132)

 

I followed the official guid to build AOSP Pie 9.0.

 

choose aosp_f8132-eng  (I noticed that choose by index ,say 33 for aosp_f8132-eng, will pick a wrong combo for me. 

 

then make. get this

 

hardware/qcom/gps/sdm845/utils/MsgTask.cpp:38:10: fatal error: 'processgroup/sched_policy.h' file not found

 

the whole out put is  this: 

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=aosp_f8132
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-43-generic-x86_64-Ubuntu-16.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ1A.190105.004
OUT_DIR=out
============================================
ninja: no work to do.
[1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
wildcard(out/target/product/dora/clean_steps.mk) was changed, regenerating...
No need to regenerate ninja file
16:54:48 Build configuration changed: "aosp_f8131-userdebug" -> "aosp_f8132-eng", forcing installclean
[  3% 2527/84165] target thumb C++: libgps.utils_32 <= hardware/qcom/gps/sdm845/utils/MsgTask.cpp
FAILED: out/target/product/dora/obj_arm/SHARED_LIBRARIES/libgps.utils_intermediates/MsgTask.o
/bin/bash -c "PWD=/proc/self/cwd  prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++      -I hardware/qcom/gps/sdm845/utils -I out/target/product/dora/obj_arm/SHARED_LIBRARIES/libgps.utils_intermediates -I out/target/product/dora/gen/SHARED_LIBRARIES/libgps.utils_intermediates -I libnativehelper/include_jni \$(cat out/target/product/dora/obj_arm/SHARED_LIB
RARIES/libgps.utils_intermediates/import_includes)  -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem out/target/product/dora/obj/include -i
system kernel/sony/msm-4.9/common-headers/kernel-headers -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c  -fomit-frame-pointer -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefi
xes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -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 -Wno-zero-as-null-pointer-constant -fdebug-prefix-map=\$PWD/=
 -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -Werror=format-security -nostdlibinc -msoft-float -march=armv8-a -mfloat-abi=softfp -mfpu=neon-fp-armv8 -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 -Wno-gnu-include-next -fvisibility-inlines-hidden  -std
=gnu++14 -mthumb -Os  -fno-rtti -fno-short-enums -D_ANDROID_ -Wno-error -Werror -Wno-error=unused-parameter -Wno-error=format -Wno-error=macro-redefined -Wno-error=reorder -Wno-error=missing-braces -Wno-error=self-assign -Wno-error=enum-conversion -Wno-error=logical-op-parentheses -Wno-error=null-arithmetic -Wno-error=null-conversion -Wno-error=parentheses-equal
ity -Wno-error=undefined-bool-conversion -Wno-error=tautological-compare -Wno-error=switch -Wno-error=date-time -fPIC -D_USING_LIBCXX -DANDROID_STRICT   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch
   -MD -MF out/target/product/dora/obj_arm/SHARED_LIBRARIES/libgps.utils_intermediates/MsgTask.d -o out/target/product/dora/obj_arm/SHARED_LIBRARIES/libgps.utils_intermediates/MsgTask.o hardware/qcom/gps/sdm845/utils/MsgTask.cpp"
hardware/qcom/gps/sdm845/utils/MsgTask.cpp:38:10: fatal error: 'processgroup/sched_policy.h' file not found
#include <processgroup/sched_policy.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[ 3% 2645/84165] target thumb C++: libloc_api_v02_32 <= vendor/qcom/opensource/location/loc_api/loc_api_v02/LocApiV02.cpp
vendor/qcom/opensource/location/loc_api/loc_api_v02/LocApiV02.cpp:2086:63: warning: format specifies type 'unsigned int' but the argument has type 'LOC_API_ADAPTER_EVENT_MASK_T' (aka 'unsigned long long') [-Wformat]
LOC_LOGD("%s:%d]: adapter mask = %u\n", __func__, __LINE__, mask);
~~ ^~~~
%llu
hardware/qcom/gps/sdm845/utils/log_util.h:111:43: note: expanded from macro 'LOC_LOGD'
#define LOC_LOGD(...) IF_LOC_LOGD { ALOGD(__VA_ARGS__); }
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:203:52: note: expanded from macro 'ALOGD'
#define ALOGD(...) ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__))
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:308:67: note: expanded from macro 'ALOG'
#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:72:69: note: expanded from macro 'LOG_PRI'
#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:63:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
1 warning generated.
[ 3% 2656/84165] target thumb C++: libgnss_32 <= hardware/qcom/gps/sdm845/gnss/GnssAdapter.cpp
ninja: build stopped: subcommand failed.
16:54:59 ninja failed with: exit status 1

#### failed to build some targets (34 seconds) ####

I'm new to aosp, can someone give me some advice on how to solve this ? 

1 ACCEPTED SOLUTION

Accepted Solutions
Visitor
Message 2 of 4
988 Views
Message 2 of 4

Re: Build error with AOSP Pie for Xperia X Performance Dual(F8132)

I solved this by commenting out that `#include` statement. 

 

Then, every works fine! 

 

And I need to use the latest software binaries, which is released yesterday..

SW_BINARIES_FOR_XPERIA_ANDROID_9.0_2.3.2_V5_TONE.ZIP

3 REPLIES 3
Visitor
Message 2 of 4
989 Views
Message 2 of 4

Re: Build error with AOSP Pie for Xperia X Performance Dual(F8132)

I solved this by commenting out that `#include` statement. 

 

Then, every works fine! 

 

And I need to use the latest software binaries, which is released yesterday..

SW_BINARIES_FOR_XPERIA_ANDROID_9.0_2.3.2_V5_TONE.ZIP

One time poster
Message 3 of 4
806 Views
Message 3 of 4

Re: Build error with AOSP Pie for Xperia X Performance Dual(F8132)

Hey reveriel,

 

i just ran into the same error. but unfortunately i can't find the file which has the #include statement. could you tell me which file this is? i guess it's in the log output but i still haven't found it.

 

also is your build working? it just seems a little dangerous to comment out an arbitrary include statement.

 

thanks!

Highlighted
Developer World
Message 4 of 4
786 Views
Message 4 of 4

Re: Build error with AOSP Pie for Xperia X Performance Dual(F8132)

Hi,

 

please run the repo_update script

I just built all devices and there is no build error

 

Regards

Alin