Hello,
I am trying to compile a Kernel on Arch Linux for my Device Mi 9T Pro (raphael), but everytime it comes to compile the kernel it fails.
I used the guide from Nathan Chance (https://forum.xda-developers.com/an...erence-how-to-compile-android-kernel-t3627297), but even when I go step by step, it doesn't work.
The first point is, that it fails to properly use a parent directory.
I am using this repository:
https://github.com/UtsavBalar1231/kernel_xiaomi_raphael
This is what needs to be done:
mkdir -p out
make O=out distclean
make O=out mrproper
make O=out raphael-stock_defconfig
make O=out -j16
This is what I do:
##Going into the kernel source directory and setting the variables
export CROSS_COMPILE=/home/user/Toolchains/gcc-7.5.0/bin/aarch64-linux-gnu-
export ARCH=arm64 && export SUBARCH=arm64
##Creating a parent directory
mkdir -p out
##Setting up the directory
make O=out clean
Code:
make[1]: Entering directory '/home/user/build/xiaomi/out'
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
find: ‘arch/arm64/boot/dts/’: No such file or directory
find: ‘arch/arm64/boot/dts/’: No such file or directory
make[1]: Leaving directory '/home/user/build/xiaomi/out'
make O=out mrproper
Code:
make[1]: Entering directory '/home/user/build/xiaomi/out'
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
find: ‘arch/arm64/boot/dts/’: No such file or directory
find: ‘arch/arm64/boot/dts/’: No such file or directory
make[1]: Leaving directory '/home/user/build/xiaomi/out'
make O=out raphael-stock_defconfig //works
Code:
make[1]: Entering directory '/home/user/build/xiaomi/out'
HOSTCC scripts/basic/fixdep
GEN ./Makefile
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: Leaving directory '/home/user/build/xiaomi/out'
make O=out -j16
Code:
/usr/bin/ld: scripts/dtc/yamltree.o: in function `yaml_propval_int':
yamltree.c:(.text+0x161): undefined reference to `yaml_sequence_start_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x16c): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x1ed): undefined reference to `yaml_scalar_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x1fa): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x359): undefined reference to `yaml_scalar_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x384): undefined reference to `yaml_sequence_end_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x38f): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: scripts/dtc/yamltree.o: in function `yaml_tree':
yamltree.c:(.text+0x522): undefined reference to `yaml_mapping_start_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x52d): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x5b9): undefined reference to `yaml_scalar_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x5c4): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x602): undefined reference to `yaml_sequence_start_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x60d): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x6b8): undefined reference to `yaml_sequence_end_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x6c3): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x756): undefined reference to `yaml_scalar_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x761): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x838): undefined reference to `yaml_scalar_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x843): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x86e): undefined reference to `yaml_mapping_end_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x879): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x8e1): undefined reference to `yaml_scalar_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x8ec): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: scripts/dtc/yamltree.o: in function `dt_to_yaml':
yamltree.c:(.text+0xa8d): undefined reference to `yaml_emitter_initialize'
/usr/bin/ld: yamltree.c:(.text+0xa9b): undefined reference to `yaml_emitter_set_output_file'
/usr/bin/ld: yamltree.c:(.text+0xaa8): undefined reference to `yaml_stream_start_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0xab3): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0xacc): undefined reference to `yaml_document_start_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0xad7): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0xaf8): undefined reference to `yaml_sequence_start_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0xb03): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0xb1f): undefined reference to `yaml_sequence_end_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0xb2a): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0xb3c): undefined reference to `yaml_document_end_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0xb47): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0xb57): undefined reference to `yaml_stream_end_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0xb62): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0xb6e): undefined reference to `yaml_emitter_delete'
collect2: error: ld returned 1 exit status
make[3]: *** [scripts/Makefile.host:111: scripts/dtc/dtc] Error 1
make[2]: *** [../scripts/Makefile.build:675: scripts/dtc] Error 2
make[2]: *** Waiting for unfinished jobs....
HOSTLD scripts/mod/modpost
UPD include/generated/asm-offsets.h
CALL ../scripts/checksyscalls.sh
make[1]: *** [/home/user/build/xiaomi/Makefile:603: scripts] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/user/build/xiaomi/out'
make: *** [Makefile:146: sub-make] Error 2
What is going wrong?
Related
Hey guys I have another question about my first attempt at building from source. when I run
make -j`grep 'processor' /proc/cpuinfo | wc -l` CYANOGEN_WITH_GOOGLE=true bacon
Click to expand...
Click to collapse
The make command runs for a bit and does its thing and then I get an error
target Dex: VisualizationWallpapers
target Package: VisualizationWallpapers (out/target/product/sholes/obj/APPS/VisualizationWallpapers_intermediates/package.apk)
'out/target/common/obj/APPS/VisualizationWallpapers_intermediates/classes.dex' as 'classes.dex'...
Install: out/target/product/sholes/system/app/VisualizationWallpapers.apk
Copying: out/target/common/obj/APPS/VoiceDialer_intermediates/classes-full-names.jar
Copying: out/target/common/obj/APPS/VoiceDialer_intermediates/classes.jar
target Dex: VoiceDialer
target Package: VoiceDialer (out/target/product/sholes/obj/APPS/VoiceDialer_intermediates/package.apk)
'out/target/common/obj/APPS/VoiceDialer_intermediates/classes.dex' as 'classes.dex'...
Install: out/target/product/sholes/system/app/VoiceDialer.apk
target Executable: CameraServiceTest (out/target/product/sholes/obj/EXECUTABLES/CameraServiceTest_intermediates/LINKED/CameraServiceTest)
/home/andrew/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: warning: libril_rds.so, needed by out/target/product/sholes/obj/lib/libmoto_gps.so, not found (try using -rpath or -rpath-link)
/home/andrew/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: warning: libnmea.so, needed by out/target/product/sholes/obj/lib/libmoto_gps.so, not found (try using -rpath or -rpath-link)
out/target/product/sholes/obj/lib/libmoto_gps.so: undefined reference to `RdsSetupRemoteConnection'
out/target/product/sholes/obj/lib/libmoto_gps.so: undefined reference to `RdsUtilCreateMsg'
out/target/product/sholes/obj/lib/libmoto_gps.so: undefined reference to `nmea_parse_sentence'
out/target/product/sholes/obj/lib/libmoto_gps.so: undefined reference to `RdsUtilSendMsg'
out/target/product/sholes/obj/lib/libmoto_gps.so: undefined reference to `nmea_parse_error_string'
out/target/product/sholes/obj/lib/libmoto_gps.so: undefined reference to `RdsReadServerRsp'
collect2: ld returned 1 exit status
make: *** [out/target/product/sholes/obj/EXECUTABLES/CameraServiceTest_intermediates/LINKED/CameraServiceTest] Error 1
andrewUbuntu: ~/android/system
Click to expand...
Click to collapse
Bueller? anyone?
Seems like the extract-files.sh did not work.
The libraries missing are breaking the build.
Ensure the extract-files.sh was done properly.
Please disregard my previous post.
Seems like there are a couple inconsistencies on the sholes vendor tree. I am experiencing the same issue now. Checking.
Will let you know what I found.
I was partially right about the extract-files.sh
First, go to /home/andrew/android/vendor/motorola/sholes and edit the BoardConfig.mk file. The line for the GPS libraries must have three files (separated by spaces) libmoto_gps, libnmea and libril_rds. From your post, yours only has the libmoto_gps.
Second, check if /home/andrew/android/vendor/motorola/sholes/proprietary contains the file pppd_ril. If the file is not there, you must use any file explorer with root to copy it from /system/bin on the phone to /home/andrew/android/vendor/motorola/sholes/proprietary in your computer.
Try the build again.
I am trying to compile Android from the source for my Nexus One. I pretty much followed all instructions from here: http://forum.xda-developers.com/showthread.php?t=899674
Though the instructions are for Gingerbread, I don't really see much of a difference for Froyo. After I do a "make -j4", the following error is thrown:
Code:
Install: out/target/product/passion/system/lib/libmedia.so
target SharedLib: libstagefright_foundation (out/target/product/passion/obj/SHARED_LIBRARIES/libstagefright_foundation_intermediates/LINKED/libstagefright_foundation.so)
target SharedLib: libstagefright_color_conversion (out/target/product/passion/obj/SHARED_LIBRARIES/libstagefright_color_conversion_intermediates/LINKED/libstagefright_color_conversion.so)
target SharedLib: libaudio (out/target/product/passion/obj/SHARED_LIBRARIES/libaudio_intermediates/LINKED/libaudio.so)
target SharedLib: libaudiopolicy (out/target/product/passion/obj/SHARED_LIBRARIES/libaudiopolicy_intermediates/LINKED/libaudiopolicy.so)
target SharedLib: libcameraservice (out/target/product/passion/obj/SHARED_LIBRARIES/libcameraservice_intermediates/LINKED/libcameraservice.so)
prebuilt/darwin-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/passion/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::getCameraInfo(int, android::CameraInfo*):frameworks/base/services/camera/libcameraservice/CameraService.cpp:109: error: undefined reference to 'HAL_getCameraInfo'
prebuilt/darwin-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/passion/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::CameraService():frameworks/base/services/camera/libcameraservice/CameraService.cpp:75: error: undefined reference to 'HAL_getNumberOfCameras'
prebuilt/darwin-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/passion/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::CameraService():frameworks/base/services/camera/libcameraservice/CameraService.cpp:75: error: undefined reference to 'HAL_getNumberOfCameras'
prebuilt/darwin-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/passion/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::connect(android::sp<android::ICameraClient> const&, int):frameworks/base/services/camera/libcameraservice/CameraService.cpp:148: error: undefined reference to 'HAL_openCameraHardware'
prebuilt/darwin-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/passion/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::connect(android::sp<android::ICameraClient> const&, int):frameworks/base/services/camera/libcameraservice/CameraService.cpp:154: error: undefined reference to 'HAL_getCameraInfo'
collect2: ld returned 1 exit status
make: *** [out/target/product/passion/obj/SHARED_LIBRARIES/libcameraservice_intermediates/LINKED/libcameraservice.so] Error 1
make: *** Waiting for unfinished jobs....
Note: cts/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_1.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
compiling all jasmin (*.j)
compiling all .cfh files into .class files
generating Main_*.java files reading from cts/tools/dx-tests writing to out/host/darwin-x86/obj/EXECUTABLES/dx-tests_intermediates/mainfiles
using java src:cts/tools/dx-tests/src
Collecting all junit tests...
Time: 0.025
OK (0 tests)
Can someone please help me resolve this issue?
If you want to compile Froyo - use a different guide. Either from CM6 page or from Android SDK explanations.
You're failing on library incompatibilities, specifically Camera lib - but since I don't know, what's the source core you're running (Froyo or Gingerbread repo), it's hard to say how to fix it. If you're following the guide in your post completely and compiling GB - you probably missed the "Fix Camera" part.
My bad! You're right.. There was the fix right at the bottom of that article. Thank you for pointing it out. Everything works properly..
Hi guys. I compiling gingerbread from sources and I have this problem.
Code:
target Executable: dhcpcd (out/target/product/crespo/obj/EXECUTABLES/dhcpcd_intermediates/LINKED/dhcpcd)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: error: out/target/product/crespo/obj/EXECUTABLES/dhcpcd_intermediates/net.o: file is empty
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: error: out/target/product/crespo/obj/EXECUTABLES/dhcpcd_intermediates/signals.o: file is empty
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: error: out/target/product/crespo/obj/EXECUTABLES/dhcpcd_intermediates/configure.o: file is empty
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: error: out/target/product/crespo/obj/EXECUTABLES/dhcpcd_intermediates/client.o: file is empty
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: error: out/target/product/crespo/obj/EXECUTABLES/dhcpcd_intermediates/if-linux.o: file is empty
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: error: out/target/product/crespo/obj/EXECUTABLES/dhcpcd_intermediates/lpf.o: file is empty
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/crespo/obj/EXECUTABLES/dhcpcd_intermediates/dhcpcd.o: in function parse_string_hwaddr:external/dhcpcd/dhcpcd.c:229: error: undefined reference to 'hwaddr_aton'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/crespo/obj/EXECUTABLES/dhcpcd_intermediates/dhcpcd.o: in function parse_string_hwaddr:external/dhcpcd/dhcpcd.c:235: error: undefined reference to 'hwaddr_aton'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/crespo/obj/EXECUTABLES/dhcpcd_intermediates/dhcpcd.o: in function parse_option:external/dhcpcd/dhcpcd.c:398: error: undefined reference to 'inet_cidrtoaddr'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/crespo/obj/EXECUTABLES/dhcpcd_intermediates/dhcpcd.o: in function main:external/dhcpcd/dhcpcd.c:902: error: undefined reference to 'do_interface'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/crespo/obj/EXECUTABLES/dhcpcd_intermediates/dhcpcd.o: in function main:external/dhcpcd/dhcpcd.c:1034: error: undefined reference to 'dhcp_run'
collect2: ld returned 1 exit status
make: *** [out/target/product/crespo/obj/EXECUTABLES/dhcpcd_intermediates/LINKED/dhcpcd] Error 1
Can you help me? I use Ubuntu 10.04,3 x86_64 and I used a source.android.com how to for this process...
Resolved using "make clean" and reusing "make -j2 otapackage".
Thank you guys.
Android Studio 2.3
compileSdkVersion 25
buildToolsVersion "25.0.2"
JDK 8
Hi, at two days ago I have an Error while gradel start syncing ?
Error code:
Code:
1. Error:java.util.concurrent.ExecutionException: java.lang.RuntimeException: AAPT process not ready to receive commands
2. Error:Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: AAPT process not ready to receive commands
complete listing Gradle Console
Code:
Executing tasks: [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources]
Configuration on demand is an incubating feature.
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /home/katrin/Android/Sdk/ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
AAPT err(Facade for 28135074): /home/katrin/Android/Sdk/build-tools/25.0.2/aapt: 3: /home/katrin/Android/Sdk/build-tools/25.0.2/aapt: Syntax error: Unterminated quoted string
AAPT err(Facade for 11136512): /home/katrin/Android/Sdk/build-tools/25.0.2/aapt: 3: /home/katrin/Android/Sdk/build-tools/25.0.2/aapt: Syntax error: Unterminated quoted string
AAPT err(Facade for 28946008): /home/katrin/Android/Sdk/build-tools/25.0.2/aapt: 3: /home/katrin/Android/Sdk/build-tools/25.0.2/aapt: Syntax error: Unterminated quoted string
AAPT err(Facade for 2721286): /home/katrin/Android/Sdk/build-tools/25.0.2/aapt: 3: /home/katrin/Android/Sdk/build-tools/25.0.2/aapt: Syntax error: Unterminated quoted string
AAPT err(Facade for 16344079): /home/katrin/Android/Sdk/build-tools/25.0.2/aapt: 3: /home/katrin/Android/Sdk/build-tools/25.0.2/aapt: Syntax error: Unterminated quoted string
Exception while processing task java.lang.RuntimeException: AAPT process not ready to receive commands
Exception while processing task java.lang.RuntimeException: AAPT process not ready to receive commands
Exception while processing task java.lang.RuntimeException: AAPT process not ready to receive commands
Exception while processing task java.lang.RuntimeException: AAPT process not ready to receive commands
Exception while processing task java.lang.RuntimeException: AAPT process not ready to receive commands
Process list not empty
Thread(png-cruncher_3): queue not cleaned
while shutting downpng-cruncher_3
java.io.IOException: Stream closed
at java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:433)
at java.io.OutputStream.write(OutputStream.java:116)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:297)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at com.android.builder.png.AaptProcess.shutdown(AaptProcess.java:143)
at com.android.builder.png.QueuedCruncher$1.shutdown(QueuedCruncher.java:167)
at com.android.builder.tasks.WorkQueue.shutdown(WorkQueue.java:171)
at com.android.builder.png.QueuedCruncher.end(QueuedCruncher.java:321)
at com.android.builder.internal.aapt.v1.AaptV1.end(AaptV1.java:375)
at com.android.ide.common.res2.MergedResourceWriter.end(MergedResourceWriter.java:269)
at com.android.ide.common.res2.DataMerger.mergeData(DataMerger.java:301)
at com.android.ide.common.res2.ResourceMerger.mergeData(ResourceMerger.java:410)
at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:159)
at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:163)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:95)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:76)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:236)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:228)
at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:77)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:58)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
at org.gradle.initialization.DefaultGradleLauncher$3.execute(DefaultGradleLauncher.java:196)
at org.gradle.initialization.DefaultGradleLauncher$3.execute(DefaultGradleLauncher.java:193)
at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:193)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102)
at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71)
at org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:50)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.tooling.internal.provider.runner.RunAsBuildOperationBuildActionRunner$1.execute(RunAsBuildOperationBuildActionRunner.java:43)
at org.gradle.tooling.internal.provider.runner.RunAsBuildOperationBuildActionRunner$1.execute(RunAsBuildOperationBuildActionRunner.java:40)
at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
at org.gradle.tooling.internal.provider.runner.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40)
at org.gradle.tooling.internal.provider.runner.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:75)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: AAPT process not ready to receive commands
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: AAPT process not ready to receive commands
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.502 secs
i have no mind what this is... ?? :crying::crying:
sorry for my English
Soooo, this is what happens when I try to build Lineage 15.0. It fails to build the kernel, can someone please help.
[email protected]:~/android/lineage15$ mka
make: Entering directory '/home/flagers/android/lineage15'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=lineage_owens
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-36-generic-x86_64-with-Ubuntu-17.10-artful
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPR3.170623.013
OUT_DIR=/home/flagers/android/lineage15/out
============================================
ninja: no work to do.
ninja: no work to do.
Environment variable BUILD_NUMBER was modified (b391b210c6 => eb6491827b), regenerating...
[9/1046] including ./cts/Android.mk ...
cts/apps/CtsVerifier/Android.mk:72: warning: FindEmulator: find: `cts/apps/CtsVerifier/src/com/android/cts/verifier/backup': No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/res: No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/backup/assets: No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/src': No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/src': No such file or directory
cts/tests/tests/contactsproviderwipe/Android.mk:33: warning: FindEmulator: find: `cts/tests/tests/contactsproviderwipe/common/src': No such file or directory
cts/tests/tests/telecom3/Android.mk:37: warning: FindEmulator: find: `cts/tests/tests/telecom/src/android/telecom/cts/MockDialerActivity.java': No such file or directory
[338/1046] including ./external/toybox/Android.mk ...
awk: line 1: syntax error at or near ,
[370/1046] including ./frameworks/av/media/libaaudio/Android.mk ...
frameworks/av/media/libaaudio/examples/input_monitor/static/Android.mk: warning: input_monitor: unusual tags examples
frameworks/av/media/libaaudio/examples/write_sine/static/Android.mk: warning: write_sine: unusual tags examples
[404/1046] including ./frameworks/base/Android.mk ...
./frameworks/base/Android.mk:866: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:875: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:880: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:885: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
[442/1046] including ./frameworks/opt/hardware/Android.mk ...
./frameworks/opt/hardware/Android.mk:21: warning: FindEmulator: find: `hardware/cyanogen/cmhw': No such file or directory
[576/1046] including ./hardware/qcom/wlan-caf/Android.mk ...
build/core/binary.mk:39: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
build/core/binary.mk:39: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
[581/1046] including ./lineage-sdk/Android.mk ...
./lineage-sdk/Android.mk:152: warning: FindEmulator: find: `lineage-sdk/dummy': No such file or directory
build/core/droiddoc.mk:132: warning: FindEmulator: find: `build/tools/droiddoc/templates-sdk': No such file or directory
[752/1046] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:95: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1046/1046] including ./vendor/qcom/opensource/dataservices/Android.mk ...
build/core/Makefile:54: warning: Duplicate header copy: /home/flagers/android/lineage15/out/target/product/owens/obj/include/cld80211-lib/cld80211_lib.h
build/core/Makefile:54: warning: Defined in: hardware/qcom/wlan-caf/cld80211-lib/Android.mk hardware/qcom/wlan-caf/cld80211-lib/Android.mk
No private recovery resources for TARGET_DEVICE owens
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
./test/vts/utils/python/archive/Android.mk:28: warning: overriding commands for target `default'
./test/vts/runners/host/tcp_server/Android.mk:19: warning: ignoring old commands for target `default'
./test/vts/utils/python/coverage/Android.mk:28: warning: overriding commands for target `default'
./test/vts/utils/python/archive/Android.mk:28: warning: ignoring old commands for target `default'
[ 0% 16/64099] target thumb C: libtar <= external/libtar/lib/handle.c
external/libtar/lib/handle.c:35:19: warning: unused parameter 'mode' [-Wunused-parameter]
int oflags, int mode, int options)
^
1 warning generated.
[ 0% 29/64099] target thumb C++: libi...motorola/qcom318-32/init/init_moto.cpp
FAILED: /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -I device/motorola/qcom318-32/include -I system/core/init -I device/motorola/qcom318-32/init -I /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates -I /home/flagers/android/lineage15/out/target/product/owens/gen/STATIC_LIBRARIES/libinit_moto_intermediates -I libnativehelper/include/nativehelper \$(cat /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_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 -isystem frameworks/av/include -isystem /home/flagers/android/lineage15/out/target/product/owens/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/uapi -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-a7 -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 -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Wall -DANDROID_TARGET="msm8937" -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.d -o /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o device/motorola/qcom318-32/init/init_moto.cpp"
In file included from device/motorola/qcom318-32/init/init_moto.cpp:34:
system/core/init/log.h:20:10: fatal error: 'android-base/logging.h' file not found
#include <android-base/logging.h>
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[ 0% 34/64099] Building Kernel Config
make: Entering directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
make[1]: Entering directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
GEN ./Makefile
#
# configuration written to .config
#
make[1]: Leaving directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
make: Leaving directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
make: Entering directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
make[1]: Entering directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
GEN ./Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
make[1]: Leaving directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
make: Leaving directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
ninja: build stopped: subcommand failed.
20:26:02 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
make: Leaving directory '/home/flagers/android/lineage15'
#### make failed to build some targets (08:34 (mm:ss)) ####
FlagersXDA said:
Soooo, this is what happens when I try to build Lineage 15.0. It fails to build the kernel, can someone please help.
[ 0% 29/64099] target thumb C++: libi...motorola/qcom318-32/init/init_moto.cpp
FAILED: /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -I device/motorola/qcom318-32/include -I system/core/init -I device/motorola/qcom318-32/init -I /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates -I /home/flagers/android/lineage15/out/target/product/owens/gen/STATIC_LIBRARIES/libinit_moto_intermediates -I libnativehelper/include/nativehelper \$(cat /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_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 -isystem frameworks/av/include -isystem /home/flagers/android/lineage15/out/target/product/owens/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/uapi -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-a7 -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 -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Wall -DANDROID_TARGET="msm8937" -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.d -o /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o device/motorola/qcom318-32/init/init_moto.cpp"
In file included from device/motorola/qcom318-32/init/init_moto.cpp:34:
system/core/init/log.h:20:10: fatal error: 'android-base/logging.h' file not found
#include <android-base/logging.h>
^~~~~~~~~~~~~~~~~~~~~~~~
Click to expand...
Click to collapse
the only reason it says failed to build the kernel is because another error stopped the build and the kernel was being built on another thread and also failed as a result of the error. I quoted the part with the actual error (click on it to see it). It is from the init.moto.cpp looking for a file android-base/logging.h that is not there. Probably due to the changes from N to O.
Code:
#include "log.h"
#include "util.h"
Remove these lines from init_moto.cpp
Also.. this was a simple ass issue to fix. I don't mean to be rude, but please take the time to take a closer look at the logs when it fails. It should have "FAILED" where the problem really is most of the time. Then you can take a look at one of the lineage 15 repositories from another phone and see what the differences are to help you fix it if it isn't obvious. (And in this case, this one was obvious)
Even if you can get it to build that doesn't mean things are going to work 100% either (It probably won't even boot without the required changes being made). I'm sure there are a lot of changes that need to be made, like compiling a lot of the drivers from caf source and stuff like that; like those that were mentioned elsewhere.
Next time I'll read the logs more thoroughly rather then skimming them.
FlagersXDA said:
Next time I'll read the logs more thoroughly rather then skimming them.
Click to expand...
Click to collapse
All good. The beginning of wisdom is knowing what you don't know. And thanks for your efforts.
FlagersXDA said:
Next time I'll read the logs more thoroughly rather then skimming them.
Click to expand...
Click to collapse
Please stop posting about building this in another ROM thread that it has nothing to do with. It is against the rules, and rude to the OP of the thread. You have a thread here now for your topic, please keep your questions for this topic here. You might want to actually read the XDA rules. One last thing. You cannot build Nougat or Oreo with 4gb of ram. It's damn near impossible without at least 8gb and at least the same size swap space. Make sure you crank up the swappiness. There are a few tricks you can do to help, just Google your problem and you'll find some tips on that.
Edit: read this: http://www.2net.co.uk/blog/jack-server.html
Sent from my Moto E (4) Plus using XDA Labs
Goose03 said:
Please stop posting about building this in another ROM thread that it has nothing to do with. It is against the rules, and rude to the OP of the thread. You have a thread here now for your topic, please keep your questions for this topic here. You might want to actually read the XDA rules. One last thing. You cannot build Nougat or Oreo with 4gb of ram. It's damn near impossible without at least 8gb and at least the same size swap space. Make sure you crank up the swappiness. There are a few tricks you can do to help, just Google your problem and you'll find some tips on that.
Edit: read this: http://www.2net.co.uk/blog/jack-server.html
Sent from my Moto E (4) Plus using XDA Labs
Click to expand...
Click to collapse
lmao this didn't age well