lang/go14 doesn't build without COMPAT11 in FREEBSD 12

Lucas Nali de Magalhães rollingbits at gmail.com
Tue Mar 26 15:16:06 UTC 2019


> On Mar 23, 2019, at 4:07 PM, Dmitri Goutnik <dg at syrec.org> wrote:
> 
>> On 19-03-23 15:38:14, Lucas Nali de Magalhães wrote:
>> 
>> lang/go14 doesn't build in FreeBSD 12 without COMPAT11 in the kernel because of the inode 64bit extension was added in the kernel. lang/go needs go14 to compile and will also break without COMPAT11 in FreeBSD 12 kernel. I found a discussion related to it in https://go-review.googlesource.com/c/sys/+/136816
>> but I don't have a patch ready. I know that if one manages to pass last go14 command through truss the messages will say that COMPAT11 syscall wasn't there.
> 
> COMPAT_FREEBSD11 is a documented requirement for lang/go and lang/go14 on 
> FreeBSD 12 [1]. [2] explains technical reasons behind this requirement.
> 
> [1] https://github.com/golang/go/wiki/FreeBSD
> [2] https://github.com/golang/go/issues/22447#issuecomment-423824181

This documentation mentions that rust also needs COMPAT_FREEBSD11 and in fact, rust builds here if I add it to the kernel. I think both are bugs and they need better documentation at least. Neither of them give useful error messages when COMPAT11 is missing. In fact, I was lost in the rust case and solved go case by accident. Not nice.

Lc

-- 
rollingbits — 📧 rollingbits at gmail.com 📧 rollingbits at terra.com.br 📧 rollingbits at yahoo.com 📧 rollingbits at globo.com 📧 rollingbits at icloud.com



More information about the freebsd-ports mailing list