Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

linking fails for large debug builds



Hi!

I'm trying to debug webkit-gtk, but I run into the problem that '-g'
builds don't link.

I.e. when building wip/webkit-gtk with
CFLAGS+=-g
CPPFLAGS+=-g
CXXFLAGS+=-g
INSTALL_UNSTRIPPED=yes

in my /etc/mk.conf, I get:

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 -g -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 -g -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 -DNDEBUG  -shared -Wl,--no-undefined -lexecinfo -Wl,-zrelro -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

For making progress, I'd really like symbols to debug the backtraces.

Suggestions?
 Thomas


Home | Main Index | Thread Index | Old Index