Giter Site home page Giter Site logo

android_vendor_superior's People

Contributors

adriandc avatar aleasto avatar arco avatar aviraxp avatar bgcngm avatar chirayudesai avatar ciwrl avatar ctso avatar defer avatar hyperb1iss avatar intervigilium avatar invisiblek avatar javelinanddart avatar kali- avatar kalimochoaz avatar kmobs avatar koush avatar luca020400 avatar luk1337 avatar merudo avatar mikeng avatar moetayuko avatar npjohnson avatar rashed97 avatar rmcc avatar ryzenforce990 avatar webgeek1234 avatar wesgarner avatar zvnexus avatar zwliew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

android_vendor_superior's Issues

Failed to generate kernel headers on thirteen branch

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.

error: vendor/superior/build/soong/Android.bp:24:8: module "generated_kernel_includes": cmd: unknown variable '$(PATH_OVERRIDE_SOONG)'

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?

Issue with the vendor superior

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.