Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 May 2022 20:32:43 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Dimitry Andric <dim@FreeBSD.org>, dev-commits-src-main@freebsd.org
Subject:   Re: git: 0817c8dc2a48 - main - Avoid adding -d to kernel module link command lines for lld >= 14
Message-ID:  <C9B10F59-8388-42FA-89BA-49FCDA7D985D@yahoo.com>
References:  <C9B10F59-8388-42FA-89BA-49FCDA7D985D.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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/libbla=
cklist/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/libbla=
cklist/libblacklist.a
--- all_subdir_lib ---
--- all_subdir_lib/libblacklist ---
Building =
/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/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/libbla=
cklist/libblacklist.a

ld: error: too many errors emitted, stopping now (use -error-limit=3D0 =
to see all errors)
--- all_subdir_usr.bin ---
--- all_subdir_usr.bin/xz ---
=3D=3D=3D> 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/ncurse=
s/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/ncurse=
s/tinfo/curs_bkgrnd.3.gz
--- all_subdir_rescue ---
Building =
/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/rescue/res=
cue/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=3D'blacklistd.full'
=
.ERROR_META_FILE=3D'/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/am=
d64.amd64/usr.sbin/blacklistd/blacklistd.full.meta'
.MAKE.LEVEL=3D'4'
MAKEFILE=3D''
.MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes =
verbose'
_ERROR_CMD=3D'cc -target x86_64-unknown-freebsd14.0 =
--sysroot=3D/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd6=
4/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=3D\"/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=3Dzlib -std=3Dgnu99 =
-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=3Dunused-but-set-variable -Qunused-arguments  =
-L/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libb=
lacklist -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=3D'/usr/main-src/usr.sbin/blacklistd'
.MAKE=3D'make'
=
.OBJDIR=3D'/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64=
/usr.sbin/blacklistd'
.TARGETS=3D'all'
=
DESTDIR=3D'/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64=
/tmp'
LD_LIBRARY_PATH=3D''
MACHINE=3D'amd64'
MACHINE_ARCH=3D'amd64'
MAKEOBJDIRPREFIX=3D''
MAKESYSPATH=3D'/usr/main-src/share/mk'
MAKE_VERSION=3D'20220418'
=
PATH=3D'/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tm=
p/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/t=
mp/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/a=
md64.amd64/tmp/legacy/usr/bin:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/m=
ain-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=3D'/usr/main-src'
OBJTOP=3D'/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64'=

.MAKE.MAKEFILES=3D'/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=3D'. /usr/main-src/usr.sbin/blacklistd =
/usr/main-src/contrib/blacklist/bin =
/usr/main-src/contrib/blacklist/port'
1 error

=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C9B10F59-8388-42FA-89BA-49FCDA7D985D>