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

cmd/vet,cmd/compile: failures with not a Go object file #63866

Open
gopherbot opened this issue Nov 1, 2023 · 5 comments
Open

cmd/vet,cmd/compile: failures with not a Go object file #63866

gopherbot opened this issue Nov 1, 2023 · 5 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@gopherbot
Copy link

gopherbot commented Nov 1, 2023

#!watchflakes
post <- log ~ `could not import .* \(not a [Gg]o object file`

Issue created automatically to collect these failures.

Example (log):

../../../../pkg/mod/github.com/go-pdf/fpdf@v0.6.0/svgbasic.go:20:2: could not import encoding/xml (not a go object file: )<arch>
)

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Nov 1, 2023
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "github.com/go-pdf/fpdf" && test == ""
2023-10-06 13:45 linux-ppc64le-buildlet perf@cd219cff go@e73e25b6 github.com/go-pdf/fpdf [build] (log)
../../../../pkg/mod/github.com/go-pdf/fpdf@v0.6.0/svgbasic.go:20:2: could not import encoding/xml (not a go object file: )<arch>
)

watchflakes

@bcmills bcmills changed the title github.com/go-pdf/fpdf: unrecognized failures cmd/vet,cmd/compile: failures with not a Go object file Nov 1, 2023
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Nov 1, 2023
@mknyszek
Copy link
Contributor

mknyszek commented Nov 8, 2023

In triage, we think this looks a bit like file corruption? We think the builder was maybe out of space or an incomplete file was written or something.

CC @golang/ppc64

@mknyszek mknyszek added this to the Backlog milestone Nov 8, 2023
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
post <- log ~ `could not import .* \(not a [Gg]o object file`
2023-11-16 22:18 linux-ppc64-sid-buildlet pkgsite@ee1eba0d go@82fc03f9 x/pkgsite/internal/log/stackdriverlogger [build] (log)
internal/log/stackdriverlogger/log.go:20:2: could not import golang.org/x/pkgsite/internal/experiment (not a go object file: )<arch>
)
2023-11-16 22:18 linux-ppc64-sid-buildlet pkgsite@ee1eba0d go@82fc03f9 x/pkgsite/internal/frontend/page [build] (log)
internal/frontend/page/page.go:11:2: could not import golang.org/x/pkgsite/internal/experiment (not a go object file: )<arch>
)
2023-11-16 22:18 linux-ppc64-sid-buildlet pkgsite@ee1eba0d go@82fc03f9 x/pkgsite/internal/queue [build] (log)
internal/queue/queue.go:15:2: could not import golang.org/x/pkgsite/internal/experiment (not a go object file: )<arch>
)

watchflakes

@david-caro
Copy link

I'm seeing this on my fedora 39 machine, when trying to install gopls:

dcaro@urcuchillay$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/dcaro/.cache/go-build"
GOENV="/home/dcaro/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/dcaro/Work/gows/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/dcaro/Work/gows"
GOPRIVATE=""
GOPROXY="direct"
GOROOT="/usr/lib/golang"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20.11"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2071659687=/tmp/go-build -gno-record-gcc-switches"
dcaro@urcuchillay$ go install golang.org/x/tools/gopls@latest 2> out

# the file is quite big, attached
dcaro@urcuchillay$ head -c 1000 out
# internal/reflectlite
/usr/lib/golang/src/internal/reflectlite/value.go:10:2: could not import runtime (not a go object file: 

out.zip

@david-caro
Copy link

Manually clearing the caches ($GOPATH/pkg/mod/cache/vcs/* and $GOPATH/pkg/mod/cache/download/* ) and retrying worked for me \e/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
Status: No status
Development

No branches or pull requests

3 participants