Re: buildworld error ld: error: version script assignment of 'FBSD_1.5' to symbol 'getentropy' failed: symbol not defined

From: Alexander Leidinger <Alexander_at_Leidinger.net>
Date: Fri, 22 Nov 2024 14:31:04 UTC
Am 2024-11-22 14:08, schrieb Ed Maste:
> On Thu, 21 Nov 2024 at 04:43, Alexander Leidinger
> <Alexander@leidinger.net> wrote:
>> 
>> Hi,
>> 
>> 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)
>> 
>> This is with src from 2024-11-20 1:39pm UTC. My last build / running
>> world is from 2024-11-13 18:34pm UTC.
> 
> 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?

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:

src.conf:
---snip---
WITHOUT_PROFILE=yes
CFLAGS+=-DFTP_COMBINE_CWDS
MALLOC_PRODUCTION=yes
WITH_MALLOC_PRODUCTION=yes
WITHOUT_LLVM_ASSERTIONS=yes
KERNCONF=ANDROMEDA
WITH_RETPOLINE=yes
WITH_BIND_NOW=yes
WITHOUT_CLEAN=yes
FORTIFY_SOURCE=2       ## <------- maybe this? if yes: regression!
LOADER_GZIP_SUPPORT=no
LOADER_BZIP2_SUPPORT=no
LOADER_BIOS_TEXTONLY=no
LOADER_NFS_SUPPORT=no
LOADER_TFTP_SUPPORT=no
LOADER_CD9660_SUPPORT=no
---snip---

/etc/src-env.conf:
---snip---
WITH_META_MODE=yes
---snip---

/etc/make.conf:
---snip---
.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*))
.if !defined(NOCCACHE) && exists(/usr/local/libexec/ccache/world/cc)
CC:=${CC:C,^cc,/usr/local/libexec/ccache/world/cc,1}
CXX:=${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/c++,1}
.endif
.endif


.if empty{.CURDIR:M/usr/src/sys/boot*}
CPUTYPE?=native
.endif
. if !empty{.CURDIR:M/usr/src/*}
CFLAGS+= -O2 -pipe
.else
CFLAGS+= -O2 -pipe -mtune=native #-fvectorize # -mfpmath=sse -msse2
.endif

USA_RESIDENT=NO
ENABLE_SUID_SSH=YES
WITH_CCACHE_BUILD=yes
---snip---

Bye,
Alexander.

-- 
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF