Re: git: 0817c8dc2a48 - main - Avoid adding -d to kernel module link command lines for lld >= 14
Date: Sun, 15 May 2022 03:32:43 UTC
After building, installing, and booting based on 0817c8dc2a48 I attempted a self updating buildworld buildkernel, both non-debug debug (via a script). The non-debug build got the following but the debug build did not. --- blacklistd.full --- ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:294 (/usr/main-src/contrib/blacklist/lib/bl.c:294) >>> bl.o:(bl_create) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a --- all_subdir_lib --- --- all_subdir_lib/libblacklist --- Building /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.so.0 --- all_subdir_usr.sbin --- ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:300 (/usr/main-src/contrib/blacklist/lib/bl.c:300) >>> bl.o:(bl_create) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:300 (/usr/main-src/contrib/blacklist/lib/bl.c:300) >>> bl.o:(bl_create) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:210 (/usr/main-src/contrib/blacklist/lib/bl.c:210) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:210 (/usr/main-src/contrib/blacklist/lib/bl.c:210) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:222 (/usr/main-src/contrib/blacklist/lib/bl.c:222) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:222 (/usr/main-src/contrib/blacklist/lib/bl.c:222) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:189 (/usr/main-src/contrib/blacklist/lib/bl.c:189) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:189 (/usr/main-src/contrib/blacklist/lib/bl.c:189) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:260 (/usr/main-src/contrib/blacklist/lib/bl.c:260) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:202 (/usr/main-src/contrib/blacklist/lib/bl.c:202) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:202 (/usr/main-src/contrib/blacklist/lib/bl.c:202) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:155 (/usr/main-src/contrib/blacklist/lib/bl.c:155) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:155 (/usr/main-src/contrib/blacklist/lib/bl.c:155) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:262 (/usr/main-src/contrib/blacklist/lib/bl.c:262) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:262 (/usr/main-src/contrib/blacklist/lib/bl.c:262) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:262 (/usr/main-src/contrib/blacklist/lib/bl.c:262) >>> bl.o:(bl_init) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:339 (/usr/main-src/contrib/blacklist/lib/bl.c:339) >>> bl.o:(bl_send) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:339 (/usr/main-src/contrib/blacklist/lib/bl.c:339) >>> bl.o:(bl_send) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a(bl.o) >>> referenced by bl.c:347 (/usr/main-src/contrib/blacklist/lib/bl.c:347) >>> bl.o:(bl_send) in archive /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist/libblacklist.a ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors) --- all_subdir_usr.bin --- --- all_subdir_usr.bin/xz --- ===> usr.bin/xz (all) --- all_subdir_lib --- --- all_subdir_lib/ncurses --- Building /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/ncurses/tinfo/curs_bkgd.3.gz --- all_subdir_usr.sbin --- cc: error: linker command failed with exit code 1 (use -v to see invocation) --- all_subdir_lib --- Building /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/ncurses/tinfo/curs_bkgrnd.3.gz --- all_subdir_rescue --- Building /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/rescue/rescue/usr/main-src/usr.bin/tar/line_reader.o --- all_subdir_usr.sbin --- *** [blacklistd.full] Error code 1 make[4]: stopped in /usr/main-src/usr.sbin/blacklistd .ERROR_TARGET='blacklistd.full' .ERROR_META_FILE='/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/usr.sbin/blacklistd/blacklistd.full.meta' .MAKE.LEVEL='4' MAKEFILE='' .MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose' _ERROR_CMD='cc -target x86_64-unknown-freebsd14.0 --sysroot=/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp -B/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/usr/bin -O2 -pipe -fno-common -I/usr/main-src/contrib/blacklist/include -I/usr/main-src/contrib/blacklist/port -D_PATH_BLCONTROL=\"/usr/libexec/blacklistd-helper\" -DHAVE_CONFIG_H -DHAVE_DB_H -DHAVE_LIBUTIL_H -DHAVE_CLOCK_GETTIME -DHAVE_FGETLN -DHAVE_FPARSELN -DHAVE_GETPROGNAME -DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRUCT_SOCKADDR_SA_LEN -DNDEBUG -fPIE -g -gz=zlib -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-variable -Qunused-arguments -L/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libblacklist -pie -o blacklistd.full blacklistd.o conf.o run.o state.o support.o internal.o sockaddr_snprintf.o pidfile.o strtoi.o popenve.o -lblacklist -lutil ;' .CURDIR='/usr/main-src/usr.sbin/blacklistd' .MAKE='make' .OBJDIR='/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/usr.sbin/blacklistd' .TARGETS='all' DESTDIR='/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp' LD_LIBRARY_PATH='' MACHINE='amd64' MACHINE_ARCH='amd64' MAKEOBJDIRPREFIX='' MAKESYSPATH='/usr/main-src/share/mk' MAKE_VERSION='20220418' PATH='/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/bin:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/usr/sbin:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/usr/bin:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/legacy/bin:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin' SRCTOP='/usr/main-src' OBJTOP='/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64' .MAKE.MAKEFILES='/usr/main-src/share/mk/sys.mk /usr/main-src/share/mk/local.sys.env.mk /usr/main-src/share/mk/src.sys.env.mk /usr/home/root/src.configs/src.conf.amd64-nodbg-clang.amd64-host /usr/main-src/share/mk/bsd.mkopt.mk /usr/main-src/share/mk/src.sys.obj.mk /usr/main-src/share/mk/auto.obj.mk /usr/main-src/share/mk/bsd.suffixes.mk /usr/home/root/src.configs/make.conf /usr/main-src/share/mk/local.sys.mk /usr/main-src/share/mk/src.sys.mk /dev/null /usr/main-src/usr.sbin/blacklistd/Makefile /usr/main-src/share/mk/bsd.prog.mk /usr/main-src/share/mk/bsd.init.mk /usr/main-src/share/mk/bsd.opts.mk /usr/main-src/share/mk/bsd.cpu.mk /usr/main-src/share/mk/local.init.mk /usr/main-src/share/mk/src.init.mk /usr/main-src/usr.sbin/blacklistd/../Makefile.inc /usr/main-src/share/mk/bsd.own.mk /usr/main-src/share/mk/bsd.compiler.mk /usr/main-src/share/mk/bsd.endian.mk /usr/main-src/share/mk/bsd.linker.mk /usr/main-src/share/mk/bsd.sanitizer.mk /usr/main-src/share/mk/bsd.libnames.mk /usr/main-src/share/mk/src.libnames.mk /usr/main-src/share/mk/src.opts.mk /usr/main-src/share/mk/bsd.nls.mk /usr/main-src/share/mk/bsd.confs.mk /usr/main-src/share/mk/bsd.files.mk /usr/main-src/share/mk/bsd.dirs.mk /usr/main-src/share/mk/bsd.incs.mk /usr/main-src/share/mk/bsd.links.mk /usr/main-src/share/mk/bsd.man.mk /usr/main-src/share/mk/bsd.dep.mk /usr/main-src/share/mk/bsd.clang-analyze.mk /usr/main-src/share/mk/bsd.obj.mk /usr/main-src/share/mk/bsd.subdir.mk /usr/main-src/share/mk/bsd.sys.mk' .PATH='. /usr/main-src/usr.sbin/blacklistd /usr/main-src/contrib/blacklist/bin /usr/main-src/contrib/blacklist/port' 1 error === Mark Millard marklmi at yahoo.com