Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2024 17:19:54 +0000
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        Alexander Leidinger <Alexander@leidinger.net>
Cc:        Ed Maste <emaste@freebsd.org>,  Current FreeBSD <freebsd-current@freebsd.org>
Subject:   Re: buildworld error ld: error: version script assignment of 'FBSD_1.5' to symbol 'getentropy' failed: symbol not defined
Message-ID:  <cdtnoioy7cv67battvsxiaqmpuaa6vxls5633rsyfgymo7tl4b@3pypydjkdyrw>
In-Reply-To: <f08beacf0f5b6a836f022aec2bbe1c29@Leidinger.net>
References:  <1221c0f9da65d606d6142623717819ab@Leidinger.net> <CAPyFy2DiJ8QYz0D95vSRVDPvC=f6ycFsSdWEEDFGNqW_bCpOMg@mail.gmail.com> <40856c3b233f6120e742763ca2eb0775@Leidinger.net> <f08beacf0f5b6a836f022aec2bbe1c29@Leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--d7pc7o6fivxsk63i
Content-Type: multipart/mixed; protected-headers=v1;
	boundary="vxtgjfu5yqtkjmbv"
Content-Disposition: inline
Subject: Re: buildworld error ld: error: version script assignment of
 'FBSD_1.5' to symbol 'getentropy' failed: symbol not defined
MIME-Version: 1.0


--vxtgjfu5yqtkjmbv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 22, 2024 at 04:20:42PM +0100, Alexander Leidinger wrote:
> Am 2024-11-22 15:31, schrieb Alexander Leidinger:
> > Am 2024-11-22 14:08, schrieb Ed Maste:
> > > On Thu, 21 Nov 2024 at 04:43, Alexander Leidinger
> > > <Alexander@leidinger.net> wrote:
> > > >=20
> > > > Hi,
> > > >=20
> > > > I get:
> > > > ld: error: version script assignment of 'FBSD_1.5' to symbol
> > > > 'getentropy' failed: symbol not defined
> > > > cc: error: linker command failed with exit code 1 (use -v to see
> > > > invocation)
> > > >=20
> > > > This is with src from 2024-11-20 1:39pm UTC. My last build / running
> > > > world is from 2024-11-13 18:34pm UTC.
> > >=20
> > > I modified getentropy in that window to remove fallback code --
> > > 62dab3d016a on Nov 16. It builds and Jenkins was happy though so
> > > perhaps something odd in your environment?
> >=20
> > I'm running a bisect on unmodified code (master). So there is a failure,
> > and I can't tell right now which commit it is. Anyway, as this is master
> > without my local changes, it has to me src.conf or similar:
> >=20
> > src.conf:
> > ---snip---
> > WITHOUT_PROFILE=3Dyes
> > CFLAGS+=3D-DFTP_COMBINE_CWDS
> > MALLOC_PRODUCTION=3Dyes
> > WITH_MALLOC_PRODUCTION=3Dyes
> > WITHOUT_LLVM_ASSERTIONS=3Dyes
> > KERNCONF=3DANDROMEDA
> > WITH_RETPOLINE=3Dyes
> > WITH_BIND_NOW=3Dyes
> > WITHOUT_CLEAN=3Dyes
> > FORTIFY_SOURCE=3D2       ## <------- maybe this? if yes: regression!
>=20
> Sorry Ed, but your commit fails fast, and the commit before that builds n=
ow
> since much longer than the failed build.
>=20
> Here is a bit more info
>=20
> Building
> /space/system/usr_obj/space/system/usr_src/amd64.amd64/lib/libc/libc_pic.a
> building static c library
> building shared library libc.so.7
> building special pic c library
> ld: error: version script assignment of 'FBSD_1.5' to symbol 'getentropy'
> failed: symbol not defined
> cc: error: linker command failed with exit code 1 (use -v to see invocati=
on)
> Building /space/system/usr_obj/space/system/usr_src/amd64.amd64/lib/libc/=
libc_nossp_pic.a
> *** [libc.so.7.full] Error code 1
>=20
> So the pic-build seems to be an issue.
>=20
> I try to get some time to check which build option may play a role here, =
but
> I'm not sure how much of that I can do in the next 24h.

I'm getting the same build error. I'm building HardenedBSD
15-CURRENT/amd64 with a clean /usr/obj.

Attached is the output of `make showconfig` in /usr/src.

Thanks,

--=20
Shawn Webb
Cofounder / Security Engineer
HardenedBSD

Tor-ified Signal: +1 303-901-1600 / shawn_webb_opsec.50
https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A=
4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc

--vxtgjfu5yqtkjmbv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="2024-11-22_config-r01.txt"

MK_ACCT          = yes
MK_ACPI          = yes
MK_APM           = yes
MK_ASAN          = no
MK_ASSERT_DEBUG  = yes
MK_AT            = yes
MK_AUDIT         = yes
MK_AUTHPF        = yes
MK_AUTOFS        = yes
MK_AUTO_OBJ      = yes
MK_BEARSSL       = no
MK_BHYVE         = yes
MK_BHYVE_SNAPSHOT = no
MK_BIND_NOW      = yes
MK_BLACKLIST     = yes
MK_BLACKLIST_SUPPORT = yes
MK_BLUETOOTH     = yes
MK_BOOT          = yes
MK_BOOTPARAMD    = yes
MK_BOOTPD        = yes
MK_BRANCH_PROTECTION = no
MK_BSDINSTALL    = yes
MK_BSD_CPIO      = yes
MK_BSNMP         = yes
MK_BZIP2         = yes
MK_BZIP2_SUPPORT = yes
MK_CALENDAR      = yes
MK_CAROOT        = yes
MK_CASPER        = yes
MK_CCACHE_BUILD  = no
MK_CCD           = yes
MK_CDDL          = yes
MK_CFI           = yes
MK_CLANG         = yes
MK_CLANG_BOOTSTRAP = yes
MK_CLANG_EXTRAS  = yes
MK_CLANG_FORMAT  = no
MK_CLANG_FULL    = yes
MK_CLEAN         = no
MK_CPP           = yes
MK_CPP_HARDENING = yes
MK_CROSS_COMPILER = yes
MK_CRYPT         = yes
MK_CTF           = no
MK_CUSE          = yes
MK_CXGBETOOL     = yes
MK_DEBUG_FILES   = yes
MK_DETECT_TZ_CHANGES = no
MK_DIALOG        = no
MK_DICT          = yes
MK_DIRDEPS_BUILD = no
MK_DIRDEPS_CACHE = no
MK_DISK_IMAGE_TOOLS_BOOTSTRAP = no
MK_DMAGENT       = yes
MK_DOCCOMPRESS   = yes
MK_DTRACE        = yes
MK_DTRACE_ASAN   = no
MK_DTRACE_TESTS  = no
MK_DYNAMICROOT   = yes
MK_EE            = yes
MK_EFI           = yes
MK_ELFTOOLCHAIN_BOOTSTRAP = yes
MK_EXAMPLES      = yes
MK_EXPERIMENTAL  = no
MK_FDT           = no
MK_FILE          = yes
MK_FINGER        = yes
MK_FLOPPY        = yes
MK_FORMAT_EXTENSIONS = yes
MK_FORTH         = yes
MK_FP_LIBC       = yes
MK_FREEBSD_UPDATE = no
MK_FTP           = yes
MK_GAMES         = yes
MK_GH_BC         = yes
MK_GNU_DIFF      = yes
MK_GOOGLETEST    = yes
MK_GPIO          = yes
MK_GSSAPI        = yes
MK_HAST          = yes
MK_HBSDCONTROL   = yes
MK_HBSD_UPDATE   = yes
MK_HESIOD        = no
MK_HTML          = yes
MK_HYPERV        = yes
MK_ICONV         = yes
MK_INCLUDES      = yes
MK_INET          = yes
MK_INET6         = yes
MK_INET6_SUPPORT = yes
MK_INETD         = yes
MK_INET_SUPPORT  = yes
MK_INSTALLLIB    = yes
MK_INSTALL_AS_USER = no
MK_IPFILTER      = yes
MK_IPFW          = yes
MK_IPSEC_SUPPORT = yes
MK_ISCSI         = yes
MK_JAIL          = yes
MK_JEMALLOC_LG_VADDR_WIDE = yes
MK_KDUMP         = yes
MK_KERBEROS      = yes
MK_KERBEROS_SUPPORT = yes
MK_KERNEL_BIN    = no
MK_KERNEL_RETPOLINE = no
MK_KERNEL_SYMBOLS = yes
MK_KVM           = yes
MK_KVM_SUPPORT   = yes
MK_LDNS          = yes
MK_LDNS_UTILS    = yes
MK_LEGACY_CONSOLE = yes
MK_LIB32         = no
MK_LLD           = yes
MK_LLDB          = yes
MK_LLD_BOOTSTRAP = yes
MK_LLVM_ASSERTIONS = yes
MK_LLVM_BINUTILS = yes
MK_LLVM_COV      = yes
MK_LLVM_CXXFILT  = yes
MK_LLVM_FULL_DEBUGINFO = no
MK_LLVM_TARGET_AARCH64 = yes
MK_LLVM_TARGET_ALL = yes
MK_LLVM_TARGET_ARM = yes
MK_LLVM_TARGET_BPF = no
MK_LLVM_TARGET_MIPS = no
MK_LLVM_TARGET_POWERPC = yes
MK_LLVM_TARGET_RISCV = yes
MK_LLVM_TARGET_X86 = yes
MK_LOADER_BIOS_TEXTONLY = yes
MK_LOADER_EFI_SECUREBOOT = no
MK_LOADER_GELI   = yes
MK_LOADER_IA32   = yes
MK_LOADER_KBOOT  = yes
MK_LOADER_LUA    = yes
MK_LOADER_OFW    = no
MK_LOADER_PXEBOOT = yes
MK_LOADER_UBOOT  = no
MK_LOADER_VERBOSE = no
MK_LOADER_VERIEXEC = no
MK_LOADER_VERIEXEC_PASS_MANIFEST = no
MK_LOADER_VERIEXEC_VECTX = no
MK_LOADER_ZFS    = yes
MK_LOCALES       = yes
MK_LOCATE        = yes
MK_LPR           = yes
MK_LS_COLORS     = yes
MK_LTOLIB        = yes
MK_MACHDEP_OPTIMIZATIONS = yes
MK_MAIL          = yes
MK_MAILWRAPPER   = yes
MK_MAKE          = yes
MK_MAKE_CHECK_USE_SANDBOX = yes
MK_MALLOC_PRODUCTION = no
MK_MAN           = yes
MK_MANCOMPRESS   = yes
MK_MANSPLITPKG   = yes
MK_MAN_UTILS     = yes
MK_META_ERROR_TARGET = no
MK_META_MODE     = no
MK_MLX5TOOL      = yes
MK_NETCAT        = yes
MK_NETGRAPH      = yes
MK_NETGRAPH_SUPPORT = yes
MK_NETLINK       = no
MK_NETLINK_SUPPORT = no
MK_NIS           = yes
MK_NLS           = yes
MK_NLS_CATALOGS  = yes
MK_NS_CACHING    = yes
MK_NTP           = yes
MK_NUAGEINIT     = yes
MK_OFED          = no
MK_OFED          = yes
MK_OFED_EXTRA    = no
MK_OPENLDAP      = no
MK_OPENMP        = yes
MK_OPENSSH       = yes
MK_OPENSSL       = yes
MK_OPENSSL_KTLS  = yes
MK_PAM           = yes
MK_PAM_SUPPORT   = yes
MK_PF            = yes
MK_PIE           = yes
MK_PKGBOOTSTRAP  = yes
MK_PMC           = yes
MK_PORTSNAP      = no
MK_PPP           = yes
MK_PTHREADS_ASSERTIONS = yes
MK_QUOTAS        = yes
MK_RADIUS_SUPPORT = yes
MK_RATELIMIT     = no
MK_RBOOTD        = yes
MK_RELRO         = yes
MK_REPRODUCIBLE_BUILD = no
MK_RESCUE        = yes
MK_RETPOLINE     = yes
MK_ROUTED        = yes
MK_RPCBIND_WARMSTART_SUPPORT = no
MK_SAFESTACK     = yes
MK_SCTP_SUPPORT  = yes
MK_SENDMAIL      = yes
MK_SERVICESDB    = yes
MK_SETUID_LOGIN  = yes
MK_SHAREDOCS     = yes
MK_SHARED_TOOLCHAIN = yes
MK_SHLIBRANDOM   = yes
MK_SORT_THREADS  = no
MK_SOURCELESS    = yes
MK_SOURCELESS_HOST = yes
MK_SOURCELESS_UCODE = yes
MK_SPECTREV1_FIX = no
MK_SPLIT_KERNEL_DEBUG = yes
MK_SSP           = yes
MK_STAGING       = no
MK_STAGING_MAN   = no
MK_STAGING_PROG  = no
MK_STALE_STAGED  = no
MK_STATS         = yes
MK_SYSCONS       = yes
MK_SYSROOT       = no
MK_SYSTEM_COMPILER = yes
MK_SYSTEM_LINKER = yes
MK_TALK          = yes
MK_TCP_WRAPPERS  = yes
MK_TCSH          = yes
MK_TELNET        = yes
MK_TESTS         = yes
MK_TESTS_SUPPORT = yes
MK_TEXTPROC      = yes
MK_TFTP          = yes
MK_TOOLCHAIN     = yes
MK_UBSAN         = no
MK_UNBOUND       = yes
MK_UNDEFINED_VERSION = no
MK_UNIFIED_OBJDIR = yes
MK_USB           = yes
MK_USB_GADGET_EXAMPLES = yes
MK_UTMPX         = yes
MK_VERIEXEC      = no
MK_VI            = yes
MK_VT            = yes
MK_WARNS         = yes
MK_WERROR        = yes
MK_WIRELESS      = yes
MK_WIRELESS_SUPPORT = yes
MK_WPA_SUPPLICANT_EAPOL = yes
MK_ZFS           = yes
MK_ZFS_TESTS     = yes
MK_ZONEINFO      = yes
MK_ZONEINFO_LEAPSECONDS_SUPPORT = no
OPT_INIT_ALL     = none
OPT_LIBC_MALLOC  = jemalloc

--vxtgjfu5yqtkjmbv--

--d7pc7o6fivxsk63i
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmdAvTIACgkQ/y5nonf4
4frh9Q/9G/s9DBJe0mvKMNiCdK4y4Lu/UKvqzBtkO6HwHtR28EQdhrQ24f8Gra1b
noySWHLkdM6QImYq5AjmD3JEqSZQokYvJJqy7XAOHVRXkvEPQrgUScfQmwjGT8ap
3lul0+QzMUYyZ3MV0X17r4KZwVbfYBPJkxH4CV+lIldCL9dhXLWuvpG1eivmt4wP
oF72djdKNE2Erl/tpNgtgAeIW0stkBbf2rCEE0lEgiczKtfNcxmLE/SuMn+sWQgx
z2yxVROIDektjKRQEDzm+OhKKaXAhX5/+Wa6Hg1m3gpXubqGNrzfGj1vxhzfHINK
ehFQylW5h72bDajBbOrSbQb2fJbhD8BnF7U41I4jxtwW7xwim+9kJGTvFgNTX/hA
Eiw5Vw/jGWHYUcEtMUFMsS1tFfQFvW79D82QUYVf7GD1C2cNR8PEZtM+utPmtrvp
5tnzu1IEDOkaYls4AS1oqbNXXxKMZvFG6WhoKgIP94eiqZBsekCMAWfmJtUHbeRa
+pQ+vxuIWL5EN6z/9Eyywerd1c2M3bW7hrXMJ6S+XrZIvEbbtWElfY/hgbCiZleA
+oFMNPmUHTWZ6XJ6W8ozK7P/Ufe1imguqxgI1OiS8E/eLP5RH4qX0NSZl0T3AzNR
vARqY8oa/jFihQtIHu4DHq6PHUUkf2XSEe6SJWr2fOcmAT1C2EQ=
=DoD0
-----END PGP SIGNATURE-----

--d7pc7o6fivxsk63i--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cdtnoioy7cv67battvsxiaqmpuaa6vxls5633rsyfgymo7tl4b>