Bug 247678 - libpas pas_generic_large_free_heap.h always_inline failed: undetermined callee
Summary: libpas pas_generic_large_free_heap.h always_inline failed: undetermined callee
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: bmalloc (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
URL:
Keywords: Gtk, InRadar
Depends on:
Blocks:
 
Reported: 2022-11-09 08:11 PST by Dennis Nezic
Modified: 2022-11-16 08:12 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Nezic 2022-11-09 08:11:58 PST
Source/bmalloc/libpas/src/libpas/pas_generic_large_free_heap.h:140: error: inlining failed in call to `always_inline' `pas_generic_large_free_heap_try_allocate_test_allocation_candidate': indirect function call with a yet undetermined callee

I'm building the latest stable tarball 2.38.2, gcc 10.2.0


[92/11676] Building C object Source/bmalloc/CMakeFiles/bmalloc.dir/libpas/src/libpas/pas_fast_large_free_heap.c.o

FAILED: Source/bmalloc/CMakeFiles/bmalloc.dir/libpas/src/libpas/pas_fast_large_free_heap.c.o 

/usr/bin/ccache /usr/bin/cc -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_bmalloc -DBWRAP_EXECUTABLE=\"/usr/bin/bwrap\" -DDBUS_PROXY_EXECUTABLE=\"/usr/bin/xdg-dbus-proxy\" -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DPAS_BMALLOC=1 -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -D_GNU_SOURCE -ISource/bmalloc -I/Source/bmalloc/bmalloc -I/Source/bmalloc/libpas/src/libpas -fdiagnostics-color=always -Wextra -Wall -pipe -Wno-expansion-to-defined -Wno-psabi -Wno-misleading-indentation -Wno-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -march=k8 -mtune=k8 -O -pipe -DNDEBUG -Wl,--no-keep-memory -fno-strict-aliasing -fno-exceptions -fPIC -fvisibility=hidden -Wno-missing-field-initializers -Wno-cast-align -MD -MT Source/bmalloc/CMakeFiles/bmalloc.dir/libpas/src/libpas/pas_fast_large_free_heap.c.o -MF Source/bmalloc/CMakeFiles/bmalloc.dir/libpas/src/libpas/pas_fast_large_free_heap.c.o.d -o Source/bmalloc/CMakeFiles/bmalloc.dir/libpas/src/libpas/pas_fast_large_free_heap.c.o -c /Source/bmalloc/libpas/src/libpas/pas_fast_large_free_heap.c

In file included from Source/bmalloc/libpas/src/libpas/pas_fast_large_free_heap.c:32:

Source/bmalloc/libpas/src/libpas/pas_fast_large_free_heap.c: In function `pas_fast_large_free_heap_try_allocate':

Source/bmalloc/libpas/src/libpas/pas_generic_large_free_heap.h:140:1: error: inlining failed in call to `always_inline' `pas_generic_large_free_heap_try_allocate_test_allocation_candidate': indirect function call with a yet undetermined callee

  140 | pas_generic_large_free_heap_try_allocate_test_allocation_candidate(

      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Source/bmalloc/libpas/src/libpas/pas_fast_large_free_heap.c:151:13: note: called from here

  151 |         if (test_candidate((pas_generic_large_free_cursor*)node, node->free, arg))

      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comment 1 Radar WebKit Bug Importer 2022-11-16 08:12:17 PST
<rdar://problem/102420588>