Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

pty_linux.go:15:27: error: reference to undefined identifier 'syscall.TIOCGPTN' (gollvm) #9

@advancedwebdeveloper

Description

@advancedwebdeveloper

Hi.
I think I found a bug.

$ go build -i -v -x
WORK=/tmp/go-build100086455
github.com/pkg/term/termios
mkdir -p $WORK/b014/
cd $WORK
/home/oceanfish81/gollvm_dist/bin/llvm-goc -fgo-importcfg=/dev/null -c -x c - -o /dev/null || true
cd /home/oceanfis81/go/pkg/mod/github.com/pkg/term@v0.0.0-20190109203006-aa71e9d9e942/termios
/home/oceanfish81/gollvm_dist/bin/llvm-goc -c -O2 -g -m64 -fdebug-prefix-map=$WORK=/tmp/go-build -gno-record-gcc-switches -fgo-pkgpath=github.com/pkg/term/termios -o $WORK/b014/go.o -I $WORK/b014/importcfgroot ./doc.go ./ioctl.go ./pty.go ./pty_linux.go ./termios.go ./termios_const.go ./termios_linux.go

github.com/pkg/term/termios

../../../go/pkg/mod/github.com/pkg/term@v0.0.0-20190109203006-aa71e9d9e942/termios/pty_linux.go:15:27: error: reference to undefined identifier 'syscall.TIOCGPTN'
../../../go/pkg/mod/github.com/pkg/term@v0.0.0-20190109203006-aa71e9d9e942/termios/pty_linux.go:24:27: error: reference to undefined identifier 'syscall.TIOCGPTN'
../../../go/pkg/mod/github.com/pkg/term@v0.0.0-20190109203006-aa71e9d9e942/termios/pty_linux.go:29:27: error: reference to undefined identifier 'syscall.TIOCSPTLCK'

Here is my environment:

$ go env && go version
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/oceanfis81/.cache/go-build"
GOENV="/home/oceanfis81/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/oceanfis81/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/oceanfis81/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/oceanfish81/gollvm_dist"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/oceanfish81/gollvm_dist/tools"
GCCGO="/home/oceanfish81/gollvm_dist/bin/llvm-goc"
AR="ar"
CC="/usr/bin/clang"
CXX="/usr/bin/clang++"
CGO_ENABLED="1"
GOMOD="/home/oceanfis81/go_projects/c4go/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-build402447636=/tmp/go-build -gno-record-gcc-switches -funwind-tables"
go version go1.15.2 gollvm LLVM 12.0.0git linux/amd64

I am using gollvm - my "release" build could be found here

CC @thanm @cherrymui

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions