On 27 Mar 2021, at 12:39, Miroslav Lachman <000.fbsd at quip.cz>
wrote:>
> I compiled 12.2-p4 from sources 2 days ago but any attempt to build update
for 12.2-p5 ends with error.
>
> Previous build was done on 11.4:
>
> # cd /usr/src/
> # git clone https://github.com/freebsd/freebsd.git -b releng/12.2 ./
> # make buildworld
> # make buildkernel
>
> 11.4 machine was upgraded to 12.2 (I did also run mergemaster) so now I
have FreeBSD 12.2-RELEASE-p4 amd64 GENERIC
>
> # cd /usr/src/
> # git pull --ff-only
> # make -DNO_CLEAN buildworld
>
> it ends with the following error
>
> sh /usr/src/tools/install.sh -s -o root -g wheel -m 555 xinstall
/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin/install
> sh /usr/src/tools/install.sh -o root -g wheel -m 444 install.debug
/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/lib/debug/usr/bin/install.debug
> *** Signal 11
You'll need to debug the core dump to see what it segfaulted on. In this
case, I would first suspect the hardware. Run a full memtest86 for 24
hours to see if it results in any errors.
> Stop.
> make[3]: stopped in /usr/src/usr.bin/xinstall
> *** Error code 1
>
> Usr: 437.951s Krnl: 15.620s Totl: 7:48.92s CPU: 96.7% swppd: 0 I/O:
55800+84576
>
> I tried without -DNO_CLEAN but it failed again
>
> sh /usr/src/tools/install.sh -o root -g wheel -m 444 make-roken.debug
/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/lib/debug/usr/bin/make-roken.debug
> ===> kerberos5/lib/libroken (obj,all,install)
> [Creating objdir
/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/kerberos5/lib/libroken...]
> make-roken > roken.h
> *** Signal 11
This won't help you at all, if the first build failed then there is no
reason the next will work. If your hardware is faulty then you will only
run into random errors like this, which is why I would suggest checking
your hardware first.
Now, the roken.h file that was produced is obviously prematurely cut
off, which is almost certainly the cause for the next failure:
> # make -DNO_CLEAN buildkernel
>
> cc -O2 -pipe -fno-common -I/usr/src/crypto/heimdal/lib/roken -I.
-DHAVE_CONFIG_H -I/usr/src/kerberos5/include -g -MD -MF.depend.copyhostent.o
-MTcopyhostent.o -std=gnu99 -Qunused-arguments
-I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -c
/usr/src/crypto/heimdal/lib/roken/copyhostent.c -o copyhostent.o
> /usr/src/crypto/heimdal/lib/roken/copyhostent.c:42:1: error: unknown type
name
> 'ROKEN_LIB_FUNCTION'
> ROKEN_LIB_FUNCTION struct hostent * ROKEN_LIB_CALL
> ^
> /usr/src/crypto/heimdal/lib/roken/copyhostent.c:42:51: error: expected
';' after top level
> declarator
> ROKEN_LIB_FUNCTION struct hostent * ROKEN_LIB_CALL
> ^
> ;
Since the roken.h file is bad, it won't compile. Delete the bad roken.h,
or maybe your entire /usr/obj, and after your hardware turns out to be
okay, try again.
-Dimitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL:
<http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20210327/070c0a36/attachment.sig>