All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix clang build, partially
@ 2022-06-14 13:35 Darren Kenny
  2022-06-14 13:35 ` [PATCH 1/1] gensymlist: fix clang build with exporting of __builtin_trap Darren Kenny
  0 siblings, 1 reply; 6+ messages in thread
From: Darren Kenny @ 2022-06-14 13:35 UTC (permalink / raw)
  To: grub-devel; +Cc: daniel.kiper, darren.kenny

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-07-28 14:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-14 13:35 [PATCH 0/1] Fix clang build, partially Darren Kenny
2022-06-14 13:35 ` [PATCH 1/1] gensymlist: fix clang build with exporting of __builtin_trap Darren Kenny
2022-06-14 16:24   ` Vladimir 'phcoder' Serbinenko
2022-06-14 16:55   ` Vladimir 'phcoder' Serbinenko
2022-06-14 18:18     ` Glenn Washburn
2022-07-28 14:29       ` Darren Kenny

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.