To fix the build with clang, there are 2 parts needed, the first is to get a fix back into gnulib to ensure that the regex code can build, that has been submitted upstream and can be pulled in later since there is now a preference not to have patches held in GRUB's own sources but fix upstream.
But even with that fix, GRUB won't build, and that is because Clang replaces the 'abort()' call with '__builtin_trap', but the abort call is surrounded by an EXPORT_FUNC(), which is valid for GCC. The core of the issue is that the gensymlist script should be filtering out any call starting with '__builtin_', so this patch will add that filter. Thanks, Darren. Darren Kenny (1): gensymlist: fix clang build with exporting of __builtin_trap grub-core/gensymlist.sh | 1 + 1 file changed, 1 insertion(+) -- 2.31.1 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel