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/go: go test -i -compiler=gccgo does not work if gc standard packages are not installed #16701

Closed
tamird opened this issue Aug 15, 2016 · 8 comments

Comments

@tamird
Copy link
Contributor

tamird commented Aug 15, 2016

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go version go1.7rc3 gccgo (GCC) 7.0.0 20160812 (experimental) linux/amd64

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

    GOARCH="amd64"
    GOBIN=""
    GOEXE=""
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
    GOOS="linux"
    GOPATH="/home/tamird/go"
    GORACE=""
    GOROOT="/opt/gccgo"
    GOTOOLDIR="/opt/gccgo/libexec/gcc/x86_64-pc-linux-gnu/7.0.0"
    CC="/opt/gccgo/bin/gcc"
    GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build700605346=/tmp/go-build -gno-record-gcc-switches"
    CXX="/opt/gccgo/bin/g++"
    CGO_ENABLED="1"
    
  3. What did you do?
    go test -i github.com/cockroachdb/cockroach/...

  4. What did you expect to see?
    Nothing, exit code 0.

  5. What did you see instead?

tamird@go:~/go/src/github.com/cockroachdb/cockroach$ gccgo go test -i github.com/cockroachdb/cockroach/...
can't load package: cli/user.go:20:2: cannot find package "bufio" in any of:
    /opt/gccgo/src/bufio (from $GOROOT)
    /home/tamird/go/src/bufio (from $GOPATH)
can't load package: cli/debug.go:21:2: cannot find package "bytes" in any of:
    /opt/gccgo/src/bytes (from $GOROOT)
    /home/tamird/go/src/bytes (from $GOPATH)
can't load package: package cmd/cgo: open /opt/gccgo/src/cmd/cgo: no such file or directory
can't load package: ../../../google.golang.org/grpc/rpc_util.go:38:2: cannot find package "compress/gzip" in any of:
    /opt/gccgo/src/compress/gzip (from $GOROOT)
    /home/tamird/go/src/compress/gzip (from $GOPATH)
can't load package: sql/sort.go:21:2: cannot find package "container/heap" in any of:
    /opt/gccgo/src/container/heap (from $GOROOT)
    /home/tamird/go/src/container/heap (from $GOPATH)
can't load package: ../../chzyer/readline/debug.go:4:2: cannot find package "container/list" in any of:
    /opt/gccgo/src/container/list (from $GOROOT)
    /home/tamird/go/src/container/list (from $GOPATH)
can't load package: security/certs.go:20:2: cannot find package "crypto" in any of:
    /opt/gccgo/src/crypto (from $GOROOT)
    /home/tamird/go/src/crypto (from $GOPATH)
can't load package: security/x509.go:21:2: cannot find package "crypto/ecdsa" in any of:
    /opt/gccgo/src/crypto/ecdsa (from $GOROOT)
    /home/tamird/go/src/crypto/ecdsa (from $GOPATH)
can't load package: ../../satori/go.uuid/uuid.go:29:2: cannot find package "crypto/md5" in any of:
    /opt/gccgo/src/crypto/md5 (from $GOROOT)
    /home/tamird/go/src/crypto/md5 (from $GOPATH)
can't load package: security/x509.go:22:2: cannot find package "crypto/rand" in any of:
    /opt/gccgo/src/crypto/rand (from $GOROOT)
    /home/tamird/go/src/crypto/rand (from $GOPATH)
can't load package: security/x509.go:23:2: cannot find package "crypto/rsa" in any of:
    /opt/gccgo/src/crypto/rsa (from $GOROOT)
    /home/tamird/go/src/crypto/rsa (from $GOPATH)
can't load package: ../../satori/go.uuid/uuid.go:31:2: cannot find package "crypto/sha1" in any of:
    /opt/gccgo/src/crypto/sha1 (from $GOROOT)
    /home/tamird/go/src/crypto/sha1 (from $GOPATH)
can't load package: sql/parser/builtins.go:23:2: cannot find package "crypto/sha256" in any of:
    /opt/gccgo/src/crypto/sha256 (from $GOROOT)
    /home/tamird/go/src/crypto/sha256 (from $GOPATH)
can't load package: storage/replica_command.go:24:2: cannot find package "crypto/sha512" in any of:
    /opt/gccgo/src/crypto/sha512 (from $GOROOT)
    /home/tamird/go/src/crypto/sha512 (from $GOPATH)
can't load package: base/context.go:20:2: cannot find package "crypto/tls" in any of:
    /opt/gccgo/src/crypto/tls (from $GOROOT)
    /home/tamird/go/src/crypto/tls (from $GOPATH)
can't load package: security/certs.go:22:2: cannot find package "crypto/x509" in any of:
    /opt/gccgo/src/crypto/x509 (from $GOROOT)
    /home/tamird/go/src/crypto/x509 (from $GOPATH)
can't load package: security/x509.go:25:2: cannot find package "crypto/x509/pkix" in any of:
    /opt/gccgo/src/crypto/x509/pkix (from $GOROOT)
    /home/tamird/go/src/crypto/x509/pkix (from $GOPATH)
can't load package: ../pq/conn.go:8:2: cannot find package "database/sql" in any of:
    /opt/gccgo/src/database/sql (from $GOROOT)
    /home/tamird/go/src/database/sql (from $GOPATH)
can't load package: cli/dump.go:21:2: cannot find package "database/sql/driver" in any of:
    /opt/gccgo/src/database/sql/driver (from $GOROOT)
    /home/tamird/go/src/database/sql/driver (from $GOPATH)
can't load package: ../../chzyer/readline/remote.go:6:2: cannot find package "encoding/binary" in any of:
    /opt/gccgo/src/encoding/binary (from $GOROOT)
    /home/tamird/go/src/encoding/binary (from $GOPATH)
can't load package: util/tracing/tracer.go:21:2: cannot find package "encoding/gob" in any of:
    /opt/gccgo/src/encoding/gob (from $GOROOT)
    /home/tamird/go/src/encoding/gob (from $GOPATH)
can't load package: roachpb/data.go:22:2: cannot find package "encoding/hex" in any of:
    /opt/gccgo/src/encoding/hex (from $GOROOT)
    /home/tamird/go/src/encoding/hex (from $GOPATH)
can't load package: ../../gogo/protobuf/proto/lib.go:268:2: cannot find package "encoding/json" in any of:
    /opt/gccgo/src/encoding/json (from $GOROOT)
    /home/tamird/go/src/encoding/json (from $GOPATH)
can't load package: security/certs.go:23:2: cannot find package "encoding/pem" in any of:
    /opt/gccgo/src/encoding/pem (from $GOROOT)
    /home/tamird/go/src/encoding/pem (from $GOPATH)
can't load package: cli/debug.go:22:2: cannot find package "errors" in any of:
    /opt/gccgo/src/errors (from $GOROOT)
    /home/tamird/go/src/errors (from $GOPATH)
can't load package: cli/flags.go:20:2: cannot find package "flag" in any of:
    /opt/gccgo/src/flag (from $GOROOT)
    /home/tamird/go/src/flag (from $GOPATH)
can't load package: main.go:22:2: cannot find package "fmt" in any of:
    /opt/gccgo/src/fmt (from $GOROOT)
    /home/tamird/go/src/fmt (from $GOPATH)
can't load package: testutils/buildutil/build.go:20:2: cannot find package "go/build" in any of:
    /opt/gccgo/src/go/build (from $GOROOT)
    /home/tamird/go/src/go/build (from $GOPATH)
can't load package: sql/parser/constant.go:23:2: cannot find package "go/constant" in any of:
    /opt/gccgo/src/go/constant (from $GOROOT)
    /home/tamird/go/src/go/constant (from $GOPATH)
can't load package: sql/parser/constant.go:24:2: cannot find package "go/token" in any of:
    /opt/gccgo/src/go/token (from $GOROOT)
    /home/tamird/go/src/go/token (from $GOPATH)
can't load package: ../../satori/go.uuid/uuid.go:36:2: cannot find package "hash" in any of:
    /opt/gccgo/src/hash (from $GOROOT)
    /home/tamird/go/src/hash (from $GOPATH)
can't load package: roachpb/data.go:25:2: cannot find package "hash/crc32" in any of:
    /opt/gccgo/src/hash/crc32 (from $GOROOT)
    /home/tamird/go/src/hash/crc32 (from $GOPATH)
can't load package: package hash/fnv: cannot find package "hash/fnv" in any of:
    /opt/gccgo/src/hash/fnv (from $GOROOT)
    /home/tamird/go/src/hash/fnv (from $GOPATH)
can't load package: ../../backtrace-labs/go-bcd/tracer.go:9:2: cannot find package "io" in any of:
    /opt/gccgo/src/io (from $GOROOT)
    /home/tamird/go/src/io (from $GOPATH)
can't load package: util/log/file.go:28:2: cannot find package "io/ioutil" in any of:
    /opt/gccgo/src/io/ioutil (from $GOROOT)
    /home/tamird/go/src/io/ioutil (from $GOPATH)
can't load package: ../../backtrace-labs/go-bcd/tracer.go:10:2: cannot find package "log" in any of:
    /opt/gccgo/src/log (from $GOROOT)
    /home/tamird/go/src/log (from $GOPATH)
can't load package: ../../dustin/go-humanize/bytes.go:5:2: cannot find package "math" in any of:
    /opt/gccgo/src/math (from $GOROOT)
    /home/tamird/go/src/math (from $GOPATH)
can't load package: ../../dustin/go-humanize/big.go:4:2: cannot find package "math/big" in any of:
    /opt/gccgo/src/math/big (from $GOROOT)
    /home/tamird/go/src/math/big (from $GOPATH)
can't load package: util/retry/retry.go:21:2: cannot find package "math/rand" in any of:
    /opt/gccgo/src/math/rand (from $GOROOT)
    /home/tamird/go/src/math/rand (from $GOPATH)
can't load package: ../../chzyer/readline/remote.go:9:2: cannot find package "net" in any of:
    /opt/gccgo/src/net (from $GOROOT)
    /home/tamird/go/src/net (from $GOPATH)
can't load package: ../../backtrace-labs/go-bcd/tracer.go:11:2: cannot find package "net/http" in any of:
    /opt/gccgo/src/net/http (from $GOROOT)
    /home/tamird/go/src/net/http (from $GOPATH)
can't load package: package net/http/httptest: cannot find package "net/http/httptest" in any of:
    /opt/gccgo/src/net/http/httptest (from $GOROOT)
    /home/tamird/go/src/net/http/httptest (from $GOPATH)
can't load package: server/debug.go:31:2: cannot find package "net/http/pprof" in any of:
    /opt/gccgo/src/net/http/pprof (from $GOROOT)
    /home/tamird/go/src/net/http/pprof (from $GOPATH)
can't load package: ../../backtrace-labs/go-bcd/tracer.go:12:2: cannot find package "net/url" in any of:
    /opt/gccgo/src/net/url (from $GOROOT)
    /home/tamird/go/src/net/url (from $GOPATH)
can't load package: ../../backtrace-labs/go-bcd/bcd.go:13:2: cannot find package "os" in any of:
    /opt/gccgo/src/os (from $GOROOT)
    /home/tamird/go/src/os (from $GOPATH)
can't load package: ../../backtrace-labs/go-bcd/bcd.go:14:2: cannot find package "os/exec" in any of:
    /opt/gccgo/src/os/exec (from $GOROOT)
    /home/tamird/go/src/os/exec (from $GOPATH)
can't load package: ../../backtrace-labs/go-bcd/bcd.go:15:2: cannot find package "os/signal" in any of:
    /opt/gccgo/src/os/signal (from $GOROOT)
    /home/tamird/go/src/os/signal (from $GOPATH)
can't load package: util/log/file.go:30:2: cannot find package "os/user" in any of:
    /opt/gccgo/src/os/user (from $GOROOT)
    /home/tamird/go/src/os/user (from $GOPATH)
can't load package: ../../backtrace-labs/go-bcd/tracer.go:15:2: cannot find package "path/filepath" in any of:
    /opt/gccgo/src/path/filepath (from $GOROOT)
    /home/tamird/go/src/path/filepath (from $GOPATH)
