-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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 1.8 tests fail in "internal linking of -buildmode=pie" #19132
Comments
At this point the Go tools have been installed. What do you see if you run
|
@lfam in nixpkgs#23122 we've have a patch for stripping out the conditional responsible for adding the test for internal linking of PIE binaries. |
@ianlancetaylor , does not output much more than that:
Works without
|
@lfam , I've poked at it a bit more and came to the conclusion it's not a
(substitute* (find-files "cmd" "asm.c")
(("/lib/ld-linux.*\\.so\\.[0-9]") loader)) For
Here is a seemingly working patch for guix recipe: diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4bb54f031..8ddb13d69 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -136,6 +136,6 @@
(substitute* "time/zoneinfo_unix.go"
(("/usr/share/zoneinfo/") tzdata-path))
- (substitute* (find-files "cmd" "asm.c")
- (("/lib/ld-linux.*\\.so\\.[0-9]") loader))
+ (substitute* (find-files "cmd" "\\.go")
+ (("/lib(64)?/ld-linux.*\\.so\\.[0-9]") loader))
#t)))
@@ -197,9 +197,9 @@ sequential processes (CSP) concurrent programming features added.")
(license license:bsd-3)))
-(define-public go-1.7
+(define-public go-1.8
(package
(inherit go-1.4)
(name "go")
- (version "1.7.5")
+ (version "1.8")
(source
(origin
@@ -209,5 +209,5 @@ sequential processes (CSP) concurrent programming features added.")
(sha256
(base32
- "058q57zmi23rflingzhy1b87yl69mb62ql2psfxqr7q7l89lb0sf"))))
+ "15imc9ffzdblgdccrjmkg45n0lp23py76v905w4yfjxlhzsnas20"))))
(arguments
(substitute-keyword-arguments (package-arguments go-1.4)
@@ -363,3 +363,3 @@ sequential processes (CSP) concurrent programming features added.")
,@(package-native-inputs go-1.4)))))
-(define-public go go-1.7)
+(define-public go go-1.8) What go could do for |
This should already work:
I can't tell whether there is anything else we need to do here. |
@ianlancetaylor, ping. Should this issue be closed? |
Yes, closing because I don't see anything we can reasonably change in Go. Please comment if you disagree. |
No bug no milestone. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.4.3 linux/amd64
I'm using this to build Go 1.8 within GNU Guix. I've attached a copy of the build's environment variables.
environment-variables.txt
What operating system and processor architecture are you using (
go env
)?What did you do?
I tried building Go 1.8 in GNU Guix. I applied the patch found below to a Guix source tree [0] and tried to build Go 1.8.
What did you expect to see?
I expected to build Go 1.8 and pass the test suite, excluding tests that are known to fail in the Guix build environment.
What did you see instead?
The test suite fails during "internal linking of -buildmode=pie", specifically like this:
I've attached the full build log.
go-1.8-build-log.txt
It appears to be the same sort of failure noticed by a Nix user (Guix and Nix are very similar build environments):
NixOS/nixpkgs#20082
[0]
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/golang.scm
The text was updated successfully, but these errors were encountered: