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

Closed
breisig opened this issue Aug 27, 2018 · 6 comments
Closed

cmd/link: go tool fails with "Inconsistency detected by ld.so" #27259

breisig opened this issue Aug 27, 2018 · 6 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@breisig
Copy link

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
Copy link
Member

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

@ianlancetaylor ianlancetaylor added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Aug 27, 2018
@ianlancetaylor ianlancetaylor added this to the Go1.12 milestone Aug 27, 2018
@ianlancetaylor
Copy link
Member

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

@breisig
Copy link
Author

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
Copy link
Member

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 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!' cmd/link: go tool fails with "Inconsistency detected by ld.so" Aug 30, 2018
@ianlancetaylor
Copy link
Member

@breisig See question above.

@ianlancetaylor ianlancetaylor added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Dec 7, 2018
@ianlancetaylor ianlancetaylor modified the milestones: Go1.12, Go1.13 Dec 7, 2018
@gopherbot
Copy link
Contributor

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Jan 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants