-
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
runtime/debug: TestStack fails when GOROOT_FINAL or GOROOT is not clean #62623
Comments
In general you need to set That said, as of Go 1.21 there isn't much point in setting |
I wonder, though: perhaps |
It couldn’t quite be filepath, right? A Linux build of the linker cross compiling for Windows would need to clean a Windows path. We need path/filepath/windows, etc. |
In theory, yes. In practice, I don't actually know how the embedded |
I feel that the linker doesn't need to understand the meaning of |
At the moment I agree that if we keep |
I wonder why we write "$GOROOT" at compile time and expand to the actual GOROOT at link time... I guess this may be useful previously when we had compiled .a files in GOROOT. If one moves GOROOT after compilation, those .a files are still valid. But now we don't have those .a files anymore. We probably could write the actual GOROOT (GOROOT_FINAL, if set) at compile time. Then we don't need to expand it in the linker. (We'd need to recompile if GOROOT_FINAL changes, previously we only need to relink. But that seems pretty minor.) |
GOROOT_FINAL has been removed following #62047 and the referred code uses a cleaned GOROOT path as it ends with a filepath.Join when GOROOT is set.
|
[same environment as #62620]
$ cd src
$ GOROOT_FINAL=/final/destination/ ./all.bash
Notice the expected prefix' double path separator,
/final/destination//src/
, removing the trailing/
from the environment variable works.The text was updated successfully, but these errors were encountered: