summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-03-16 12:06:09 -0700
committerKhem Raj <raj.khem@gmail.com>2024-03-17 18:23:02 -0700
commit6d9819258cde9ff5579242fad41c50503dde08fd (patch)
tree0de3233aff1fa3502c04e1ae1e149ab2fb92ceea
parent03130b5d2831bfdead4cbf960dc7b84c59676db6 (diff)
downloadmeta-clang-6d9819258cde9ff5579242fad41c50503dde08fd.tar.gz
gtk4: Compile with gcc for musl/x86_64
There is a gir generation error when compiled with clang | /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/gtk4/4.12.5/recipe-sysroot/usr/include/glib-2.0/gobject/gobject.h:822: syntax error, unexpected INTEGER, expecting identifier in ' do { if (__builtin_expect (__extension__ ({ int G_PASTE (_g_boolean_var_, 9); if ((weak_pointer) == ((void*)0)) G_PASTE (_g_boolean_var_, 9) = 1; else G_PASTE (_g_boolean_var_, 9) = 0; G_PASTE (_ g_boolean_var_, 9); }), 1)) ; else g_assertion_message (((gchar*) 0), "/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/gtk4/4.12.5/recipe-sysroot/usr/include/glib-2.0/gobject/gobject.h ", 822, ((const char*) (__func__)), "'" "weak_pointer" "' should be NULL"); } while (0);' at '9' | /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/gtk4/4.12.5/recipe-sysroot/usr/include/glib-2.0/gobject/gobject.h:822: syntax error, unexpected ')', expecting identifier or '(' in ' do { if (__builtin_expect (__extension__ ({ int G_PASTE (_g_boolean_var_, 9); if ((weak_pointer) == ((void*)0)) G_PASTE (_g_boolean_var_, 9) = 1; else G_PASTE (_g_boolean_var_, 9) = 0; G_PASTE (_g_boolean_var_, 9); }), 1)) ; else g_assertion_message (((gchar*) 0), "/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/gtk4/4.12.5/recipe-sysroot/usr/include/glib-2.0/gobject/gobjec t.h", 822, ((const char*) (__func__)), "'" "weak_pointer" "' should be NULL"); } while (0);' at ')' | Error relocating /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/gtk4/4.12.5/build/gtk/libgtk-4.so.1: unsupported relocation type 37 | Error relocating /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/gtk4/4.12.5/build/gtk/libgtk-4.so.1: unsupported relocation type 37 | Error relocating /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/gtk4/4.12.5/build/gtk/libgtk-4.so.1: unsupported relocation type 37 | If the above error message is about missing .so libraries, then setting up GIR_EXTRA_LIBS_PATH in the recipe should help. | (typically like this: GIR_EXTRA_LIBS_PATH="${B}/something/.libs" ) Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--conf/nonclangable.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf
index e488161..af38ae7 100644
--- a/conf/nonclangable.conf
+++ b/conf/nonclangable.conf
@@ -1,6 +1,10 @@
1# https://github.com/llvm/llvm-project/issues/78337 1# https://github.com/llvm/llvm-project/issues/78337
2TOOLCHAIN:pn-kernel-selftest = "gcc" 2TOOLCHAIN:pn-kernel-selftest = "gcc"
3 3
4# x86_64/musl build fails with
5# gtk4/4.12.5/build/gtk/libgtk-4.so.1: unsupported relocation type 37
6TOOLCHAIN:pn-gtk4:libc-musl:x86-64 = "gcc"
7
4TOOLCHAIN:pn-cpufrequtils = "gcc" 8TOOLCHAIN:pn-cpufrequtils = "gcc"
5 9
6TOOLCHAIN:pn-grub:genericx86-64 = "gcc" 10TOOLCHAIN:pn-grub:genericx86-64 = "gcc"