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: all.bash now fails in TestBuildComplex with a gccgo error #22089

Closed
siebenmann opened this issue Sep 29, 2017 · 1 comment
Closed

cmd/go: all.bash now fails in TestBuildComplex with a gccgo error #22089

siebenmann opened this issue Sep 29, 2017 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@siebenmann
Copy link

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

go version devel +bad5abf64d Fri Sep 29 09:27:14 2017 +0000 linux/amd64

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

GOARCH="amd64"
GOOS="linux"

This is on Fedora 26 with a gccgo that reports a version of gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC).

What did you do?

As of commit d8efa0e, running all.bash in the latest Go tip fails with:

ok      cmd/fix 0.008s
--- FAIL: TestBuildComplex (0.45s)
        go_test.go:732: running testgo [build -o /dev/null complex]
        go_test.go:735: running testgo [build -o /dev/null -compiler=gccgo complex]
        go_test.go:735: standard error:
        go_test.go:735: # complex/nest/sub/test12
                gccgo: error: trivial.c: No such file or directory
                gccgo: error: unrecognized command line option ‘-fgo-importcfg=/dev/null’

        go_test.go:735: go [build -o /dev/null -compiler=gccgo complex] failed unexpectedly: exit status 2
FAIL
FAIL    cmd/go  58.654s

At the immediately preceding commit 0be2d52, things fail differently:

##### ../misc/cgo/testshared
--- FAIL: TestGoPathShlibGccgo (0.10s)
        shared_test.go:67: executing go install -installsuffix=5577006791947779410 -compiler=gccgo -buildmode=shared -linkshared depBase failed exit status 2:
                # depBase
                gccgo: error: unrecognized command line option ‘-importcfg’; did you mean ‘-Wimport’?
--- FAIL: TestTwoGopathShlibsGccgo (0.10s)
        shared_test.go:67: executing go install -installsuffix=5577006791947779410 -compiler=gccgo -buildmode=shared -linkshared depBase failed exit status 2:
                # depBase
                gccgo: error: unrecognized command line option ‘-importcfg’; did you mean ‘-Wimport’?
FAIL
exit status 1
FAIL    _/tmp/go/misc/cgo/testshared    13.432s
2017/09/29 11:56:24 Failed: exit status 1

If you go back to commit a299345, everything works.

@gopherbot gopherbot added this to the Gccgo milestone Sep 29, 2017
@ianlancetaylor ianlancetaylor modified the milestones: Gccgo, Go1.10 Sep 29, 2017
@ianlancetaylor ianlancetaylor added the NeedsFix The path to resolution is known, but the work has not been done. label Sep 29, 2017
@gopherbot
Copy link

Change https://golang.org/cl/67191 mentions this issue: cmd/go: don't modify input slice in gccSupportsFlag

@golang golang locked and limited conversation to collaborators Sep 29, 2018
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.
Projects
None yet
Development

No branches or pull requests

3 participants