TrueNAS compile errors

Brezlord

Contributor
Joined
Jan 7, 2017
Messages
189
Hi I'm trying to compile TrueNAS from source following https://github.com/truenas/core-build but I get the following errors.

Code:
[00:00:04] Warning: !!! Jail is newer than host. (Jail: 1300517, Host: 1202000) !!!
[00:00:04] Warning: This is not supported.
[00:00:04] Warning: Host kernel must be same or newer than jail.
[00:00:04] Warning: Expect build failures.


The build fails. I have tried to build on FreeBSD 12 and 13.

Current build machine is 12.2-RELEASE-p10

Any help would be appreciated.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,681
The host you're building on is older than the jail environment. It wants you to have a completely up-to-date FreeBSD system. Install FreeBSD 13 and then make sure you're patched up to current patchlevel.
 

Brezlord

Contributor
Joined
Jan 7, 2017
Messages
189
I installed 13 and run
Code:
freebsd-update fetch
freebsd-update install


and it was still behind. Are the above commands correct to get 13 to the latest patch level
Thanks
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,681
What do you have on the system now, 1300139? (output of "sysctl kern.osreldate") which is 13.0R-p4

Mmm. Curious... perhaps you have to track -STABLE? I'm actually not sure what the correct answer is here. I may try some stuff and get back to you.
 

Brezlord

Contributor
Joined
Jan 7, 2017
Messages
189
Thanks for helping. System is 13.0-RELEASE-p4 kern.osreldate: 1300139. Stable is no good either. I'll start the build which will take some time as This is a fresh VM. I'll post the full output when done.
 

Brezlord

Contributor
Joined
Jan 7, 2017
Messages
189
This is where it's at on 13.0-RELEASE-p4. The build will fail. How do I get the host to 1300517?
Code:
[00:00:04] Warning: !!! Jail is newer than host. (Jail: 1300517, Host: 1300139) !!!
[00:00:04] Warning: This is not supported.
[00:00:04] Warning: Host kernel must be same or newer than jail.
[00:00:04] Warning: Expect build failures.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,740
You need to update the host from source:
Code:
git clone --branch releng/13 https://git.FreeBSD.org/src.git /usr/src
cd /usr/src
make -j <ncpu> buildworld buildkernel
make installkernel
make installworld
shutdown -r now


This is an abbreviated version of the full procedure. There may be additional steps between "installkernel" and "installworld", but in case of going from RELENG_13_0 to RELENG_13 the above should work.

If you run the build environment on ZFS, create a backup boot environment before "installkernel".

HTH,
Patrick
 

Brezlord

Contributor
Joined
Jan 7, 2017
Messages
189
The only thing to fail now is
Code:
[02:19:50] [09] [00:09:26] Finished graphics/drm-fbsd13-kmod | drm-fbsd13-kmod-5.4.92.g20210720_1: Failed: build
[02:19:51] [09] [00:09:27] Skipping graphics/drm-kmod | drm-kmod-g20190710_1: Dependent port graphics/drm-fbsd13-kmod | drm-fbsd13-kmod-5.4.92.g20210720_1 failed


Full output attached.
Any idea how I can fix the above error?

Thanks,
Simon
 

Attachments

  • output.txt
    101.1 KB · Views: 165

Brezlord

Contributor
Joined
Jan 7, 2017
Messages
189
I've gotten the FreeBSD build machine kernel to where it needs to be and everything works except one port fails to build. I can't work out what's wrong. Any help would be appreciated.

Code:
[ja-p] [2021-10-27_06h31m24s] [balancing_pool:] Queued: 2  Built: 0  Failed: 0  Skipped: 0  Ignored: 0  Fetched: 0  Tobuild: 2   Time: 00:00:10
[00:00:13] Recording filesystem state for prepkg... done
[00:00:13] Building 2 packages using 2 builders
[00:00:13] Starting/Cloning builders
[00:00:16] Hit CTRL+t at any time to see build progress and stats
[00:00:16] [01] [00:00:00] Building graphics/drm-fbsd13-kmod | drm-fbsd13-kmod-5.4.92.g20210720_1
[00:00:23] [01] [00:00:07] Saving graphics/drm-fbsd13-kmod | drm-fbsd13-kmod-5.4.92.g20210720_1 wrkdir
[00:00:40] [01] [00:00:24] Saved graphics/drm-fbsd13-kmod | drm-fbsd13-kmod-5.4.92.g20210720_1 wrkdir to: /usr/build/freenas/_BE/objs/ports/data/wrkdirs/ja-p/p/drm-fbsd13-kmod-5.4.92.g20210720_1.tbz
[00:00:46] [01] [00:00:30] Finished graphics/drm-fbsd13-kmod | drm-fbsd13-kmod-5.4.92.g20210720_1: Failed: build
[00:00:46] [01] [00:00:30] Skipping graphics/drm-kmod | drm-kmod-g20190710_1: Dependent port graphics/drm-fbsd13-kmod | drm-fbsd13-kmod-5.4.92.g20210720_1 failed
[00:00:46] Stopping 2 builders
[00:00:47] Creating pkg repository
Creating repository in /tmp/packages: 100%
Packing files for repository: 100%
[00:00:53] Committing packages to repository: /usr/build/freenas/_BE/objs/ports/data/packages/ja-p/.real_1635287537 via .latest symlink
[00:00:53] Removing old packages
[00:00:54] Failed ports: graphics/drm-fbsd13-kmod:build
[00:00:54] Skipped ports: graphics/drm-kmod
[ja-p] [2021-10-27_06h31m24s] [committing:] Queued: 2  Built: 0  Failed: 1  Skipped: 1  Ignored: 0  Fetched: 0  Tobuild: 0   Time: 00:00:50
[00:00:54] Logs: /usr/build/freenas/_BE/objs/ports/data/logs/bulk/ja-p/2021-10-27_06h31m24s
[00:00:54] Cleaning up
[00:00:54] Unmounting file systems
[0:04:38] ==> ERROR: Ports build failed
[0:04:38] ==> Cleaning up poudriere environment...
[0:04:38] ==> Unmounting ports overlay...
*** Error code 1

Stop.
make[2]: stopped in /usr/build
*** Error code 1

Stop.
make[1]: stopped in /usr/build
*** Error code 1

Stop.
make: stopped in /usr/build
 
Top