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

gccgo: go1: internal compiler error: in fold_convert_loc, at fold-const.c:2524 #23606

Closed
tamird opened this issue Jan 29, 2018 · 1 comment
Closed
Milestone

Comments

@tamird
Copy link
Contributor

tamird commented Jan 29, 2018

Possible duplicate of #22666.

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

go version go1.10beta2 gccgo (GCC) 8.0.1 20180126 (experimental) linux/amd64

Does this issue reproduce with the latest release?

Latest stable release of gccgo doesn't compile the code in question.

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

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/tduberstein/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/tduberstein/local/go"
GORACE=""
GOROOT="/home/tduberstein/local/gcc/gcc"
GOTMPDIR=""
GOTOOLDIR="/home/tduberstein/local/gcc/gcc/libexec/gcc/x86_64-pc-linux-gnu/8.0.1"
GCCGO="/home/tduberstein/local/gcc/gcc/bin/gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build949927303=/tmp/go-build -gno-record-gcc-switches -funwind-tables"

What did you do?

cd $(go env GOPATH)/src/github.com/cockroachdb/cockroach
make test PKG=./pkg/server

What did you expect to see?

Passing tests.

What did you see instead?

# github.com/cockroachdb/cockroach/pkg/server
go1: internal compiler error: in fold_convert_loc, at fold-const.c:2524
0x67bf18 fold_convert_loc(unsigned int, tree_node*, tree_node*)
        ../../src/gcc/fold-const.c:2524
0x80f7e5 Gcc_backend::constructor_expression(Btype*, std::vector<Bexpression*, std::allocator<Bexpression*> > const&, Location)
        ../../src/gcc/go/go-gcc.cc:1788
0x7fe01b Struct_construction_expression::do_get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/expressions.cc:12679
0x7e7374 Heap_expression::do_get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/expressions.cc:14275
0x7f524b Type_conversion_expression::do_get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/expressions.cc:3509
0x800de8 Call_expression::do_get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/expressions.cc:10220
0x85a08d Defer_statement::do_get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/statements.cc:2600
0x821ba8 Block::get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/gogo.cc:6107
0x85642c Block_statement::do_get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/statements.cc:1771
0x821ba8 Block::get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/gogo.cc:6107
0x82279e Function::build(Gogo*, Named_object*)
        ../../src/gcc/go/gofrontend/gogo.cc:5713
0x8233bb Named_object::get_backend(Gogo*, std::vector<Bexpression*, std::allocator<Bexpression*> >&, std::vector<Btype*, std::allocator<Btype*> >&, std::vector<Bfunction*, std::allocator<Bfunction*> >&)
        ../../src/gcc/go/gofrontend/gogo.cc:7483
0x82b7ef Gogo::write_globals()
        ../../src/gcc/go/gofrontend/gogo.cc:1329
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
FAIL    github.com/cockroachdb/cockroach/pkg/server [build failed]
make: *** [test] Error 2
@gopherbot gopherbot added this to the Gccgo milestone Jan 29, 2018
@tamird tamird changed the title gccgo: go1: internal compiler error: in fold_convert_loc, at fold-co gccgo: go1: internal compiler error: in fold_convert_loc, at fold-const.c:2524 Jan 30, 2018
@ianlancetaylor
Copy link
Member

Thanks for the reported. Fixed by https://gcc.gnu.org/ml/gcc-patches/2018-01/msg02408.html .

@golang golang locked and limited conversation to collaborators Jan 31, 2019
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

3 participants