Open darkn3rd opened 3 years ago
I get this error when trying to follow those steps:
gvm install go1.4 -B
Installing go1.4 from binary source
ERROR: Binary Go unavailable for this platform
I'm using MacOS Big Sur
https://github.com/moovweb/gvm#installing-go
There is a list of switches, you might want to read the documentation carefully.
I am late to the party, but ...
cmd/dist
lib9 libbio liblink cmd/cc cmd/gc cmd/6l /Users/pebishop/.gvm/gos/go1.4/src/cmd/6l/../ld/dwarf.c:1472:15: error: implicit conversion from 'int' to 'char' changes value from 156 to -100 [-Werror,-Wconstant-conversion] /Users/pebishop/.gvm/gos/go1.4/src/cmd/6l/../ld/dwarf.c:1756:21: error: implicit conversion from 'int' to 'char' changes value from 144 to -112 [-Werror,-Wconstant-conversion] /Users/pebishop/.gvm/gos/go1.4/src/cmd/6l/../ld/lib.h:168:13: note: expanded from macro 'cput' go tool dist: FAILED: clang -Wall -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-initializers -Werror -fno-common -ggdb -pipe -Wuninitialized -O2 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -mmacosx-version-min=10.6 -c -m64 -I /Users/pebishop/.gvm/gos/go1.4/include -I /Users/pebishop/.gvm/gos/go1.4/src/cmd/6l -o /Users/pebishop/.gvm/gos/go1.4/pkg/obj/cmd/6l/dwarf.o /Users/pebishop/.gvm/gos/go1.4/src/cmd/6l/../ld/dwarf.c ...
getting the same error. I see this: https://github.com/moovweb/gvm/issues/369#issuecomment-826634454 was it helpful - cause I don't have a clear understanding of how the switches should work.
For others encountering this issue, as per the README, you need a preexisting go installation for gvm to function. However, unlikely the README, you can't use gvm
to install go1.4 as the packages no longer are available. A quick solution that is less than optimal, but functional, is to do:
brew install go
gvm install go1.16
gvm use go1.16
brew uninstall go
After that, you should be good to go (assuming you have both brew
and gvm
installed and configured).
Description
Installing
go
requires thatgo
is already installed.Steps to Reproduce
Expected Results
go1.16 would be installed
Actual Results
I get this error:
And looking at the compile log: