Code Monkey home page Code Monkey logo

Comments (2)

gubatron avatar gubatron commented on May 27, 2024

go get -u breaks on Linux

$ go get -u github.com/tklauser/go-sysconf
# github.com/tklauser/go-sysconf
tklauser/go-sysconf/zsysconf_values_linux_riscv64.go:7:24: _AIO_PRIO_DELTA_MAX redeclared in this block
	previous declaration at tklauser/go-sysconf/zsysconf_values_linux_amd64.go:7:24
tklauser/go-sysconf/zsysconf_values_linux_riscv64.go:8:24: _BC_BASE_MAX redeclared in this block
	previous declaration at tklauser/go-sysconf/zsysconf_values_linux_amd64.go:8:24
tklauser/go-sysconf/zsysconf_values_linux_riscv64.go:9:24: _BC_DIM_MAX redeclared in this block
	previous declaration at tklauser/go-sysconf/zsysconf_values_linux_amd64.go:9:24
tklauser/go-sysconf/zsysconf_values_linux_riscv64.go:10:24: _BC_SCALE_MAX redeclared in this block
	previous declaration at tklauser/go-sysconf/zsysconf_values_linux_amd64.go:10:24
tklauser/go-sysconf/zsysconf_values_linux_riscv64.go:11:24: _BC_STRING_MAX redeclared in this block
	previous declaration at tklauser/go-sysconf/zsysconf_values_linux_amd64.go:11:24
tklauser/go-sysconf/zsysconf_values_linux_riscv64.go:12:24: _COLL_WEIGHTS_MAX redeclared in this block
	previous declaration at tklauser/go-sysconf/zsysconf_values_linux_amd64.go:12:24
tklauser/go-sysconf/zsysconf_values_linux_riscv64.go:13:24: _DELAYTIMER_MAX redeclared in this block
	previous declaration at tklauser/go-sysconf/zsysconf_values_linux_amd64.go:13:24
tklauser/go-sysconf/zsysconf_values_linux_riscv64.go:14:24: _EXPR_NEST_MAX redeclared in this block
	previous declaration at tklauser/go-sysconf/zsysconf_values_linux_amd64.go:14:24
tklauser/go-sysconf/zsysconf_values_linux_riscv64.go:15:24: _HOST_NAME_MAX redeclared in this block
	previous declaration at tklauser/go-sysconf/zsysconf_values_linux_amd64.go:15:24
tklauser/go-sysconf/zsysconf_values_linux_riscv64.go:16:24: _LINE_MAX redeclared in this block
	previous declaration at tklauser/go-sysconf/zsysconf_values_linux_amd64.go:16:24
tklauser/go-sysconf/zsysconf_values_linux_riscv64.go:16:24: too many errors
ubuntu@dos:~/go/src/github.com$ uname -a
Linux dos.diariobitcoin.com 5.4.0-1037-aws #39~18.04.1-Ubuntu SMP Fri Jan 15 02:48:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

go get -u works on mac

$ go get -u github.com/tklauser/go-sysconf
go: downloading github.com/tklauser/go-sysconf v0.3.8
go: downloading github.com/tklauser/numcpus v0.2.3
go: downloading golang.org/x/sys v0.0.0-20210816074244-15123e1e1f71
go: downloading github.com/tklauser/numcpus v0.3.0
go: downloading golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55

from go-sysconf.

tklauser avatar tklauser commented on May 27, 2024

Thanks for the report. Which version of Go are you using on Linux? It seems the version you're using doesn't know about GOARCH=riscv64 yet (i.e. Go 1.10 or earlier).

In any case, I'll add build tags to the generated files which should fix this for older Go versions as well.

from go-sysconf.

Related Issues (6)

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.