can't load package: ../../backtrace-labs/go-bcd/bcd.go:16:2: cannot find package "reflect" in any of:
    /opt/gccgo/src/reflect (from $GOROOT)
    /home/tamird/go/src/reflect (from $GOPATH)
can't load package: ../../dustin/go-humanize/si.go:6:2: cannot find package "regexp" in any of:
    /opt/gccgo/src/regexp (from $GOROOT)
    /home/tamird/go/src/regexp (from $GOPATH)
can't load package: sql/parser/builtins.go:30:2: cannot find package "regexp/syntax" in any of:
    /opt/gccgo/src/regexp/syntax (from $GOROOT)
    /home/tamird/go/src/regexp/syntax (from $GOPATH)
can't load package: ../../../golang.org/x/sys/unix/syscall_unix.go:10:2: cannot find package "runtime" in any of:
    /opt/gccgo/src/runtime (from $GOROOT)
    /home/tamird/go/src/runtime (from $GOPATH)
can't load package: package runtime/cgo: cannot find package "runtime/cgo" in any of:
    /opt/gccgo/src/runtime/cgo (from $GOROOT)
    /home/tamird/go/src/runtime/cgo (from $GOPATH)
can't load package: ../../rcrowley/go-metrics/runtime.go:5:2: cannot find package "runtime/pprof" in any of:
    /opt/gccgo/src/runtime/pprof (from $GOROOT)
    /home/tamird/go/src/runtime/pprof (from $GOPATH)
can't load package: ../../dustin/go-humanize/times.go:6:2: cannot find package "sort" in any of:
    /opt/gccgo/src/sort (from $GOROOT)
    /home/tamird/go/src/sort (from $GOPATH)
can't load package: ../../backtrace-labs/go-bcd/tracer.go:16:2: cannot find package "strconv" in any of:
    /opt/gccgo/src/strconv (from $GOROOT)
    /home/tamird/go/src/strconv (from $GOPATH)
can't load package: ../../backtrace-labs/go-bcd/tracer.go:17:2: cannot find package "strings" in any of:
    /opt/gccgo/src/strings (from $GOROOT)
    /home/tamird/go/src/strings (from $GOPATH)
can't load package: ../../../golang.org/x/sys/unix/syscall_unix.go:11:2: cannot find package "sync" in any of:
    /opt/gccgo/src/sync (from $GOROOT)
    /home/tamird/go/src/sync (from $GOPATH)
can't load package: ../../chzyer/readline/remote.go:12:2: cannot find package "sync/atomic" in any of:
    /opt/gccgo/src/sync/atomic (from $GOROOT)
    /home/tamird/go/src/sync/atomic (from $GOPATH)
can't load package: ../../../golang.org/x/sys/unix/env_unix.go:11:8: cannot find package "syscall" in any of:
    /opt/gccgo/src/syscall (from $GOROOT)
    /home/tamird/go/src/syscall (from $GOPATH)
can't load package: acceptance/cluster/cluster.go:21:2: cannot find package "testing" in any of:
    /opt/gccgo/src/testing (from $GOROOT)
    /home/tamird/go/src/testing (from $GOPATH)
can't load package: ../../../golang.org/x/net/trace/events.go:20:2: cannot find package "text/tabwriter" in any of:
    /opt/gccgo/src/text/tabwriter (from $GOROOT)
    /home/tamird/go/src/text/tabwriter (from $GOPATH)
can't load package: ../../backtrace-labs/go-bcd/bcd.go:19:2: cannot find package "time" in any of:
    /opt/gccgo/src/time (from $GOROOT)
    /home/tamird/go/src/time (from $GOPATH)
can't load package: ../../chzyer/readline/runes.go:5:2: cannot find package "unicode" in any of:
    /opt/gccgo/src/unicode (from $GOROOT)
    /home/tamird/go/src/unicode (from $GOPATH)
can't load package: ../../gogo/protobuf/proto/text_parser.go:49:2: cannot find package "unicode/utf8" in any of:
    /opt/gccgo/src/unicode/utf8 (from $GOROOT)
    /home/tamird/go/src/unicode/utf8 (from $GOPATH)
tamird@go:~/go/src/github.com/cockroachdb/cockroach$

@ianlancetaylor

@ianlancetaylor
Copy link
Contributor

Looks like your gccgo build is broken. How exactly did you build and install it? Does any program work? What are the contents of the directory /opt/gccgo/lib64/go?

Note that if you had an existing build directory, the libgo Makefile was recently changed, such that you need to remove your existing libgo directory and rebuild, as mentioned at https://groups.google.com/d/msg/gofrontend-dev/20qRNKwJK1M/lHwm5NSwAgAJ .

@ianlancetaylor ianlancetaylor added this to the Gccgo milestone Aug 15, 2016
@ianlancetaylor ianlancetaylor self-assigned this Aug 15, 2016
@tamird
Copy link
Contributor Author

tamird commented Aug 15, 2016

Here's how I installed gccgo from a fresh debian jesse image on GCE:
Create the machine:

gcloud compute instances create go --machine-type n1-highcpu-32 --boot-disk-size 30GB --boot-disk-type pd-ssd

Build gccgo:

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y bison build-essential flex git
sudo apt-get purge
mkdir src
cd src
git clone https://github.com/gcc-mirror/gcc.git --depth 1
cd gcc
contrib/download_prerequisites
cd ..
mkdir gcc-build
cd gcc-build
../gcc/configure --prefix=/opt/gccgo --enable-languages=c,c++,go --disable-multilib --with-ld=$(which ld.gold)
make -j24
sudo make install

/opt/gccgo/lib64/go is empty except for /opt/gccgo/lib64/go/7.0.0/x86_64-pc-linux-gnu/, the content of which is:

tamird@go:~$ ls -lah /opt/gccgo/lib64/go/7.0.0/x86_64-pc-linux-gnu/
total 472K
drwxr-xr-x 29 root root 4.0K Aug 12 23:28 .
drwxr-xr-x  3 root root 4.0K Aug 12 23:28 ..
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 archive
-rw-r--r--  1 root root 5.3K Aug 12 23:28 bufio.gox
-rw-r--r--  1 root root 7.8K Aug 12 23:28 bytes.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 compress
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 container
-rw-r--r--  1 root root 5.4K Aug 12 23:28 context.gox
drwxr-xr-x  3 root root 4.0K Aug 12 23:28 crypto
-rw-r--r--  1 root root 2.5K Aug 12 23:28 crypto.gox
drwxr-xr-x  3 root root 4.0K Aug 12 23:28 database
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 debug
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 encoding
-rw-r--r--  1 root root 1.1K Aug 12 23:28 encoding.gox
-rw-r--r--  1 root root  616 Aug 12 23:28 errors.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 exp
-rw-r--r--  1 root root 4.6K Aug 12 23:28 expvar.gox
-rw-r--r--  1 root root 6.9K Aug 12 23:28 flag.gox
-rw-r--r--  1 root root 3.7K Aug 12 23:28 fmt.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 go
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 hash
-rw-r--r--  1 root root 1.1K Aug 12 23:28 hash.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 html
-rw-r--r--  1 root root  856 Aug 12 23:28 html.gox
drwxr-xr-x  3 root root 4.0K Aug 12 23:28 image
-rw-r--r--  1 root root  14K Aug 12 23:28 image.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 index
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 io
-rw-r--r--  1 root root 6.2K Aug 12 23:28 io.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 log
-rw-r--r--  1 root root 7.1K Aug 12 23:28 log.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 math
-rw-r--r--  1 root root 5.1K Aug 12 23:28 math.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 mime
-rw-r--r--  1 root root 4.5K Aug 12 23:28 mime.gox
drwxr-xr-x  4 root root 4.0K Aug 12 23:28 net
-rw-r--r--  1 root root  32K Aug 12 23:28 net.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 old
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 os
-rw-r--r--  1 root root  16K Aug 12 23:28 os.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 path
-rw-r--r--  1 root root 1.2K Aug 12 23:28 path.gox
-rw-r--r--  1 root root  13K Aug 12 23:28 reflect.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 regexp
-rw-r--r--  1 root root  12K Aug 12 23:28 regexp.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 runtime
-rw-r--r--  1 root root 4.8K Aug 12 23:28 runtime.gox
-rw-r--r--  1 root root 2.3K Aug 12 23:28 sort.gox
-rw-r--r--  1 root root 3.2K Aug 12 23:28 strconv.gox
-rw-r--r--  1 root root 5.2K Aug 12 23:28 strings.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 sync
-rw-r--r--  1 root root 3.0K Aug 12 23:28 sync.gox
-rw-r--r--  1 root root 102K Aug 12 23:28 syscall.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 testing
-rw-r--r--  1 root root  14K Aug 12 23:28 testing.gox
drwxr-xr-x  3 root root 4.0K Aug 12 23:28 text
-rw-r--r--  1 root root 7.8K Aug 12 23:28 time.gox
drwxr-xr-x  2 root root 4.0K Aug 12 23:28 unicode
-rw-r--r--  1 root root 7.8K Aug 12 23:28 unicode.gox

@tamird
Copy link
Contributor Author

tamird commented Aug 15, 2016

Oh, and the gcc SHA I built from seems to be more recent than the email you linked:

commit 153e4ac1d4d0b84102625db3042d816b3ae71c2f
Author: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Aug 12 19:56:26 2016 +0000

        PR c/71512
        * ubsan.c (instrument_si_overflow): Pass true instead of false
        to gsi_replace.
        (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
        of bbs.  Return TODO_cleanup_cfg if any returned true.

        * g++.dg/ubsan/pr71512.C: New test.
        * c-c++-common/ubsan/pr71512-1.c: New test.
        * c-c++-common/ubsan/pr71512-2.c: New test.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239430 138bc75d-0d04-0410-961f-82ee72b054a4

@ianlancetaylor
Copy link
Contributor

Does any invocation of the newly installed go tool work to build a program?

@tamird
Copy link
Contributor Author

tamird commented Aug 15, 2016

Yes, go test without -i works.

@ianlancetaylor
Copy link
Contributor

Fixed on GCC mainline by SVN revision 239486.

But that fix is not great, because it only works for the gccgo-specific version of the go tool. That version of the go tool has a known list of standard packages that it relies on in various ways. Reopening this issue in order to work out a better fix in the go tool.

@ianlancetaylor ianlancetaylor changed the title gccgo: go test -i ./... fails with can't load package: ... cannot find package "<stdlib>" cmd/go: go test -i -compiler=gccgo does not work if gc standard packages are not installed Aug 15, 2016
@ianlancetaylor ianlancetaylor modified the milestones: Unplanned, Gccgo Aug 15, 2016
kraj pushed a commit to kraj/gcc that referenced this issue Aug 15, 2016
    
    The go/build package does not know that gccgo's standard packages don't
    have source, and will report an error saying that it can not find them.
    Work around that in the cmd/go sources, since the go/build sources don't
    currently have a list of standard packages.
    
    This should get a real fix in the master sources, somehow.
    
    Fixes golang/go#16701.
    
    Reviewed-on: https://go-review.googlesource.com/27052


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239486 138bc75d-0d04-0410-961f-82ee72b054a4
@bcmills
Copy link
Contributor

bcmills commented Jan 22, 2019

Is a fix for this still needed, given build caching?

(My impression from #25138 (comment) and elsewhere is that -i is not particularly useful these days.)

@ianlancetaylor
Copy link
Contributor

I think this was fixed by https://golang.org/cl/111595.

@golang golang locked and limited conversation to collaborators Jan 22, 2020
asiekierka pushed a commit to WonderfulToolchain/gcc-ia16 that referenced this issue May 16, 2022
    
    The go/build package does not know that gccgo's standard packages don't
    have source, and will report an error saying that it can not find them.
    Work around that in the cmd/go sources, since the go/build sources don't
    currently have a list of standard packages.
    
    This should get a real fix in the master sources, somehow.
    
    Fixes golang/go#16701.
    
    Reviewed-on: https://go-review.googlesource.com/27052

From-SVN: r239486
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants