superioros / android_vendor_superior Goto Github PK
View Code? Open in Web Editor NEWOur Junkyard.. ๐
Our Junkyard.. ๐
I am building unofficially Superior OS for RMX1851 (Realme 3 Pro with sdm710 chipset). I am using thirteen branch.
This is the device tree used
This is the kernel tree used
This is the device vendor tree used
Getting this strange error.
The failing command was run inside an sbox sandbox in temporary directory.
Upon investigation, found that some shell commands are not running correctly and its improper in the sandbox environment.
[ 0% 189/84528] //vendor/superior/build/soong:generated_kernel_includes generate
FAILED: /mnt/data/sos13/out/soong/.intermediates/vendor/superior/build/soong/generated_kernel_includes/gen/.dummy_dep
/mnt/data/sos13/out/host/linux-x86/bin/sbox --sandbox-path /mnt/data/sos13/out/soong/.temp --output-dir /mnt/data/sos13/out/soong/.intermediates/v
endor/superior/build/soong/generated_kernel_includes/gen --manifest /mnt/data/sos13/out/soong/generator
The failing command was run inside an sbox sandbox in temporary directory
/mnt/data/sos13/out/soong/.temp/sbox/5368bc7f4bb5692e08f159ae80248e321c46a584
The failing command line can be found in
/mnt/data/sos13/out/soong/.temp/sbox/5368bc7f4bb5692e08f159ae80248e321c46a584/sbox_command.0.bash
/mnt/data/sos13/out/soong/.temp/sbox/5368bc7f4bb5692e08f159ae80248e321c46a584/sbox_command.0.bash: line 1: syntax error near unexpected token `&&'
/mnt/data/sos13/out/soong/.temp/sbox/5368bc7f4bb5692e08f159ae80248e321c46a584/sbox_command.0.bash: line 1: ` && touch /mnt/data/sos13/out/soong/.t
emp/sbox/5368bc7f4bb5692e08f159ae80248e321c46a584/out/.dummy_dep'
exit status 2
[ 0% 197/84528] //frameworks/compile/slang/BitWriter_3_2:libLLVMBitWriter_3_2 clang++ BitcodeWriter.cpp [linux_glibc]
frameworks/compile/slang/BitWriter_3_2/BitcodeWriter.cpp:646:12: warning: variable 'MDLocationAbbrev' set but not used [-Wunused-but-set-variable]
unsigned MDLocationAbbrev = 0;
^
1 warning generated.
[ 0% 198/84528] //frameworks/compile/slang/BitWriter_3_2:libLLVMBitWriter_3_2 clang++ BitcodeWriter.cpp [arm]
frameworks/compile/slang/BitWriter_3_2/BitcodeWriter.cpp:646:12: warning: variable 'MDLocationAbbrev' set but not used [-Wunused-but-set-variable]
unsigned MDLocationAbbrev = 0;
^
1 warning generated.
09:19:16 ninja failed with: exit status 1
#### failed to build some targets (01:22 (mm:ss)) ####
Getting this error while building. I checked this issue tread but all the kernel commits already present in my kernel tree/source. Still getting the error.
I was unable to figure out the solution.
Anyone faced this issue? Help would be appreciated.
Not specifying a value after the -j argument will cause the kernel compilation chain to generate an infinite number of processes.
https://github.com/SuperiorOS/android_vendor_superior/blob/ten/config/BoardConfigKernel.mk#L109
The following settings should be used:
KERNEL_MAKE_FLAGS += -j$(shell nproc --all)
I am building unofficially Superior OS for RMX1851 (Realme 3 Pro with sdm710 chipset). I am using thirteen branch.
Device tree used: https://github.com/VTVishwanath/superior_device_realme_RMX1851
Kernel tree used: https://github.com/Cykeek/kernel_realme_sdm710 -b A13 kernel/realme/sdm710
Device vendor tree used: https://github.com/ArrowOS-Devices/android_vendor_realme_RMX1851
I get below error.
[100% 1/1] analyzing Android.bp files and generating ninja file at /mnt/data/sos13/out/soong/build.ninja
FAILED: /mnt/data/sos13/out/soong/build.ninja
cd "$(dirname "/mnt/data/sos13/out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "/mnt/data/sos13/out/host/linux-x86/bin/soong_bui
ld")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "/mnt/data/sos13/out/soong" --out "/mnt/data/sos13/out" -o /mnt/data/
sos13/out/soong/build.ninja --globListDir build --globFile /mnt/data/sos13/out/soong/globs-build.ninja -t -l /mnt/data/sos13/out/.module_paths/And
roid.bp.list --available_env /mnt/data/sos13/out/soong/soong.environment.available --used_env /mnt/data/sos13/out/soong/soong.environment.used.bui
ld Android.bp
error: vendor/superior/build/soong/Android.bp:24:8: module "generated_kernel_includes": cmd: unknown variable '$(PATH_OVERRIDE_SOONG)'
10:48:25 soong bootstrap failed with: exit status 1
#### failed to build some targets (36 seconds) ####
Raised this [PR] (#120) to solve this issue.
But after the code change made which is in the PR [I get another error.] (#122) So, reverted back the [PR] (#120).
Any idea how to fix this? Anyone faced this? What could be the root cause or fix?
I am building unofficially Superior OS for RMX1851 (Realme 3 Pro with sdm710 chipset). I am using thirteen branch.
Device tree used: https://github.com/VTVishwanath/superior_device_realme_RMX1851
Kernel tree used: https://github.com/Cykeek/kernel_realme_sdm710 -b A13 kernel/realme/sdm710
Device vendor tree used: https://github.com/ArrowOS-Devices/android_vendor_realme_RMX1851
I get below error.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=13
SUPERIOR_VERSION=SuperiorOS-Thirteen-RMX1851-COMMUNITY-20231113-0813
TARGET_PRODUCT=lineage_RMX1851
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-2a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_OS=linux
BUILD_ID=TQ3A.230901.001
OUT_DIR=/mnt/data/sos13/out
PRODUCT_SOONG_NAMESPACES=vendor/realme/RMX1851 device/realme/RMX1851
============================================
$(shell date -u '+%Y%m%d-%H%M') was changed, regenerating...
FAILED: ninja: 'kernel/realme/sdm710/arch/configs/lineageos_RMX1851_defconfig', needed by '/mnt/data/sos13/out/target/product/RMX1851/obj/KERNEL_O
BJ/.config', missing and no known rule to make it
08:14:31 ninja failed with: exit status 1
#### failed to build some targets (01:31 (mm:ss)) ####
Upon investigation, I found out that KERNEL_ARCH variable not getting set properly.
Then I added below line of code to vendor/superior/build/tasks/kernel.mk file at the beginning from the vendor/superior/config/BoardConfigKernel.mk
TARGET_KERNEL_ARCH := $(strip $(TARGET_KERNEL_ARCH))
ifeq ($(TARGET_KERNEL_ARCH),)
KERNEL_ARCH := $(TARGET_ARCH)
else
KERNEL_ARCH := $(TARGET_KERNEL_ARCH)
endif
After this I am getting different error. Which is below.
[ 1% 2712/142580] Building Kernel Config
FAILED: /mnt/data/sos13/out/target/product/RMX1851/obj/KERNEL_OBJ/.config
/bin/bash -c "(PATH=/mnt/data/sos13/out/host/linux-x86/bin:\$PATH PATH=/mnt/data/sos13/prebuilts/clang/host/linux-x86/proton-clang/bin:\$PATH LD_L
IBRARY_PATH=/mnt/data/sos13/prebuilts/clang/host/linux-x86/proton-clang/lib64:\$LD_LIBRARY_PATH PATH=:\$PATH DTC_EXT=/mnt/data/sos13/out/host/li
nux-x86/bin/dtc HOSTCFLAGS=\"-fuse-ld=lld -Wno-unused-command-line-argument\" -C kernel/realme/sdm710 O=/mnt/data/sos13/out/target/product/RMX1851
/obj/KERNEL_OBJ ARCH=arm64 CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= lineageos_RMX1851_defconfig ) &&
(if [ \"\" = \"none\" ]; then kernel/realme/sdm710/scripts/config --file /mnt/data/sos13/out/target/product/RMX1851/obj/KERNEL_OBJ/.config -d LTO_
CLANG -e LTO_NONE -d LTO_CLANG_THIN -d LTO_CLANG_FULL -d THINLTO; PATH=/mnt/data/sos13/out/host/linux-x86/bin:\$PATH PATH=/mnt/data/sos13/prebuilt
s/clang/host/linux-x86/proton-clang/bin:\$PATH LD_LIBRARY_PATH=/mnt/data/sos13/prebuilts/clang/host/linux-x86/proton-clang/lib64:\$LD_LIBRARY_PATH
PATH=:\$PATH DTC_EXT=/mnt/data/sos13/out/host/linux-x86/bin/dtc HOSTCFLAGS=\"-fuse-ld=lld -Wno-unused-command-line-argument\" -C kernel/realme/
sdm710 O=/mnt/data/sos13/out/target/product/RMX1851/obj/KERNEL_OBJ ARCH=arm64 CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" olddefconfig; elif [
\"\" = \"thin\" ]; then kernel/realme/sdm710/scripts/config --file /mnt/data/sos13/out/target/product/RMX1851/obj/KERNEL_OBJ/.config -e LTO_CLANG
-d LTO_NONE -e LTO_CLANG_THIN -d LTO_CLANG_FULL -e THINLTO; PATH=/mnt/data/sos13/out/host/linux-x86/bin:\$PATH PATH=/mnt/data/sos13/prebuilts/cla
ng/host/linux-x86/proton-clang/bin:\$PATH LD_LIBRARY_PATH=/mnt/data/sos13/prebuilts/clang/host/linux-x86/proton-clang/lib64:\$LD_LIBRARY_PATH PATH
=:\$PATH DTC_EXT=/mnt/data/sos13/out/host/linux-x86/bin/dtc HOSTCFLAGS=\"-fuse-ld=lld -Wno-unused-command-line-argument\" -C kernel/realme/sdm71
0 O=/mnt/data/sos13/out/target/product/RMX1851/obj/KERNEL_OBJ ARCH=arm64 CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" olddefconfig; elif [ \"\"
= \"full\" ]; then kernel/realme/sdm710/scripts/config --file /mnt/data/sos13/out/target/product/RMX1851/obj/KERNEL_OBJ/.config -e LTO_CLANG -d L
TO_NONE -d LTO_CLANG_THIN -e LTO_CLANG_FULL -d THINLTO; PATH=/mnt/data/sos13/out/host/linux-x86/bin:\$PATH PATH=/mnt/data/sos13/prebuilts/clang/ho
st/linux-x86/proton-clang/bin:\$PATH LD_LIBRARY_PATH=/mnt/data/sos13/prebuilts/clang/host/linux-x86/proton-clang/lib64:\$LD_LIBRARY_PATH PATH=:\$P
ATH DTC_EXT=/mnt/data/sos13/out/host/linux-x86/bin/dtc HOSTCFLAGS=\"-fuse-ld=lld -Wno-unused-command-line-argument\" -C kernel/realme/sdm710 O=/
mnt/data/sos13/out/target/product/RMX1851/obj/KERNEL_OBJ ARCH=arm64 CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" olddefconfig; fi ) && (if [ !
-z \"\" ]; then echo \"Overriding kernel config with ''\"; echo >> /mnt/data/sos13/out/target/product/RMX1851/obj/KERNEL_OBJ/.config; PATH=/mnt/d
ata/sos13/out/host/linux-x86/bin:\$PATH PATH=/mnt/data/sos13/prebuilts/clang/host/linux-x86/proton-clang/bin:\$PATH LD_LIBRARY_PATH=/mnt/data/sos1
3/prebuilts/clang/host/linux-x86/proton-clang/lib64:\$LD_LIBRARY_PATH PATH=:\$PATH DTC_EXT=/mnt/data/sos13/out/host/linux-x86/bin/dtc HOSTCFLAGS
=\"-fuse-ld=lld -Wno-unused-command-line-argument\" -C kernel/realme/sdm710 O=/mnt/data/sos13/out/target/product/RMX1851/obj/KERNEL_OBJ ARCH=arm64
CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" oldconfig; fi )"
/bin/bash: -C: command not found
08:22:35 ninja failed with: exit status 1
#### failed to build some targets (01:56 (mm:ss)) ####
Upon investigation found that few of the variables used in the vendor/superior/build/tasks/kernel.mk not getting set properly. Variables are empty. Upon further investigation found that vendor/superior/config/BoardConfigKernel.mk file is not getting included or getting executed as this file has all the missing variables and values are set in here. So both errors caused by this.
Any idea how to fix this? Anyone faced this? What could be the root cause or fix?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.