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

GCC unknown type [0x13] section `.relr.dyn' when building #16

Open
AirLi1507 opened this issue Dec 14, 2024 · 0 comments
Open

GCC unknown type [0x13] section `.relr.dyn' when building #16

AirLi1507 opened this issue Dec 14, 2024 · 0 comments

Comments

@AirLi1507
Copy link

Please contains the following information 请包含以下信息:

  1. Which kernel build you are using 你正在用的内核版本日期 android14-lineage21-mod
  2. Your phone model 你的机型 enuma
  3. Android & ROM version 13
bash build.sh enuma                                                                                                                                                                                                             
TOOLCHAIN_PATH: [/home/air1507/proton-clang/proton-clang-20210522/bin]
CCACHE_DIR: [/home/air1507/.cache/ccache_mikernel]
[clang --version]:
Proton clang version 13.0.0 (https://github.com/llvm/llvm-project b4fd512c36ca344a3ff69350219e8b0a67e9472a)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/air1507/proton-clang/proton-clang-20210522/bin
TARGET_DEVICE: enuma
KSU is disabled
Cleaning...
Clone AnyKernel3 for packing kernel (repo: https://github.com/liyafe1997/AnyKernel3)
Cloning into 'anykernel'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 26 (delta 0), reused 20 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (26/26), 1.77 MiB | 7.17 MiB/s, done.
Building for AOSP......
  HOSTCC  scripts/basic/fixdep
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../lib/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../lib/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /lib/../lib/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /lib/../lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /usr/lib/../lib/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /usr/lib/../lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /lib64/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /lib64/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /usr/lib64/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /usr/lib64/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /lib/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /usr/lib/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: cannot find libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../lib/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /lib/../lib/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /lib/../lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /usr/lib/../lib/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /usr/lib/../lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /lib64/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /lib64/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /usr/lib64/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /usr/lib64/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /lib/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: /usr/lib/libgcc_s.so.1: unknown type [0x13] section `.relr.dyn'
/home/air1507/proton-clang/proton-clang-20210522/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:90: scripts/basic/fixdep] Error 1
make[1]: *** [/home/air1507/kernel/1_percent/kernel_xiaomi_sm8250_mod/Makefile:492: scripts_basic] Error 2
make: *** [Makefile:153: sub-make] Error 2

I know the kernel is "android14" but I'm just trying to build it for ArrowOS android 13 to see if it fix the problems I had previously.
The host system I tried to build it is Arch Linux, I also tried to build it in ubuntu:latest docker container, but the same result as above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant