summaryrefslogtreecommitdiffstats
path: root/conf/nonclangable.conf
Commit message (Collapse)AuthorAgeFilesLines
* frame: Use --undefined-version with lldKhem Raj2024-05-041-0/+1
| | | | | | | | | | | | | | | | | | symbol version script adds some X11 symbols which lld complains about since default is to report undefined symbols with lld. Fixes | x86_64-yoe-linux-ld.lld: error: version script assignment of 'FRAME_2.2' to symbol 'frame_x11_new' failed: symbol not defined | x86_64-yoe-linux-ld.lld: error: version script assignment of 'FRAME_2.2' to symbol 'frame_x11_delete' failed: symbol not defined | x86_64-yoe-linux-ld.lld: error: version script assignment of 'FRAME_2.2' to symbol 'frame_x11_process_event' failed: symbol not defined | x86_64-yoe-linux-ld.lld: error: version script assignment of 'FRAME_2.2' to symbol 'frame_x11_accept_touch' failed: symbol not defined | x86_64-yoe-linux-ld.lld: error: version script assignment of 'FRAME_2.2' to symbol 'frame_x11_reject_touch' failed: symbol not defined | x86_64-yoe-linux-ld.lld: error: version script assignment of 'FRAME_2.2' to symbol 'frame_x11_get_window_id' failed: symbol not defined | x86_64-yoe-linux-ld.lld: error: version script assignment of 'FRAME_2.2' to symbol 'frame_x11_create_window_id' failed: symbol not defined | x86_64-yoe-linux-ld.lld: error: version script assignment of 'FRAME_2.2' to symbol 'frame_x11_get_touch_id' failed: symbol not defined | x86_64-yoe-linux-ld.lld: error: version script assignment of 'FRAME_2.2' to symbol 'frame_x11_create_touch_id' failed: symbol not defined Signed-off-by: Khem Raj <raj.khem@gmail.com>
* uftrace: Do not use internal clang assemblerKhem Raj2024-03-271-0/+3
| | | | | | This expects GNU assembler I guess. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* wtmpdb: Do not pin linker to BFD linkerKhem Raj2024-03-271-3/+2
| | | | | | Newer version seems to work ok with lld with undefined symbols allowed Signed-off-by: Khem Raj <raj.khem@gmail.com>
* liburing: Use --undefined-version with lldKhem Raj2024-03-241-0/+1
| | | | | | | 2.5+ does not link with lld as it has some linker script magic for versioned symbols Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Revert "nonclangable: elfuitls: add unused-const-variable fix"Jose Quaresma2024-03-211-2/+0
| | | | | | | | This reverts commit 81e5f4eef93b5e1d6507daaf74fce28a2ccd7cf7. It is merged in oe-core master Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
* nonclangable: elfuitls: add unused-const-variable fixJose Quaresma2024-03-191-0/+2
| | | | Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
* nonclangable: elfuitls: drop unused-private-field fixJose Quaresma2024-03-191-2/+0
| | | | | | It is merged in oe-core master Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
* gtk4: Compile with gcc for musl/x86_64Khem Raj2024-03-171-0/+4
| | | | | | | | | | | | | | | | | | | | 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>
* elfuitls: Use libstdc++ instead of libc++ when using clangKhem Raj2024-03-131-3/+4
| | | | | | | | This avoids/workarounds a libc++ and clang include issue as reported in https://github.com/llvm/llvm-project/issues/71925#issuecomment-1987141438 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lksctp-tools: Reset SECURITY_STACK_PROTECTOR with clangKhem Raj2024-03-061-0/+3
| | | | | | | | one of the test case test_connectx segfaults as the .so built with -fstack-protector-strong seems to not work properly when compiled with clang18 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* vulkan-samples: Disable deprecated declaration warnings with libc++Khem Raj2024-03-061-1/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: Use gcc for now.Khem Raj2024-03-061-0/+3
| | | | | | clang-18 crashes, so use gcc until then Signed-off-by: Khem Raj <raj.khem@gmail.com>
* optee-os: Use gcc instead of clang-18Khem Raj2024-03-061-0/+6
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openldap: Fix build with lld linkerKhem Raj2024-03-031-0/+1
| | | | | | | Fixes aarch64-yoe-linux-ld.lld: error: version script assignment of 'OPENLDAP_2.200' to symbol 'ldap_host_connected_to' failed: symbol not defined /error: [1/17] Signed-off-by: Khem Raj <raj.khem@gmail.com>
* dav1d: Use GNU assembler for asm filesKhem Raj2024-02-211-0/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* ndctl: Add --undefined-version with lldKhem Raj2024-01-261-0/+1
| | | | | | | This fails to build otherwise x86_64-yoe-linux-ld.lld: error: version script assignment of 'LIBCXL_3' to symbol 'cxl_mapping_get_region' failed: symbol not defined Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-kivy: Disable incompatible-function-pointer-types warning as errorKhem Raj2024-01-121-0/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-lxml: Disable incompatible-function-pointer-types warning as errorKhem Raj2024-01-121-0/+6
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openssh: Enable to build it with clang againKhem Raj2023-12-211-3/+0
| | | | | | Clang-17 is good to build it, it had issues with clang-15 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Revert "openssh: Enable to build it with clang again"Khem Raj2023-12-031-0/+3
| | | | This reverts commit 89db18e81d78ba9756af04ec4e13d29082948207.
* openssh: Enable to build it with clang againKhem Raj2023-12-031-3/+0
| | | | | | Clang-17 is good to build it, it had issues with clang-15 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mesa-gl: Use -Wl,--undefined-version with LLDKhem Raj2023-11-201-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Make tegra specific packages only for tegraJose Quaresma2023-11-101-7/+7
| | | | | | | The optee-os and optee-os-tadevkit are available not only for tegra so it should be better to use a `:tegra` machine override there for all of them. Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
* nonclangable: Add some tegra specific packagesKhem Raj2023-11-091-0/+9
| | | | | | They are not portable yet and assume gcc so give it to them Signed-off-by: Khem Raj <raj.khem@gmail.com>
* vboxguestdrivers: use gcc toolchainMingli Yu2023-11-021-0/+2
| | | | Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
* kernel-selftest: Fix build with lld and clang on x86Khem Raj2023-10-051-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcgroup: Use --undefined-version with lld on sysvinitKhem Raj2023-10-021-0/+1
| | | | | | | | | | | These functions are unconditionally added to libcgroup.map Fixes aarch64-yoe-linux-musl-ld.lld: error: version script assignment of 'CGROUP_3.0' to symbol 'cgroup_create_scope' failed: symbol not defined aarch64-yoe-linux-musl-ld.lld: error: version script assignment of 'CGROUP_3.0' to symbol 'cgroup_set_default_scope_opts' failed: symbol not defined aarch64-yoe-linux-musl-ld.lld: error: version script assignment of 'CGROUP_3.0' to symbol 'cgroup_create_scope2' failed: symbol not defined aarch64-yoe-linux-musl-ld.lld: error: version script assignment of 'CGROUP_3.0' to symbol 'cgroup_write_systemd_default_cgroup' failed: symbol not defined Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Adjust for glibc-tests -> glibc-y2038-tests renameKhem Raj2023-09-251-1/+1
| | | | | | | This recipe got renamed in oe-core, it still is glibc based and can not be built with clang yet Signed-off-by: Khem Raj <raj.khem@gmail.com>
* go-runtime: Do not use LLD linkerKhem Raj2023-09-191-0/+2
| | | | | | | It ends up with go linker crashes later in influxdb e.g. but many other go apps get the same issue. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* pmdk: Default back to allowing undefined-version with lldKhem Raj2023-09-191-0/+1
| | | | | | | Fixes | x86_64-yoe-linux-ld.lld: error: version script assignment of 'LIBPMEM2_1.0' to symbol 'pmem2_source_from_handle' failed: symbol not defined Signed-off-by: Khem Raj <raj.khem@gmail.com>
* wtmpdb,-aufs-util,lastlog2: Use BFD linker when system linker is lldKhem Raj2023-09-191-0/+11
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* apt: Do not use libc++ runtime for nowKhem Raj2023-09-191-0/+4
| | | | | | | With clang17, it does not work with libc++ headers, until its fixed use libstdc++ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libfaketime: Use BFD linker when LLD is system defaultKhem Raj2023-08-281-1/+3
| | | | | | | It uses symbol versioning like xyz@@ which lld does not like see https://github.com/llvm/llvm-project/issues/65017 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libfaketime: Add -Wl,--undefined-version with lldKhem Raj2023-08-251-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* go-runtime: Use BFD linker when LLD is default system linker on aarch64Khem Raj2023-08-221-0/+5
| | | | | | | go linker is not able to link subsequent binaries e.g. gosu with lld produced libstd.so and crashes. This is just seen on arm64 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* gtk4: Disable integer conversion warning as errorKhem Raj2023-08-191-0/+3
| | | | | | | | clang 15+ has started to treated int-conversion as error and pipeline cache code added snippets[1] in gtk4 which causes this error [1] https://gitlab.gnome.org/GNOME/gtk/-/commit/684a015c9852ede9d57103852217b428546fe472 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable.conf: fix systemd efi buildJose Quaresma2023-08-121-0/+5
| | | | | | | | | - systemd-boot have it fixed on recipe but as it a clang issue it's better to move it here - systemd needs it when build with efi package config enabled since v254 Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
* qtbase: Do not use internal assembler with clangKhem Raj2023-08-071-0/+7
| | | | | | | This ends up with compile errors when using clang compiler, therefore internal assembler is disabled with qt6 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* gnu-efi: Always use BFD ld and gnu objcopyKhem Raj2023-08-051-1/+3
| | | | | | Doesnt build with lld and llvm objcopy Signed-off-by: Khem Raj <raj.khem@gmail.com>
* elfutils: Use --undefined-version when using lldKhem Raj2023-08-051-0/+1
| | | | | | | Fixes | x86_64-yoe-linux-musl-ld.lld: error: version script assignment of 'ELFUTILS_1.0' to symbol 'elf_scncnt' failed: symbol not defined Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libffi: Add --undefined-version to lld on armKhem Raj2023-08-011-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* gnu-efi: Do not use clang internal assemblerKhem Raj2023-08-011-0/+9
| | | | | | New .s files can not be compiled with it, it has gnu flavors Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libffi: Use --undefined-version with lldKhem Raj2023-07-271-0/+1
| | | | | | | | | i686-yoe-linux-ld.lld: error: version script assignment of 'LIBFFI_BASE_8.0' to symbol 'ffi_java_raw_call' failed: symbol not defined i686-yoe-linux-ld.lld: error: version script assignment of 'LIBFFI_CLOSURE_8.0' to symbol 'ffi_prep_java_raw_closure' failed: symbol not defined i686-yoe-linux-ld.lld: error: version script assignment of 'LIBFFI_CLOSURE_8.0' to symbol 'ffi_prep_java_raw_closure_loc' failed: symbol not defined libtool: link: ( cd ".libs" && rm -f "libffi_convenience.la" && ln -s "../libffi_convenience.la" "libffi_convenience.la" ) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* systemd,cairo,ruby: Do not use --no-warn-rwx-segment with lldKhem Raj2023-07-271-3/+3
| | | | | | | This option is GNU linker specific and lld is not emitting this warning anyway Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nvme: Use -Wl,--undefined-version with lldKhem Raj2023-07-271-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Add -Wl,--undefined-version when using lldKhem Raj2023-07-251-0/+100
| | | | | | | | lld does not default to --undefined-version anymore starting with 17.x specifically, this just means we turn on bfd linker compatible link mode for these recipes, which should otherwise be fixed Signed-off-by: Khem Raj <raj.khem@gmail.com>
* babeltrace2: Ignore textrels with lldKhem Raj2023-07-141-0/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nmap: Use -N option to link when using lld on rv64Khem Raj2023-06-181-1/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* ffmpeg: Enable zbb manip extensions for rv32/rv64Khem Raj2023-05-211-0/+3
| | | | | | | | | | | | | | | | | | This is required with clang after the assembly file is added which uses these instructions. it works with gcc because it uses .option directive to enable zbb extentions in toolchain on the fly clang does not have similar option | <instantiation>:6:21: warning: unknown option, expected 'push', 'pop', 'rvc', 'norvc', 'relax' or 'norelax' | .option arch, +zbb This fixes | src/libavcodec/riscv/bswapdsp_rvb.S:61:9: error: instruction requires the following: 'Zbb' (Basic Bit-Manipulation) or 'Zbkb' (Bitmanip instructions for Cryptography) | rev8 t0, t0 | ^ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* btrfs-tools: Error out on x86 options on non-x86 archesKhem Raj2023-05-111-0/+2
| | | | | | | | e.g. -msha will otherwise be deemed available when using clang which is not correct, therefore treat unused-command-line-argument as error which will be flagged on non-x86 arches Signed-off-by: Khem Raj <raj.khem@gmail.com>