Closed
Description
A bunch of distros now build with LTO by default, although Gentoo doesn't (yet?). We should try make that work, or if we really have to, pass -fno-lto
for now in the build system.
We currently explode with:
x86_64-pc-linux-gnu-gcc -O3 -march=native -mtls-dialect=gnu2 -flto=jobserver -pipe -fcf-protection=none -fdiagnostics-color=always -fdiagnostics-urls=never -frecord-gcc-switches -Wa,-O2 -Wa,-mtune=znver2 -Wstrict-aliasing -Wfree-nonheap-object -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -Wstrict-aliasing -Wfree-nonheap-object -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -Wbuiltin-declaration-mismatch -ggdb3 -Wformat -Wformat-security -Waddress -Warray-bounds -Wfree-nonheap-object -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wpointer-to-int-cast -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wmaybe-uninitialized -Wstringop-overflow -Wstringop-overread -Wstringop-truncation -Wdangling-pointer -Wformat-overflow -Wformat-truncation -Wuse-after-free -Wvarargs -fuse-ld=bfd -std=gnu99 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_DT_VERSION=\"2.0.1\" -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -flto=jobserver -fuse-ld=mold -Wl,--defsym=__gentoo_check_ldflags__=0 -ggdb3 -Wl,--undefined-version -fuse-ld=bfd -o /var/tmp/portage/dev-debug/dtrace-9999/work/dtrace-9999/build/usdt-tst-forker /var/tmp/portage/dev-debug/dtrace-9999/work/dtrace-9999/build/test-triggers--usdt-tst-forker.o /var/tmp/portage/dev-debug/dtrace-9999/work/dtrace-9999/build/test-triggers--usdt-tst-forker-prov.o -L/var/tmp/portage/dev-debug/dtrace-9999/work/dtrace-9999/build
/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /var/tmp/portage/dev-debug/dtrace-9999/temp/ccVplKxz.ltrans0.ltrans.o: in function `dtrace_dof_init':
/var/tmp/portage/dev-debug/dtrace-9999/work/dtrace-9999/libdtrace/drti.c:181:(.text.startup+0x21c): undefined reference to `__SUNW_dof'
/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /var/tmp/portage/dev-debug/dtrace-9999/temp/ccVplKxz.ltrans0.ltrans.o: in function `main':
/var/tmp/portage/dev-debug/dtrace-9999/work/dtrace-9999/test/triggers/usdt-tst-forker.c:19:(.text.startup+0x3cc): undefined reference to `__dtrace_forker___fire'
collect2: error: ld returned 1 exit status
make: *** [Makerules:31: /var/tmp/portage/d
I've not looked into it yet.
Metadata
Metadata
Assignees
Labels
No labels