Bug 261769 - lang/go 1.17.6,1 fails to build: Sanity check failed: kernel is missing COMPAT_FREEBSD11
Summary: lang/go 1.17.6,1 fails to build: Sanity check failed: kernel is missing COMPA...
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Guangyuan Yang
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-07 10:55 UTC by p5B2EA84B3
Modified: 2024-06-17 17:27 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (ygy)


Attachments
Poudriere build logfile go-1.17.6,1.log (9.75 KB, text/plain)
2022-02-07 10:55 UTC, p5B2EA84B3
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description p5B2EA84B3 2022-02-07 10:55:34 UTC
Created attachment 231600 [details]
Poudriere build logfile go-1.17.6,1.log

building for: FreeBSD pkg.FreeBSD.org 13.0-RELEASE FreeBSD 13.0-RELEASE amd64
fails with missing COMPAT_FREEBSD11 which looks a little strange to me.
Any comments on that?

=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building for go-1.17.6,1
Bad system call
=> Sanity check failed: kernel is missing COMPAT_FREEBSD11
=> Aborting build
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/go
=>> Cleaning up wrkdir
===>  Cleaning for go-1.17.6,1
build of lang/go | go-1.17.6,1 ended at Mon Feb  7 11:34:56 CET 2022
build time: 00:00:22
!!! build failure encountered !!!
Comment 1 dewayne 2022-02-07 22:19:04 UTC
(In reply to p5B2E9A8F from comment #0)
Unfortunately 64bit inodes are missing in go, and COMPAT_FREEBSD11 addresses this.  If you need more info, I came across this 20210624 and the go developers have documented this in their forums.  (Apologies for being terse, but its an old, ongoing issue that is easily fixed.)
Comment 2 p5B2EA84B3 2022-02-08 15:16:45 UTC
dewayne@
Thanks for the hint. BTW building lang/rust failed too the same way.

I fixed it by adding COMPAT_FREEBSD11 to the kernel on my builder system.