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/link: go tool fails with "Inconsistency detected by ld.so" #27259

Open
breisig opened this Issue Aug 27, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@breisig

breisig commented Aug 27, 2018

Please answer these questions before submitting your issue. Thanks!

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

Go 1.11

Does this issue reproduce with the latest release?

Yes, even with Go 1.10 too.

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

Glibc 2.28
gcc 8.2
binutils 2.31
Linux kernel 4.18.5

What did you do?

Build it from source
Get a copy of go 1.11 compiled amd64 binary and extract it to /opt/go (for bootstrapping)
extract Go 1.11 from source
cd src
GOROOT_BOOTSTRAP=/opt/go GOROOT_FINAL=/opt/go-1.11 ./all.bash

If possible, provide a recipe for reproducing the error.
root@server ~# go version
Inconsistency detected by ld.so: get-dynamic-info.h: 131: elf_get_dynamic_info: Assertion `info[DT_RELAENT]->d_un.d_val == sizeof (ElfW(Rela))' failed!

What did you expect to see?

go 1.11

What did you see instead?

When running any go command causes the following error output.

Inconsistency detected by ld.so: get-dynamic-info.h: 131: elf_get_dynamic_info: Assertion `info[DT_RELAENT]->d_un.d_val == sizeof (ElfW(Rela))' failed!

@ianlancetaylor

This comment has been minimized.

Contributor

ianlancetaylor commented Aug 27, 2018

Please include the output of go env as requested by the issue template. Thanks.

@ianlancetaylor ianlancetaylor added this to the Go1.12 milestone Aug 27, 2018

@ianlancetaylor

This comment has been minimized.

Contributor

ianlancetaylor commented Aug 27, 2018

Exactly which "go 1.11 compiled amd64 binary" did you use?

@breisig

This comment has been minimized.

breisig commented Aug 27, 2018

@ianlancetaylor
root@server ~# go env
Inconsistency detected by ld.so: get-dynamic-info.h: 131: elf_get_dynamic_info: Assertion `info[DT_RELAENT]->d_un.d_val == sizeof (ElfW(Rela))' failed!

Also
I used the following binary ( https://dl.google.com/go/go1.11.linux-amd64.tar.gz ) to use for bootstrapping ( /opt/go)

@ianlancetaylor

This comment has been minimized.

Contributor

ianlancetaylor commented Aug 28, 2018

Did you set any of GOARCH, GOOS, GOHOSTARCH, GOHOSTOS in the environment when you built your version of Go? What is the output of uname -m on your system?

@FiloSottile FiloSottile changed the title from Compiling Go from source causes all go commands to error with 'Inconsistency detected by ld.so: get-dynamic-info.h: 131: elf_get_dynamic_info: Assertion `info[DT_RELAENT]->d_un.d_val == sizeof (ElfW(Rela))' failed!' to cmd/link: go tool fails with "Inconsistency detected by ld.so" Aug 30, 2018

@ianlancetaylor

This comment has been minimized.

Contributor

ianlancetaylor commented Dec 7, 2018

@breisig See question above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment