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: the "build_plugin_non_main" test case cannot pass for linux/mips64le port #42474

Closed
XiaodongLoong opened this issue Nov 10, 2020 · 2 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. Testing An issue that has been verified to require only test changes, not just a test failure.
Milestone

Comments

@XiaodongLoong
Copy link
Contributor

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

$ go version
go1.15.3

Does this issue reproduce with the latest release?

Yes

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

linux/mips64le

go env Output
$ go env

What did you do?

run go command tests (cmd/go):

bash run.bash --no-rebuild
--- FAIL: TestScript (0.03s)
--- FAIL: TestScript/build_plugin_non_main (0.16s)
script_test.go:210: # Plugins are only supported on linux,cgo and darwin,cgo. (0.152s)
> [!linux] [!darwin] skip
> [!cgo] skip
> go build -n testdep/p2
[stderr]
#
            # testdep/p2
            #
mkdir -p $WORK/b001/
            cat >$WORK/b001/importcfg << 'EOF' # internal
            # import config
            EOF
            cd $WORK/gopath/src/testdep/p2
            /usr/local/go/pkg/tool/linux_mips64le/compile -o $WORK/b001/_pkg_.a -trimpath "$WORK/b001=>" -p testdep/p2 -complete -buildid jfOUz6df0ldy6zplycX5/jfOUz6df0ldy6zplycX5 -goversion go1.15.3 -D "" -importcfg $WORK/b001/importcfg -pack -c=4 ./p2.go
            /usr/local/go/pkg/tool/linux_mips64le/buildid -w $WORK/b001/_pkg_.a # internal
            > ! go build -buildmode=plugin testdep/p2
            [stderr]
            -buildmode=plugin not supported on linux/mips64le
            [exit status 1]
            > stderr '-buildmode=plugin requires exactly one main package'
            FAIL: testdata/script/build_plugin_non_main.txt:7: no match for `(?m)-buildmode=plugin requires exactly one main package` found in stderr
FAIL
FAIL cmd/go 133.150s

What did you expect to see?

the "build_plugin_non_main" test case can pass for linux/mips64le port

What did you see instead?

the "build_plugin_non_main" test case can skip

@XiaodongLoong
Copy link
Contributor Author

XiaodongLoong commented Nov 10, 2020

I found the reason why the test case cannot pass and I will skip the test case on linux/mips64le, is it OK?
-buildmode=plugin not supported on linux/mips64le

@gopherbot
Copy link

Change https://golang.org/cl/268737 mentions this issue: cmd/go: the "build_plugin_non_main" test case cannot pass for linux/mips64le.

@jayconrod jayconrod added NeedsFix The path to resolution is known, but the work has not been done. Testing An issue that has been verified to require only test changes, not just a test failure. labels Nov 10, 2020
@jayconrod jayconrod added this to the Backlog milestone Nov 10, 2020
@golang golang locked and limited conversation to collaborators Nov 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. Testing An issue that has been verified to require only test changes, not just a test failure.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants