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

go get fails on Ubuntu 18.10 with glfw error #94

Closed
spacemonkey opened this issue Nov 30, 2018 · 1 comment
Closed

go get fails on Ubuntu 18.10 with glfw error #94

spacemonkey opened this issue Nov 30, 2018 · 1 comment

Comments

@spacemonkey
Copy link

Describe the bug
Tried go get and failed with the following output below. I made sure I had required libs, thought I'd share what happened here.

To Reproduce
Steps to reproduce the behavior:

  1. Get Ubuntu 18.10 machine
  2. Install golang 1.11.2
  3. sudo apt install libgl1-mesa-dev xorg-dev
  4. go get -u github.com/liamg/aminal
  5. See error

Expected behavior
I was expecting the repo to download and compile without errors. I'm a casual drive-by tire kicker, apologies if this is a known/routine issue!

Screenshots

○ → go get -u github.com/liamg/aminal
# github.com/liamg/aminal/vendor/github.com/go-gl/glfw/v3.2/glfw
In file included from ../go/src/github.com/liamg/aminal/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_linbsd.go:24:
../go/src/github.com/liamg/aminal/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/linux_joystick.c: In function ‘_glfwInitJoysticksLinux’:
../go/src/github.com/liamg/aminal/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/linux_joystick.c:224:42: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 9 [-Wformat-truncation=]
             snprintf(path, sizeof(path), "%s/%s", dirname, entry->d_name);
                                          ^~~~~~~
In file included from /usr/include/stdio.h:873,
                 from /usr/include/X11/Xcursor/Xcursor.h:26,
                 from ../go/src/github.com/liamg/aminal/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_platform.h:39,
                 from ../go/src/github.com/liamg/aminal/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/internal.h:169,
                 from ../go/src/github.com/liamg/aminal/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_init.c:28,
                 from ../go/src/github.com/liamg/aminal/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_linbsd.go:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 12 and 267 bytes into a destination of size 20
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Environment (please complete the following information):

  • OS + Version: Ubuntu 18.10
  • Go Version: 1.11.2
  • Shell: Bash

Additional context
Just curious and trying to run go get and this is the result.
Logs

NOTE: You spelled 'debug' as 'deug' in the template, might want to fix that:

"Run aminal with the --debug flag, then paste the relevant deug logs here."

@liamg
Copy link
Owner

liamg commented Nov 30, 2018

Whilst this is indeed an error, it should continue to build. The error you see there will be resolved in GLFW 3.3, which is close to being complete, and I will shortly be using here.

Do you get any further output? It may take a while to build the first time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants