You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% cd<go root>/src/strings
% ../../bin/go test -race -run=. -c
What did you expect to see?
No build error
What did you see instead?
A link error.
According to #44703 the error is not expected with go tool chain built from source.
/home/xd/src/go19/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: /tmp/go-link-1967702421/000002.o: unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Supplementary Info.
% uname -a
Linux 5f7592769aea 5.4.56.bsk.1-amd64 #5.4.56.bsk.1 SMP Debian 5.4.56.bsk.1 Sun Aug 23 12:02:46 UTC 20 x86_64 GNU/Linux
% gcc --version
gcc (Debian 4.9.2-10+deb8u2) 4.9.2
% ld --version
GNU ld (GNU Binutils for Debian) 2.25
The text was updated successfully, but these errors were encountered:
You need a newer version of the system linker. The 2.25 release is from 2014. I think the support you need was released in the GNU binutils 2.26 release.
This problem is occurring with Go 2.19 because the race detector was updated to thread sanitizer v3.
For #54060
Change-Id: I6360565056d7fb7110ff00b0f3f9a3fc02ba7f2d
Reviewed-on: https://go-review.googlesource.com/c/go/+/419595
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
For golang#54060
Change-Id: I6360565056d7fb7110ff00b0f3f9a3fc02ba7f2d
Reviewed-on: https://go-review.googlesource.com/c/go/+/419595
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
go1.18.4 works fine.
go1.19rc2 fails with the same error.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
No build error
What did you see instead?
A link error.
According to #44703 the error is not expected with go tool chain built from source.
Supplementary Info.
The text was updated successfully, but these errors were encountered: