Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel build error, any one help? #1

Open
uame426 opened this issue Aug 30, 2022 · 2 comments
Open

kernel build error, any one help? #1

uame426 opened this issue Aug 30, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@uame426
Copy link

uame426 commented Aug 30, 2022

OS: ubuntu 18.04

mkdir -p out
export ARCH=arm64
export SUBARCH=arm64
export DTC_EXT=/Desktop/onePlus10Pro/toolchains/dtc/dtc
export CLANG_PATH=/Desktop/onePlus10Pro/toolchains/clang+llvm-13.0.1-x86_64-linux-gnu-ubuntu-18.04/bin/
export PATH=${CLANG_PATH}:${PATH}
export LLVM=1
export CLANG_TRIPLE=aarch64-linux-gnu-
export CROSS_COMPILE=/Desktop/onePlus10Pro/toolchains/aarch64-linux-android-4.9/bin/aarch64-linux-android-
export CROSS_COMPILE_ARM32=/Desktop/onePlus10Pro/toolchains/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
export LD_LIBRARY_PATH=~/Desktop/onePlus10Pro/toolchains/clang+llvm-13.0.1-x86_64-linux-gnu-ubuntu-18.04/lib:$LD_LIBRARY_PATH
make CC=clang O=out config_oneplus_sm8450_defconfig
make -j$(nproc) CC=clang O=out

The ld error result:
...
CHK include/generated/autoksyms.h
GEN .version
CHK include/generated/compile.h
LD vmlinux.o
MODPOST vmlinux.symvers
MODINFO modules.builtin.modinfo
GEN modules.builtin
LD .tmp_vmlinux.kallsyms1
ld.lld: error: undefined symbol: __stack_chk_guard

referenced by initcall.h:10 (/home/msg/Desktop/onePlus10Pro/Third/android_kernel_oneplus_sm8450/out/../include/trace/events/initcall.h:10)
main.o:(trace_event_raw_event_initcall_level) in archive init/built-in.a
referenced by initcall.h:10 (/home/msg/Desktop/onePlus10Pro/Third/android_kernel_oneplus_sm8450/out/../include/trace/events/initcall.h:10)
main.o:(trace_event_raw_event_initcall_level) in archive init/built-in.a
referenced by initcall.h:10 (/home/msg/Desktop/onePlus10Pro/Third/android_kernel_oneplus_sm8450/out/../include/trace/events/initcall.h:10)
main.o:(trace_event_raw_event_initcall_level) in archive init/built-in.a
referenced 41657 more times

@tangalbert919 tangalbert919 added the bug Something isn't working label Sep 19, 2022
@uame426
Copy link
Author

uame426 commented Sep 22, 2022

Do you use “make” to compile? Is there a description of how to compile or configure? Thanks for any reply.

@Proxy13
Copy link

Proxy13 commented Oct 19, 2022

any updates @uame426 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants