Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: release notes: minor mistake regarding FreeBSD port applicability #34126

Open
debdrup opened this issue Sep 5, 2019 · 2 comments

Comments

@debdrup
Copy link

commented Sep 5, 2019

What version of Go are you using (go version)?

1.13

Does this issue reproduce with the latest release?

Not applicable.

What operating system and processor architecture are you using (go env)?

Not applicable.

What did you do?

Read the change log.

What did you expect to see?

I expected there to be no mention of COMPAT_FREEBSDN ∈ N = [4-11], since this feature is useful only to binaries built on unsupported versions of FreeBSD running on a newer version (such as a static binary built on FreeBSD 4, or a dynamic binary with misc/compat4x in a jail).

What did you see instead?

A mention that Go is available for both FreeBSD 11, 12, and 13 since all three versions will be buildable by the port in the ports framework (and probably have already been built by the time this issue gets fixed).

Since this is an easy issue to fix, I hope it's okay that I didn't supply all the necessary information. :)

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Sep 5, 2019

@ianlancetaylor ianlancetaylor changed the title [Documentation] Minor mistake regarding FreeBSD port applicability. doc: release notes: minor mistake regarding FreeBSD port applicability Sep 5, 2019

@ianlancetaylor ianlancetaylor added this to the Go1.14 milestone Sep 5, 2019

@paulzhol

This comment has been minimized.

Copy link
Member

commented Sep 6, 2019

FreeBSD 12.0 or later requires a kernel with the COMPAT_FREEBSD11 option set (this is the default).

I don't understand the issue. We use syscall numbers marked as COMPAT11 in
https://github.com/freebsd/freebsd/blob/stable/12/sys/kern/syscalls.master.
This is mainly done so that Go binaries compiled with GOOS=freebsd can run on both FreeBSD 11 and 12.

If you build a custom 12 kernel without the COMPAT_FREEBSD11 option, you won't be able to run the compiled binaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.