From b25eccbb8149de9f9c543e109df7592077e4d27c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 15 Sep 2022 21:11:41 -0700 Subject: grub: Use clang to compile it on all except aarch64/riscv It still fails on aarch64 with many errors like | build-grub-module-verifier: error: sleep: unsupported relocation 0x108. Similar reloc errors seen with grub-efi on rv32 as well on rv64 clang crashes :( Signed-off-by: Khem Raj --- conf/nonclangable.conf | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 3581a3a..918d79b 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -1,4 +1,13 @@ TOOLCHAIN:pn-cpufrequtils = "gcc" + +# | grub-mkimage: error: relocation 0x2b is not implemented yet. +TOOLCHAIN:pn-grub-efi:aarch64 = "gcc" +TOOLCHAIN:pn-grub-efi:riscv32 = "gcc" +# clang-15 crashes +TOOLCHAIN:pn-grub-efi:riscv64 = "gcc" +TOOLCHAIN:pn-grub:riscv64 = "gcc" +# | build-grub-module-verifier: error: search_label: unsupported relocation 0x108. +TOOLCHAIN:pn-grub:aarch64 = "gcc" # crash embeds version of gdb which is not buildable with clang TOOLCHAIN:pn-crash = "gcc" # | ../../elfutils-0.187/libasm/asm_newscn.c:49:22: error: field 'pattern' with variable sized type 'struct FillPattern' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end] @@ -16,8 +25,6 @@ TOOLCHAIN:pn-glibc-mtrace = "gcc" TOOLCHAIN:pn-glibc-scripts = "gcc" TOOLCHAIN:pn-glibc-testsuite = "gcc" TOOLCHAIN:pn-glibc-tests = "gcc" -TOOLCHAIN:pn-grub = "gcc" -TOOLCHAIN:pn-grub-efi = "gcc" #| prelink-rtld: error while loading shared libraries: ld.so.1 #| /lib64/ld.so.1: No such file or directory -- cgit v1.2.3-54-g00ecf