Coder Social home page Coder Social logo

Comments (5)

CMCDragonkai avatar CMCDragonkai commented on May 22, 2024

Perhaps here is where the potential switch can be: https://github.com/moovweb/gvm/blob/master/scripts/install#L81

We can use what go does:

# Test for Windows.
    53  case "$(uname)" in
    54  *MINGW* | *WIN32* | *CYGWIN*)
    55      echo 'ERROR: Do not use make.bash to build on Windows.'
    56      echo 'Use make.bat instead.'
    57      echo
    58      exit 1
    59      ;;
    60  esac

Unfortunately I'm not well versed in the arts of the bash script. If someone else can help?

from gvm.

CMCDragonkai avatar CMCDragonkai commented on May 22, 2024

Ping @jbussdieker

from gvm.

CMCDragonkai avatar CMCDragonkai commented on May 22, 2024

I just tried out using make.bat.

It gives out a permission denied error.

You need chmod it in Cygwin just prior to running it, here's a modified install script.

compile_go() {
display_message " * Compiling..."
unset GOARCH && unset GOOS && unset GOPATH && unset GOBIN && unset GOROOT &&
export GOBIN=$GO_INSTALL_ROOT/bin &&
export PATH=$GOBIN:$PATH &&
export GOROOT=$GO_INSTALL_ROOT &&
#cd $GO_INSTALL_ROOT/src && ./all.bash &> $GVM_ROOT/logs/go-$GO_NAME-compile.log ||
cd "$GO_INSTALL_ROOT/src"
chmod 777 ./make.bat
./make.bat &> "$GVM_ROOT/logs/go-$GO_NAME-compile.log" ||
(rm -rf "$GO_INSTALL_ROOT" && display_fatal "Failed to compile\nCheck the logs at $GVM_ROOT/logs/go-$GO_NAME-compile.log")
}

However after that comes some compilation errors:

# Building C bootstrap tool.
cmd/dist
cmd/dist/build.c:21:16: error: universal character names are only valid in C++ and C99 [-Werror]
 char *goroot = GOROOT_FINAL;
                ^
cmd/dist/build.c:21:16: error: incomplete universal character name \U
cmd/dist/build.c:21:16: error: unknown escape sequence: '\C' [-Werror]
cmd/dist/build.c:21:16: error: unknown escape sequence: '\.' [-Werror]
cmd/dist/build.c:21:16: error: unknown escape sequence: '\g' [-Werror]
cmd/dist/build.c:21:16: error: unknown escape sequence: '\g' [-Werror]
cmd/dist/build.c:22:22: error: universal character names are only valid in C++ and C99 [-Werror]
 char *goroot_final = GOROOT_FINAL;
                      ^
cmd/dist/build.c:22:22: error: incomplete universal character name \U
cmd/dist/build.c:22:22: error: unknown escape sequence: '\C' [-Werror]
cmd/dist/build.c:22:22: error: unknown escape sequence: '\.' [-Werror]
cmd/dist/build.c:22:22: error: unknown escape sequence: '\g' [-Werror]
cmd/dist/build.c:22:22: error: unknown escape sequence: '\g' [-Werror]
cc1: all warnings being treated as errors

Not sure where to go from here.

from gvm.

krzysztofantczak avatar krzysztofantczak commented on May 22, 2024

@CMCDragonkai your "fix" works at current version of GVM under cygwin (i'm using it with babun).

from gvm.

rsrini7 avatar rsrini7 commented on May 22, 2024

In babun. it says installs successfully. But under ".gvm\gos\go1.4\bin" go binary not found.

from gvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.