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

x/sys/unix: does not define Time_t for FreeBSD #48148

Closed
igalic opened this issue Sep 2, 2021 · 4 comments
Closed

x/sys/unix: does not define Time_t for FreeBSD #48148

igalic opened this issue Sep 2, 2021 · 4 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. OS-FreeBSD
Milestone

Comments

@igalic
Copy link

igalic commented Sep 2, 2021

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

$ go version
go version go1.17 freebsd/amd64

Does this issue reproduce with the latest release?

yes

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

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/meena/.cache/go-build"
GOENV="/home/meena/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="freebsd"
GOINSECURE=""
GOMODCACHE="/home/meena/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="freebsd"
GOPATH="/home/meena/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/freebsd_amd64"
GOVCS=""
GOVERSION="go1.17"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/home/meena/src/time/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2640531444=/tmp/go-build -gno-record-gcc-switches"

What did you do?

I tried to use unix.Time_t on a FreeBSD system:

package main

import(
        "fmt"
        "golang.org/x/sys/unix"
)

func main() {
        fmt.Println(*(*unix.Time_t))
}

What did you expect to see?

./time_t.go:9:14: type unix.Time_t is not an expression

What did you see instead?

./time_t.go:9:14: undefined: unix.Time_t
@gopherbot gopherbot added this to the Unreleased milestone Sep 2, 2021
@tklauser tklauser changed the title x/sys/unix does not define Time_t for FreeBSD x/sys/unix: does not define Time_t for FreeBSD Sep 2, 2021
@tklauser tklauser added NeedsFix The path to resolution is known, but the work has not been done. OS-FreeBSD labels Sep 2, 2021
@jharshman
Copy link
Contributor

I'd like to take a pass at a fix if one isn't already underway,

@tklauser
Copy link
Member

tklauser commented Sep 6, 2021

@jharshman please feel free to send a fix

@gopherbot
Copy link

Change https://golang.org/cl/348012 mentions this issue: sys/unix: Add type Time_t to freebsd.

@jharshman
Copy link
Contributor

Haven't regenerated the files for arm and arm64. Not sure if this can be done without an emulator or without actually running the ./mkall.sh command on arm architecture.

@golang golang locked and limited conversation to collaborators Sep 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. OS-FreeBSD
Projects
None yet
Development

No branches or pull requests

4 participants