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

gollvm: undefined symbol: os.direntType #43583

Closed
timmyyuan opened this issue Jan 8, 2021 · 5 comments
Closed

gollvm: undefined symbol: os.direntType #43583

timmyyuan opened this issue Jan 8, 2021 · 5 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@timmyyuan
Copy link

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

$ go version
go version go1.16beta1 gollvm LLVM 12.0.0git linux/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="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/root/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/tools"
GOVCS=""
GOVERSION="go1.16beta1 gollvm LLVM 12.0.0git"
GCCGO="/usr/local/bin/llvm-goc"
AR="ar"
CC="/usr/bin/cc"
CXX="/usr/bin/c++"
CGO_ENABLED="1"
GOMOD="/root/go/src/google.golang.org/grpc/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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1383028238=/tmp/go-build -gno-record-gcc-switches -funwind-tables"

What did you do?

git clone https://github.com/grpc/grpc-go.git google.golang.org/grpc
cd google.golang.org/grpc && make test

What did you expect to see?

test passed

What did you see instead?

go test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
go: symbol lookup error: /usr/local/lib64/libgo.so.12git: undefined symbol: os.direntType
Makefile:20: recipe for target 'test' failed
@ianlancetaylor
Copy link
Contributor

CC @thanm

@ianlancetaylor ianlancetaylor added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jan 8, 2021
@ianlancetaylor ianlancetaylor added this to the gollvm milestone Jan 8, 2021
@ianlancetaylor
Copy link
Contributor

The function is defined in os/dir_gccgo_c.c.

@thanm thanm self-assigned this Jan 8, 2021
@thanm
Copy link
Contributor

thanm commented Jan 8, 2021

Thanks, I'll take a look.

@gopherbot
Copy link

Change https://golang.org/cl/282613 mentions this issue: gollvm: add missing libgo dependent C file

@thanm
Copy link
Contributor

thanm commented Jan 8, 2021

I've checked in a fix for this issue.

@thanm thanm closed this as completed Jan 11, 2021
lumontec pushed a commit to lumontec/gollvm that referenced this issue Feb 9, 2021
Update the cmake rules for libgo to add a missing dependent
C source file (dir_gccgo_c.c in the "os" package).

Updates golang/go#43583.

Change-Id: I27820052aa3d22099a63213afa1a27ea94f92cff
Reviewed-on: https://go-review.googlesource.com/c/gollvm/+/282613
Trust: Than McIntosh <thanm@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
@golang golang locked and limited conversation to collaborators Jan 11, 2022
@rsc rsc unassigned thanm Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants