On Fri, Jan 23, 2026 at 04:35:59PM +0100, Alberto Garcia wrote:
> On Fri, Jan 23, 2026 at 04:07:06PM +0100, Thomas Klausner wrote:
> > I see core dumps, but they do not help much because the binary is not
> > there after the build, and I can't build with debugging symbols: When
> > I try adding '-g' to the CFLAGS/CXXFLAGS, I get a linker error:
> 
> Does if help if you use -g1 instead ?

No :-(

[8445/8473] Linking CXX shared library lib/libwebkit2gtk-4.1.so.0.19.7
FAILED: [code=1] lib/libwebkit2gtk-4.1.so.0.19.7
: && /tmp/wip/webkit-gtk/work/.cwrapper/bin/c++ -fPIC 
-fdiagnostics-color=always -Wextra -Wall -pipe -fmax-errors=20 -Wno-odr 
-Wno-stringop-overread -Wno-stringop-overflow -Wno-nonnull -Wno-array-bounds 
-Wno-expansion-to-defined -Wno-noexcept-type -Wno-subobject-linkage -Wno-psabi 
-Wno-misleading-indentation -Wno-maybe-uninitialized -Wundef -Wpointer-arith 
-Wmissing-format-attribute -Wformat-security -Wcast-align 
-Wno-tautological-compare -fasynchronous-unwind-tables -O2 
-Wno-unused-parameter -Wno-undef -g1 -DRELEASE_WITHOUT_OPTIMIZATIONS 
-fstack-clash-protection -I/usr/include -I/usr/pkg/include/python3.14 
-I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 
-I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/freetype2 
-I/usr/pkg/include/harfbuzz -I/usr/pkg/include/gstreamer-1.0 
-I/usr/pkg/include/libxml2 -I/usr/pkg/include/libdrm 
-I/usr/pkg/include/gstreamer-1.0 -Wno-unused-parameter -Wno-undef -g1 
-DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=512 
-DSTRUCTURE_HEAP_ADDRESS_SIZE_IN_MB=256 -fno-strict-aliasing -fno-exceptions 
-fno-rtti -fcoroutines -ffunction-sections -fdata-sections -g  -shared 
-Wl,--no-undefined -lexecinfo -Wl,-zrelro -Wl,-znow -L/usr/lib -Wl,-R/usr/lib 
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -latomic -Wl,--gc-sections 
-Wl,--disable-new-dtags  
-Wl,--version-script,/tmp/wip/webkit-gtk/work/webkitgtk-2.50.4/Source/WebKit/webkitglib-symbols.map
  -Wl,-R/usr/pkg/lib 
-Wl,--dependency-file=Source/WebKit/CMakeFiles/WebKit.dir/link.d 
-Wl,-soname,libwebkit2gtk-4.1.so.0 -o lib/libwebkit2gtk-4.1.so.0.19.7 
@CMakeFiles/WebKit.rsp && :
/tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(usenglish.o):(.debug_aranges+0x6):
 relocation truncated to fit: R_X86_64_32 against `.debug_info'
/tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_f0_model.o):(.debug_loc+0x6f6):
 relocation truncated to fit: R_X86_64_32 against `.debug_info'
/tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_f0_model.o):(.debug_loc+0x720):
 relocation truncated to fit: R_X86_64_32 against `.debug_info'
/tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_f0_model.o):(.debug_loc+0x74a):
 relocation truncated to fit: R_X86_64_32 against `.debug_info'
/tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_f0_model.o):(.debug_aranges+0x6):
 relocation truncated to fit: R_X86_64_32 against `.debug_info'
/tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_ffeatures.o):(.debug_aranges+0x6):
 relocation truncated to fit: R_X86_64_32 against `.debug_info'
/tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_text.o):(.debug_aranges+0x6):
 relocation truncated to fit: R_X86_64_32 against `.debug_info'
/tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_expand.o):(.debug_aranges+0x6):
 relocation truncated to fit: R_X86_64_32 against `.debug_info'
/tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_aswd.o):(.debug_aranges+0x6):
 relocation truncated to fit: R_X86_64_32 against `.debug_info'
/tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_cmulex.a(cmu_lex.o):(.debug_aranges+0x6):
 relocation truncated to fit: R_X86_64_32 against `.debug_info'
/tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_cmulex.a(cmu_postlex.o):(.debug_aranges+0x6):
 additional relocation overflows omitted from the output
ninja: build stopped: subcommand failed.
*** Error code 1

 Thomas

Reply via email to