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
build: cross compiling go with a bootstrap fails with error on plan9 #17737
Comments
|
Does rc print 'rc: null list in concatenation' before the crash? Please post the output of:
Thanks. |
I am not seeing the message 'rc: nun list in concatenation' before the script fails. I have attached the stdout stderr log after running the command suggested above. |
The 'go' command from my bootstrap is not on my system path or in /bin. |
Please try this diff, which I've mailed as CL 33144:
|
CL https://golang.org/cl/33144 mentions this issue. |
That seems to have fixed it. Thank you. |
What version of Go are you using (
go version
)?1.7.3 (the bootstrap)
master branch (source)
What operating system and processor architecture are you using (
go env
)?Plan 9 (9front) 386
What did you do?
-Download a bootstrap for go 1.7.3 from here:
http://www.9legacy.org/download/go/go1.7.3-plan9-386-bootstrap.tbz
-Extract the archive
-Set GOROOT_BOOTSTRAP to the extracted directory
-Download git script for plan 9 and install in path
hget http://9legacy.org/tools/git > /root/rc/bin/git
chmod a+x /root/rc/bin/git
-Clone the latest from the go master branch:
git clone https://go.googlesource.com/go go
-Cross compile for plan9 arm:
cd go/src
GOOS=plan9 GOARCH=arm GOARM=6 ./make.rc
What did you expect to see?
I expected to see that go is cross-compiled for plan9/arm
What did you see instead?
Building Go bootstrap tool works. Building Go toolchain using ... works. Building go_bootstrap for host, plan9/386 works. Building packages and commands for host, plan9/386 fails with the following error:
install: './install' not found
It appears that the make.rc script (or some part of the process) calls out to a command called "install" on the system path, but it is not present on a standard installation.
I tried once again with an imposter install shell script that captures the command-line arguments and dumps them to a file. This time when I run make.rc I captured the arguments.
install -gcflags -ldflags -v std cmd
Putting the install shell script on the path seems to work around the problem and the cross-compilation appears to complete.
The text was updated successfully, but these errors were encountered: