Skip to content
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

another Build issue #4

Closed
terriblefire opened this issue Apr 15, 2017 · 7 comments
Closed

another Build issue #4

terriblefire opened this issue Apr 15, 2017 · 7 comments

Comments

@terriblefire
Copy link

stephen@developer:~/gitwork/dungeonfs$ make deps

golang.org/x/sys/unix

../../gocode/src/golang.org/x/sys/unix/asm_linux_amd64.s:8 6a: No such file or directory: textflag.h
Makefile:10: recipe for target 'deps' failed
make: *** [deps] Error 2

stephen@developer:~/gitwork/dungeonfs$ apt-file search textflag.h
golang-src: /usr/share/go/src/cmd/ld/textflag.h

stephen@developer:~/gitwork/dungeonfs$ sudo apt-get install golang-src
Reading package lists... Done
Building dependency tree
Reading state information... Done
golang-src is already the newest version.
golang-src set to manually installed.
The following packages were automatically installed and are no longer required:
gdbserver libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal
libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal
libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 265 not upgraded.

stephen@developer:~/gitwork/dungeonfs$ make deps

golang.org/x/sys/unix

../../gocode/src/golang.org/x/sys/unix/asm_linux_amd64.s:8 6a: No such file or directory: textflag.h
Makefile:10: recipe for target 'deps' failed
make: *** [deps] Error 2

This is on debian 8 jessie amd64

@ChrisRx
Copy link
Owner

ChrisRx commented Apr 15, 2017

What go version does it install from the repos? Also, I mentioned this in #3 but it is worth noting that my build instructions are definitely wrong, and you should be able to install with go get -u github.com/ChrisRx/dungeonfs..., but there may be other issues like I have only tried this on go1.8/Ubuntu 16.04, for instance.

@terriblefire
Copy link
Author

Sorry i should have included this..

go version
go version go1.3.3 linux/amd64

I'll try what you stuggest.

@terriblefire
Copy link
Author

i managed to do what you stuggest but the dungeonfs file just exited without printing anything.

@ChrisRx
Copy link
Owner

ChrisRx commented Apr 15, 2017

The go version might be a little too old. I will try and figure out what minimum version is necessary and/or try to figure out what I need to do to make it work with older versions of go. On ubuntu I end up installing the newest version instead of using the repos because of how old they end up being. Thankfully it is pretty easy to install, you basically just download it, extract the go folder to a place like /usr/local/go (and maybe do some symlinks or something if you like).

@ChrisRx
Copy link
Owner

ChrisRx commented Apr 15, 2017

In the command did you include the trailing ... in the go get command? That tells it download all the packages under that root, which fixes the messed up main package I have in the root that I need to remove (that main.go is blank so go get will try and install that only without the ...)

@terriblefire
Copy link
Author

terriblefire commented Apr 15, 2017

No` must have missed it ...

stephen@developer:~/gocode/bin$ go get -u github.com/ChrisRx/dungeonfs...
# github.com/ChrisRx/dungeonfs/pkg/eval
../src/github.com/ChrisRx/dungeonfs/pkg/eval/binop.go:24: undefined: strings.Compare # golang.org/x/sys/unix
../src/golang.org/x/sys/unix/asm_linux_amd64.s:8 6a: No such file or directory: textflag.h # github.com/ChrisRx/dungeonfs/pkg/game/fs/core
`../src/github.com/ChrisRx/dungeonfs/pkg/game/fs/core/fs.go:59: undefined: signal.Ignore

@ChrisRx
Copy link
Owner

ChrisRx commented Apr 17, 2017

It looks like the version of Go is too old since the errors you are receiving are related to one of the more fundamental golang.org/x/sys/unix packages not being able to install correctly. Looking around I saw adnanh/webhook#96 which seems to indicate that 1.3.x isn't supported anymore for that package. With that said this doesn't appear to be an issue with this project, rather with your Go version, so I would recommend installing the latest Go package and trying again (I will add that 1.3 is not supported in the README). I'm closing the issue but if you still experience the same problem with a new version I will be happy to reopen and further troubleshoot. Thanks for your interest and time!

ChrisRx added a commit that referenced this issue Apr 17, 2017
@ChrisRx ChrisRx closed this as completed Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants