Solved FreeBSD 13.0

Today is FreeBSD 13 day!

Please tell me how to successfully build it. I used "make -j16 buildworld......." and also tried "make includes"/"make includes...."

Here is the error I am receiving:
Code:
--- secure/lib/libcryptoL --- /usr/local/bin/ccache cc -target x86_64-unknown-freebsd13.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -fno-common   -I/usr/src/crypto/openssl -I/usr/src/crypto/openssl/include -DL_ENDIAN -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR=""/etc/ssl"" -DENGINESDIR=""/usr/lib/engines"" -DNDEBUG -I/usr/src/crypto/openssl/crypto -I/usr/src/crypto/openssl/crypto/ec/curve448 -I/usr/src/crypto/openssl/crypto/ec/curve448/arch_32 -I/usr/src/crypto/openssl/crypto/modes -I/usr/obj/usr/src/amd64.amd64/secure/lib/libcrypto -g -MD  -MF.depend.t_pkey.o -MTt_pkey.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/11.0.1/include -fstack-protector-strong -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses  -Qunused-arguments    -c /usr/src/crypto/openssl/crypto/asn1/t_pkey.c -o t_pkey.o --- kerberos5/lib/libasn1L --- cp -f rfc2459_asn1-priv.hx rfc2459_asn1-priv.h --- lib/libprocstatL --- --- zfs/zfs_defs.o --- --- kerberos5/lib/libasn1L --- cp: rfc2459_asn1-priv.hx: Function not implemented
 
Source pulled from https://github.com/freebsd/freebsd-src/tree/releng/13.0.
Interestingly, https://download.freebsd.org/ftp/releases/amd64/13.0-RC4/src.txz successfully built but threw error on installing it.

I want the RELENG so that I would only be updating it in the future into a RELEASE-pX.

The error again is:

Code:
===> kerberos5/lib/libasn1 (obj,all,install)


--- lib/ofed/libibmad__L ---


install -U  -o root -g wheel -m 444    libibmad.so.5.debug /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/debug/usr/lib/


install -U -l rs -o root -g wheel -m 755 -S   libibmad.so.5 /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libibmad.so


--- kerberos5/lib/libasn1__L ---


--- asn1_rfc2459_asn1.c ---


cp -f asn1_rfc2459_asn1.x asn1_rfc2459_asn1.c


--- lib/libprocstat__L ---


--- .depend ---


--- secure/lib/libcrypto__L ---


--- t_pkey.o ---


--- kerberos5/lib/libasn1__L ---


--- rfc2459_asn1-priv.h ---


--- lib/libprocstat__L ---


echo libprocstat.so.1.full: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libelf.a /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libkvm.a /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libutil.a >> .depend


--- secure/lib/libcrypto__L ---


/usr/local/bin/ccache cc -target x86_64-unknown-freebsd13.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -fno-common   -I/usr/src/crypto/openssl -I/usr/src/crypto/openssl/include -DL_ENDIAN -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/usr/lib/engines\"" -DNDEBUG -I/usr/src/crypto/openssl/crypto -I/usr/src/crypto/openssl/crypto/ec/curve448 -I/usr/src/crypto/openssl/crypto/ec/curve448/arch_32 -I/usr/src/crypto/openssl/crypto/modes -I/usr/obj/usr/src/amd64.amd64/secure/lib/libcrypto -g -MD  -MF.depend.t_pkey.o -MTt_pkey.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/11.0.1/include -fstack-protector-strong -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses  -Qunused-arguments    -c /usr/src/crypto/openssl/crypto/asn1/t_pkey.c -o t_pkey.o


--- kerberos5/lib/libasn1__L ---


cp -f rfc2459_asn1-priv.hx rfc2459_asn1-priv.h


--- lib/libprocstat__L ---


--- zfs/zfs_defs.o ---


--- kerberos5/lib/libasn1__L ---


cp: rfc2459_asn1-priv.hx: Function not implemented


*** [rfc2459_asn1-priv.h] Error code 1





make[4]: stopped in /usr/src/kerberos5/lib/libasn1





make[2]: stopped in /usr/src





make[1]: stopped in /usr/src





make: stopped in /usr/src
 
Built on my laptop:

Code:
--------------------------------------------------------------
>>> Kernel build for CUPRUM completed on Fri Apr  2 09:56:07 EEST 2021
--------------------------------------------------------------
>>> Kernel(s)  CUPRUM built in 943 seconds, ncpu: 4, make -j4
--------------------------------------------------------------

________________________________________________________
Executed in   15.74 mins   fish           external
 
Built on my laptop:

Code:
--------------------------------------------------------------
>>> Kernel build for CUPRUM completed on Fri Apr  2 09:56:07 EEST 2021
--------------------------------------------------------------
>>> Kernel(s)  CUPRUM built in 943 seconds, ncpu: 4, make -j4
--------------------------------------------------------------

________________________________________________________
Executed in   15.74 mins   fish           external
You mind informing me of the source repo and contents of make.conf and src.conf there?
 
You mind informing me of the source repo and contents of make.conf and src.conf there?
In /usr/local/etc/gitup.conf

Code:
        "release" : {
                "repository" : "/src.git",
                "branch"     : "releng/13.0",
                "target"     : "/usr/src",
                "ignores"    : [
                        "sys/amd64/conf",
                        "sys/arm64/conf",
                        "sys/i386/conf",
                        "sys/pc98/conf",
                        "sys/powerpc/conf",
                        "sys/riscv/conf",
                        "sys/sparc64/conf",
                ]
        },

Using gitup release -v 1

Last run output
Code:
# Host: git.freebsd.org
# Port: 443
# Repository: /src.git
# Target: /usr/src
# Have: f8a134d0ef1d430efb24b4e6bd6cd58a07ebc376
# Want: f8a134d0ef1d430efb24b4e6bd6cd58a07ebc376
# Branch: releng/13.0

/etc/make.conf can be empty.
 
My laptop upgrade went all good from 12.2 to 13.0

Code:
uname -a
FreeBSD CUPRUM 13.0-RC5 FreeBSD 13.0-RC5 #0 f8a134d0e: Fri Apr  2 09:51:13 EEST 2021     root@SMIT Demo:/usr/obj/usr/src/amd64.amd64/sys/CUPRUM  amd64

Downloaded the latest source, built, installed, rebuilt kernel bound ports and I am writing this message on this very laptop...
 
I am getting mountroot trouble when trying to reboot ito my new 13 system. Looks like the zfs does not like datasets with lz4 compression, the kernel module seems to be missing. Booting kernel.old does give different grief due to /boot/modules containing new modules. So no WLAN for me there.

Found it. No buildkernel -j X !!
 
Found it. No buildkernel -j X !!
Interesting. I have used -j4 and it is working.

Code:
    --------------------------------------------------------------

    >>> Kernel build for ARGENTUM completed on Mon Apr 12 19:21:13 EEST 2021

    --------------------------------------------------------------

    >>> Kernel(s)  ARGENTUM built in 836 seconds, ncpu: 4, make -j4

    --------------------------------------------------------------

Code:
uname -a
FreeBSD Argentum 13.0-RELEASE FreeBSD 13.0-RELEASE #6 ea31abc26: Mon Apr 12 19:21:01 EEST 2021     root@Argentum:/usr/obj/usr/src/amd64.amd6
4/sys/ARGENTUM  amd64

 
I had and it didn't work. And that was not the first time it failed. Usually I single-build the kernel. Buildworld can take it.
 
I am getting mountroot trouble when trying to reboot ito my new 13 system.
Smells like this is missing:
vfs.root.mountfrom="zfs:zroot"

It went here on several other systems. It was a kerberos issue for the first one.

I suppose I can close the thread and replies can still be added.
 
I had and it didn't work. And that was not the first time it failed. Usually I single-build the kernel. Buildworld can take it.
Strange. Maybe with -j X the X is too high? I have used 4 and it is working. Just recompiled the whole base and kernel yesterday. All good. Perhaps there is some other problem.
 
I have used 4 and it is working. Just recompiled the whole base and kernel yesterday.
Used -j 6 (often use much higher values but I didn't want to interfere with the VMs this machine is running) last Sunday on a 13-STABLE. Worked as normal.
Code:
FreeBSD hosaka.dicelan.home 13.0-STABLE FreeBSD 13.0-STABLE #69 stable/13-n245189-236d1f8c177: Sun Apr 11 16:26:44 CEST 2021     root@hosaka.dicelan.home:/usr/obj/usr/src/amd64.amd64/sys/HOSAKA  amd64

Perhaps there is some other problem.
Yes, I suspect something else is up too. It should be fine to buildkernel with -j X and has been for quite some time.
 
I understand why the optimization flags could create problems but never understood why it is problematic to build kernel with parallel builds. Is there some sort of race condition that could get triggered (and/or logical dependency bug) ? Legit question..
It would be interesting to see the differences between the kernel built in sequence and in parallel.
 
That was not the first time a parallel build screwed things up for me. Maybe there is a race condition somewhere and I have that Pauli aura to trigger it? Who knows. I abstain from it and have no trouble.
 
Is there some sort of race condition that could get triggered (and/or logical dependency bug) ?
If I recall correctly it was an ordering issue. Things had to be built in a specific order or it would fail, probably a dependency issue. Can't remember the exact details as this was a long time ago (I'm talking 3.x or 4.x era).
It would be interesting to see the differences between the kernel built in sequence and in parallel.
Nowadays this shouldn't produce any differences, it'll only take less time to complete and consume more resources while building.

That does ring a bell though, when my build machine had some bad memory I had problems getting anything to build correctly. But not always, only when I had multiple things going concurrently would it go haywire. That might be the case here too. When you add more concurrent jobs the system is going to use more memory and CPU resources. That might be enough to hit the "bad spot" in memory (my memory errors turned out to be at a high address range) or heat up the CPU sufficiently to cause problems. When building in sequence you use a lot less resources and thus may not hit that "bad spot".
 
SirDice: Yeah, I can see how that would fail to build and hence the problem. But Crivens mentioned problem with the boot itself, not compilation. I'll put this into my TODO list out of (my) curiosity. It seems it will be raining for few days here, I guess I'll have some spare time to test. :)
 
But @Crivens mentioned problem with the boot itself, not compilation.
I couldn't trust anything I had built while the memory was faulty. It could have picked up some corruption without failing on it. Bad memory is easy to check for in any case, even if it's only to rule it out as possible cause.
 
Source pulled from https://github.com/freebsd/freebsd-src/tree/releng/13.0.
Interestingly, https://download.freebsd.org/ftp/releases/amd64/13.0-RC4/src.txz successfully built but threw error on installing it.

I want the RELENG so that I would only be updating it in the future into a RELEASE-pX.

The error again is:

Code:
===> kerberos5/lib/libasn1 (obj,all,install)


--- lib/ofed/libibmad__L ---


install -U  -o root -g wheel -m 444    libibmad.so.5.debug /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/debug/usr/lib/


install -U -l rs -o root -g wheel -m 755 -S   libibmad.so.5 /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libibmad.so


--- kerberos5/lib/libasn1__L ---


--- asn1_rfc2459_asn1.c ---


cp -f asn1_rfc2459_asn1.x asn1_rfc2459_asn1.c


--- lib/libprocstat__L ---


--- .depend ---


--- secure/lib/libcrypto__L ---


--- t_pkey.o ---


--- kerberos5/lib/libasn1__L ---


--- rfc2459_asn1-priv.h ---


--- lib/libprocstat__L ---


echo libprocstat.so.1.full: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libelf.a /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libkvm.a /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libutil.a >> .depend


--- secure/lib/libcrypto__L ---


/usr/local/bin/ccache cc -target x86_64-unknown-freebsd13.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -fno-common   -I/usr/src/crypto/openssl -I/usr/src/crypto/openssl/include -DL_ENDIAN -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/usr/lib/engines\"" -DNDEBUG -I/usr/src/crypto/openssl/crypto -I/usr/src/crypto/openssl/crypto/ec/curve448 -I/usr/src/crypto/openssl/crypto/ec/curve448/arch_32 -I/usr/src/crypto/openssl/crypto/modes -I/usr/obj/usr/src/amd64.amd64/secure/lib/libcrypto -g -MD  -MF.depend.t_pkey.o -MTt_pkey.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/11.0.1/include -fstack-protector-strong -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses  -Qunused-arguments    -c /usr/src/crypto/openssl/crypto/asn1/t_pkey.c -o t_pkey.o


--- kerberos5/lib/libasn1__L ---


cp -f rfc2459_asn1-priv.hx rfc2459_asn1-priv.h


--- lib/libprocstat__L ---


--- zfs/zfs_defs.o ---


--- kerberos5/lib/libasn1__L ---


cp: rfc2459_asn1-priv.hx: Function not implemented


*** [rfc2459_asn1-priv.h] Error code 1





make[4]: stopped in /usr/src/kerberos5/lib/libasn1





make[2]: stopped in /usr/src





make[1]: stopped in /usr/src





make: stopped in /usr/src
Got the same error from the sources taken from the iso, I tried to compile 13.0 on 12.2 machine, tried i386 and amd64 same error ? What wrong ?
 
Got the same error from the sources taken from the iso, I tried to compile 13.0 on 12.2 machine, tried i386 and amd64 same error ? What wrong ?
Is there anything in /etc/make.conf and/or /etc/src.conf?
 
Back
Top