Skip to content

cmd/compile: internal compiler error: missing reader for "sync/atomic".LoadPointer #51857

Closed

Description

@thesyncim

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

$ go1.18 darwin/amd64

Does this issue reproduce with the latest release?

yes

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

go env Output
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/thesyncim/Library/Caches/go-build"
GOENV="/Users/thesyncim/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/thesyncim/go/pkg/mod"
GONOPROXY="github.com/GetStream"
GONOSUMDB="github.com/GetStream"
GOOS="darwin"
GOPATH="/Users/thesyncim/go"
GOPRIVATE="github.com/GetStream"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.18"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/thesyncim/skipset/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/m3/yrklg3ys4xv28m70sb1x8fcw0000gn/T/go-build1309898556=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

go build -gcflags=-d=unified=1 github.com/thesyncim/skipset

What did you expect to see?

No error

What did you see instead?

➜  skipset git:(master) go build -gcflags=-d=unified=1 github.com/thesyncim/skipset
# github.com/thesyncim/skipset
./util.go:34:2: internal compiler error: missing reader for "sync/atomic".LoadPointer

Activity

  1. thesyncim commented on Mar 22, 2022

    @thesyncim
    Author
  2. thesyncim commented on Mar 22, 2022

    @thesyncim
    Author

    works fine with GOEXPERIMENT=unified

    ➜  skipset git:(master) GOEXPERIMENT=unified go build -gcflags=-d=unified=1 github.com/thesyncim/skipset
    ➜  skipset git:(master)
    
  3. changed the title [-]internal compiler error: missing reader for "sync/atomic".LoadPointer[/-] [+]cmd/compile: internal compiler error: missing reader for "sync/atomic".LoadPointer[/+] on Mar 22, 2022
  4. added
    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
    on Mar 22, 2022
  5. added this to the Go1.19 milestone on Mar 22, 2022
  6. cuonglm commented on Mar 22, 2022

    @cuonglm
    Member

    You have to use -gcflags=all=-d=unified to make all packages compiled with unified IR, or using GOEXPERIMENT=unified go build without any further compiler flags.

    Closing since when this works as intended.

  7. locked and limited conversation to collaborators on Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions