Skip to content

gollvm: building dkolbly/wl package brought symbol lookup error: /lib/libgo.so.12git: undefined symbol: main.main #41881

@advancedwebdeveloper

Description

@advancedwebdeveloper

Hi.

$ go version
go version go1.15.2 gollvm LLVM 12.0.0git linux/amd64

$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/oceanfish81/.cache/go-build"
GOENV="/home/oceanfish81/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/oceanfish81/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/oceanfish81/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=""
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-build938164654=/tmp/go-build -gno-record-gcc-switches -funwind-tables"

I got such errors:

~/golang_projects/wl/ui/examples/img$ go run image.go
/tmp/go-build853824791/b001/exe/image: symbol lookup error: /lib/libgo.so.12git: undefined symbol: main.main
exit status 127

$ file /lib/libgo.so.12git
/lib/libgo.so.12git: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, with debug_info, not stripped

~/golang_projects/wl/ui/examples/img$ go run img.go

command-line-arguments

./img.go:39:14: error: reference to undefined name 'ImageFromFile'

This one seems to be related to Wayland itself - so I will try resolve that (manually):

$ ~/go/bin/img ~/go/src/github.com/dkolbly/wl/ui/examples/img/bsd_daemon.jpg
Connect to Wayland server failed dial unix /run/user/1000/wayland-0: connect: no such file or directory

CC @sternix @dkolbly
CC @thanm @cherrymui

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions