You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Go wild and delete gcc on a fresh Debian VM
sudo apt remove libgcc-10-dev
# Get toolchain source before hand and go into the directoryexport CGO_ENABLED=0
git checkout go1.21.0
cd src/
./make.bash
./run.bash --no-rebuild
What did you expect to see?
A happy completion.
What did you see instead?
# Other output snipped.##### ../test
--- FAIL: Test (0.05s)
--- FAIL: Test/fixedbugs/issue10607.go (1.32s)
testdir_test.go:141: exit status 1
BUG: linkmode=external exit status 1
# command-line-arguments
loadinternal: cannot find runtime/cgo
/home/cflewis/downloads/go/pkg/tool/linux_amd64/link: running gcc failed: exec: "gcc": executable file not found in$PATH
FAIL
FAIL cmd/internal/testdir 40.625s
FAIL
2023/08/31 17:27:08 Failed: exit status 1
##### API check
ok cmd/api 39.590s
go tool dist: FAILED
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, also repro'd 1.20.6, which is the only other one I tried.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
A happy completion.
What did you see instead?
https://tip.golang.org/test/fixedbugs/issue10607.go wants
cgo
in the build tags:However, even with
CGO_ENABLED=0
, something happens during the test harness where I guess thecgo
bit is lost.The text was updated successfully, but these errors were encountered: