Flipflap build issue - LineageOS Questions & Answers

I have been building Lineage for the HTC One A9 (hiaeuhl) since cyanogenmod shut down. About a week ago I started getting the below error:
Code:
/system/out/target/common/obj/APPS/FlipFlap_intermediates/src/R.stamp || exit 32; done ) && (touch /media/steve/hard_disk/android/system/out/target/common/obj/APPS/FlipFlap_intermediates/src/R.stamp )"
ERROR: resource directory 'packages/apps/FlipFlap/../../../packages/resources/devicesettings/res' does not exist
[ 86% 43518/50094] Building with Jack: /media/steve/hard_disk/android/system/out/target/common/obj/APPS/Dialer_intermediates/with-local/classes.dex
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/media/steve/hard_disk/android/system'
#### make failed to build some targets (02:14:47 (hh:mm:ss)) ####
Any ideas how I can integrate the FlipFlap package or otherwise alleviate? According to wikipedia FlipFlap is a flipcover application developed by the LineageOS team.

Related

compile error ?? help please

target thumb C++: libandroid_servers <= frameworks/base/services/jni/onload.cpp
target thumb C++: libdashplayer <= hardware/qcom/media-caf-new/dashplayer/DashPlayerDecoder.cpp
hardware/qcom/media-caf-new/dashplayer/DashPlayerDecoder.cpp:24:25: fatal error: QCMediaDefs.h: No such file or directory
compilation terminated.
make: *** [/home/subatomicone/android/out/target/product/hlte/obj/SHARED_LIBRARIES/libdashplayer_intermediates/DashPlayerDecoder.o] Error 1
make: *** Waiting for unfinished jobs....
Total time elapsed: 7 minutes (443.808555530 seconds)
this is where it ends building using legacy and for HLTE note 3

Need help for fixing these errors occurred during compiling cm 14

I am compiling cm 14 for core prime ve 3g (sm-g361h).
i am getting these error after executing mka bacon command (i have skipped all log above errors). I am building rom from source first time so i ain't got any clue what this error says (maybe a little bit but that ain't helping).
Code:
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:276: error: method does not override or implement a method from a supertype
@Override
^
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:314: error: method processSolicited in class RIL cannot be applied to given types;
return super.processSolicited(p);
^
required: Parcel,int
found: Parcel
reason: actual and formal argument lists differ in length
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:366: error: method does not override or implement a method from a supertype
@Override
^
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:422: error: method processUnsolicited in class RIL cannot be applied to given types;
super.processUnsolicited(p);
^
required: Parcel,int
found: Parcel
reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
[ 3% 1018/28725] host C++: libLLVMCor...2 <= external/llvm/lib/IR/Function.cpp
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/hamza/cm14'
#### make failed to build some targets (27:37 (mm:ss)) ####
bump

Errors Building LOS15.1: Python or C++ Related?

I am trying to build LineageOS15.1 android rom on my PC in Manjaro KDE x64. I have the aosp-devel and lineageos-devel metapackges installed from aur. I get build errors though. I believe it's because it needs Python2 not Python3, or possibly a different c++ compiler? I believe it's python though. I tried the fix [here](https://wiki.archlinux.org/index.php/Python#Dealing_with_version_problem_in_build_scripts) in the wiki but it doesn't seem to have worked(I have rebooted since then), but still, have issues. Here is the build error:
Code:
SyntaxError: invalid syntax
[ 0% 74/115817] logtags: /media/Wrestling/Android/lineage15.1/out/target/common...va <= frameworks/base/services/core/java/com/android/server/EventLogTags.logtags
FAILED: /[media/Wrestling/Android/lineage15.1/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java](http://media/Wrestling/Android/lineage15.1/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java)
/bin/bash -c "[build/tools/java-event-log-tags.py](http://build/tools/java-event-log-tags.py) -o /[media/Wrestling/Android/lineage15.1/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java](http://media/Wrestling/Android/lineage15.1/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java) frameworks/base/services/core/java/com/android/server/EventLogTags.logtags /[media/Wrestling/Android/lineage15.1/out/target/common/obj/all-event-log-tags.txt](http://media/Wrestling/Android/lineage15.1/out/target/common/obj/all-event-log-tags.txt)"
File "[build/tools/java-event-log-tags.py](http://build/tools/java-event-log-tags.py)", line 39
except getopt.GetoptError, err:
^
SyntaxError: invalid syntax
[ 0% 80/115817] host C++: libadb <= system/core/adb/adb.cpp
ninja: build stopped: subcommand failed.
00:45:04 ninja failed with: exit status 1
#### failed to build some targets (19:54 (mm:ss)) ####
Ok I ended up using pyenv to force Python2 and it worked! New error so I am wondering if I am missing a dependency? https://pastebin.com/knp8D17B
Managed to fix that, new error:
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.14.71-1-MANJARO-x86_64-with-glibc2.4
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM6.171019.030.K1
OUT_DIR=/home/xplorer4x4/EVERT-ROMS/lineage15.1
============================================
ninja: no work to do.
[1/1] /home/xplorer4x4/EVERT-ROMS/lineage15.1/soong/.bootstrap/bin/soong_build /home/xplorer4x4/EVERT-ROMS/lineage15.1/soong/build.ninja
/home/xplorer4x4/EVERT-ROMS/lineage15.1/build-aosp_arm.ninja is missing, regenerating...
[619/1077] including ./packages/apps/WallpaperPicker/Android.mk ...
/bin/bash: line 0: test: -gt: unary operator expected
[745/1077] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:99: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1065/1077] including ./vendor/lineage/bootanimation/Android.mk ...
./vendor/lineage/bootanimation/Android.mk:19: warning: TARGET_SCREEN_WIDTH is not set, using default value: 1080
./vendor/lineage/bootanimation/Android.mk:23: warning: TARGET_SCREEN_HEIGHT is not set, using default value: 1920
[1077/1077] including ./vendor/qcom/opensource/rcs-service/Android.mk ...
PRODUCT_COPY_FILES device/generic/goldfish/fstab.ranchu:root/fstab.ranchu ignored.
PRODUCT_COPY_FILES device/generic/goldfish/fstab.ranchu.early:root/fstab.ranchu.early ignored.
ninja: error: '/.txt', needed by '/home/xplorer4x4/EVERT-ROMS/lineage15.1/target/common/obj/PACKAGING/checkpublicapi-lineage-last-timestamp', missing and no known rule to make it
22:34:50 ninja failed with: exit status 1
make: *** [build/core/main.mk:21: run_soong_ui] Error 1
➜ lineage15.1 git:(master) ✗

ninja: build stopped: subcommand failed.

I have been building LineageOS 15.1 for Samsung S6 and S6 Edge for a while without any real issues.
I am using my own 'zero' repo's that are duplicates of the ones available on the official LineageOS github repo with a few local fixes.
My build environment is an Ubuntu 16.04 VM. The build tools recently forced me to upgrade to Python 3.6.3 which I had to install manually.
Since then the build fails whilst compiling the Exynos7420 Kernel. The error message seems to vary but its always at the Exynos7420 kernel part.
I am building with my own certificates so the script is a little different from a standard LineageOS build:
Code:
source build/envsetup.sh
breakfast zeroltexx
mka target-files-package dist otatools
The last lines of the output and the error I got the last time:
Code:
[ 0% 2/93156] Generated: (/home/andy/android...ut/target/product/zeroltexx/android-info.txt)
FAILED: /home/andy/android/lineage/out/target/product/zeroltexx/android-info.txt
/bin/bash -c "(build/tools/check_radio_versions.py ) && (echo \"board=universal7420\" > /home/andy/android/lineage/out/target/product/zeroltexx/android-info.txt )"
File "build/tools/check_radio_versions.py", line 56
print "*** Error opening \"%s.sha1\"; can't verify %s" % (fn, key)
^
SyntaxError: invalid syntax
[ 0% 7/93156] Building Kernel Config
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
GEN /home/andy/android/lineage/out/target/product/zeroltexx/obj/KERNEL_OBJ/Makefile
Kconfig:15:warning: environment variable ANDROID_MAJOR_VERSION undefined
arch/arm64/configs/lineageos_zeroltexx_defconfig:624:warning: override: reassigning to symbol INET_DIAG
#
# configuration written to .config
#
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
GEN /home/andy/android/lineage/out/target/product/zeroltexx/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
Kconfig:15:warning: environment variable ANDROID_MAJOR_VERSION undefined
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
ninja: build stopped: subcommand failed.
19:27:22 ninja failed with: exit status 1
#### failed to build some targets (08:22 (mm:ss)) ####
Any pointers as to how I debug this? It must be something to do with the upgrade to python 3.6.3, however I am not skilled in the arts of scripting...
Cheers
Andy
If I clean everything out of the /out folder and re-run the commands it always fails at the same point:
Code:
FIPS : Generating hmac of fmp and updating vmlinux...
HMAC-SHA256(builtime_bytes.bin)= 5d384fe6b55f757aa0ef31391e8cbb5ffb947cd886235203f2690988f879aec8
FIPS : Generating hmac of crypto and updating vmlinux...
HMAC-SHA256(builtime_bytes.bin)= d6e18e7da3d688cd63ab5598991c05bd4c538f71d383fbe7e9f668f23d1e040a
OBJCOPY arch/arm64/boot/Image
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
Building DTBs
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[2]: Nothing to be done for 'dtbs'.
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
Building Kernel Modules
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
GEN /home/andy/android/lineage/out/target/product/zeroltexx/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
Using /home/andy/android/lineage/kernel/samsung/exynos7420 as source for kernel
CHK include/generated/utsrelease.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
CALL /home/andy/android/lineage/kernel/samsung/exynos7420/scripts/checksyscalls.sh
HOSTLD scripts/mod/modpost
Building modules, stage 2.
MODPOST 0 modules
/home/andy/android/lineage/kernel/samsung/exynos7420/scripts/Makefile.fwinst:45: target '/lib/firmware/tsp_stm/stm_z1.fw' given more than once in the same rule
/home/andy/android/lineage/kernel/samsung/exynos7420/scripts/Makefile.fwinst:45: target '/lib/firmware/abov/abov_valley.fw' given more than once in the same rule
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
ninja: build stopped: subcommand failed.
23:05:52 ninja failed with: exit status 1
#### failed to build some targets (17:53 (mm:ss)) ####
Anyone?
ADB100 said:
If I clean everything out of the /out folder and re-run the commands it always fails at the same point:
Code:
FIPS : Generating hmac of fmp and updating vmlinux...
HMAC-SHA256(builtime_bytes.bin)= 5d384fe6b55f757aa0ef31391e8cbb5ffb947cd886235203f2690988f879aec8
FIPS : Generating hmac of crypto and updating vmlinux...
HMAC-SHA256(builtime_bytes.bin)= d6e18e7da3d688cd63ab5598991c05bd4c538f71d383fbe7e9f668f23d1e040a
OBJCOPY arch/arm64/boot/Image
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
Building DTBs
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[2]: Nothing to be done for 'dtbs'.
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
Building Kernel Modules
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
GEN /home/andy/android/lineage/out/target/product/zeroltexx/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
Using /home/andy/android/lineage/kernel/samsung/exynos7420 as source for kernel
CHK include/generated/utsrelease.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
CALL /home/andy/android/lineage/kernel/samsung/exynos7420/scripts/checksyscalls.sh
HOSTLD scripts/mod/modpost
Building modules, stage 2.
MODPOST 0 modules
/home/andy/android/lineage/kernel/samsung/exynos7420/scripts/Makefile.fwinst:45: target '/lib/firmware/tsp_stm/stm_z1.fw' given more than once in the same rule
/home/andy/android/lineage/kernel/samsung/exynos7420/scripts/Makefile.fwinst:45: target '/lib/firmware/abov/abov_valley.fw' given more than once in the same rule
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
ninja: build stopped: subcommand failed.
23:05:52 ninja failed with: exit status 1
#### failed to build some targets (17:53 (mm:ss)) ####
Anyone?
Click to expand...
Click to collapse
I know it's old, but did you manage to solve it?
I have the same problem

samsung j2lte build error

hi all,
I am building lineageos 14.1 for samsung galaxy j2 aka j2lte. but now after downloading the source i successfully sourced it. while building it says:
/bin/bash: prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++: Permission denied
make: *** [build/kati/Makefile.ckati:90: /mnt/android_devel/android/lineage/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/affinity.o] Error 126
make: Leaving directory '/mnt/android_devel/android/lineage'
#### make failed to build some targets (2 seconds) ####.
I need help.

Categories

Resources