-
Notifications
You must be signed in to change notification settings - Fork 5
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
fails to compile on ubuntu 20.04 #1
Comments
Im running FreeBSD, and have similar issues with building against latest glfw. I managed to get around my probs by editting out the code in the "linux joystick" driver parts of glfw. Its not much of a fix. but it gets me rolling. Only mentioning that because the errors you are seeing are in the same area. But it does look like a problem with a combination of C++ compiler and glfw release that you are building off there. Will try and get you a better solution in the meantime. |
Hello Steve, thanks for the lead on the fix. Unfortunately, I'm not sure where to look to edit out the code in the "linux joystick" part of the driver. Not using the machine for gaming, this fix wouldn't sacrifice any functionality for me. (if I understand correctly). |
Another couple of thinghs we'd try is to upgrade the version of fyne used in this version... (it is running an old one Could you please try with the latest (1.2.4) and the develop branch of fyne ? With go module enabled, from the fyne-opensnitch project:
|
The dev version : $ go get -u fyne.io/fyne@develop && go build . return this error: go1: internal compiler error: in mangled_name, at go/gofrontend/names.cc:559 |
the latest version : $ go get -u fyne.io/fyne@latest && go build . return these errors : github.com/go-gl/glfw/v3.2/glfwIn file included from ../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/c_glfw_linbsd.go:24: github.com/go-gl/glfw/v3.2/glfwgo1: internal compiler error: in mangled_name, at go/gofrontend/names.cc:559 github.com/go-gl/gl/v3.2-core/glgo1: internal compiler error: in mangled_name, at go/gofrontend/names.cc:559 |
mmm weird. Tried the version from master on a ubuntu 20.04 box and apart the warning about the "linux joystick" (that can be safely ignored) it seems to compile.
My env info:
|
Hello Luca, OS ubuntu 20.04 i tried to compile it with the go : current, latest, and dev. They all worked just fine. The dev version gave me zero error. The opensnitch deamon is running... ● opensnitchd.service - OpenSnitch is a GNU/Linux port of the Little Snitch application firewall. but... upon launching ./fyne-opensnitch [2020-04-22 13:41:17] INF starting Fyne OpenSnitch application goroutine 54 [running]: |
Happy to see it is compiling now. |
I thought it might be because of using |
To use fyne@latest or [email protected] you need to run go get with the version you want to use againts: To check the version used into the project you can run |
Here's what the suggested commands return: $ go get -u fyne.io/[email protected] && go build . AND... $ go get -u fyne.io/fyne@latest && go build . goroutine 44 [running]: |
$ go list -m fyne.io/fyne |
wrt 1.0.2 there was a typo on my side it'd be Anyway let's focus on the working one v1.2.4 :) To fix, remove the file |
I had thought of that potential fix! I still get the error when removing /tmp/osui.sock. :( |
$ rm /tmp/osui.sock [2020-04-22 18:04:53] INF starting Fyne OpenSnitch application runtime stack: goroutine 98 [syscall, locked to thread]: goroutine 1 [select, locked to thread]: goroutine 6 [sleep]: goroutine 14 [syscall]: goroutine 82 [chan receive]: goroutine 83 [syscall]: goroutine 84 [chan receive]: goroutine 37 [chan receive]: goroutine 38 [chan receive]: goroutine 85 [chan receive]: goroutine 16 [IO wait]: goroutine 99 [chan receive]: goroutine 59 [select]: goroutine 60 [select]: goroutine 61 [IO wait]: goroutine 101 [select]: goroutine 102 [select]: goroutine 103 [IO wait]: goroutine 63 [select]: goroutine 64 [select]: goroutine 65 [IO wait]: goroutine 105 [select]: goroutine 106 [select]: goroutine 107 [IO wait]: goroutine 41 [select]: goroutine 42 [select]: goroutine 43 [IO wait]: goroutine 69 [select]: goroutine 70 [select]: goroutine 71 [IO wait]: |
The version compiled against the @develop produces this error, if that helps... $ ./fyne-opensnitch_dev [2020-04-22 18:07:23] INF starting Fyne OpenSnitch application goroutine 84 [running]: |
Ok, as expected the actual code would need some love to be compatible with latest versions of fyne :) Please note that there are plans to update this project to latest version of fyne but it won't happen until the data binding lands in fyne (planned for fyne v1.3 thanks to @steveoc64 and fyne's team for the hard work :) ) That said, the best way to test this project at the moment is using the old version of fyne defined in the current code. Please also note that this project is still a work in progess, so do not expect to be fully functional ;-) |
Well, I tried and successfully compiled with v1.1.0 as required in the go.mod file. Still get the same errors as I do with other version of fyne. v1.0.2 can't be found. Not sure what else to try at this point. |
I'm sorry you're having trouble installing fyne-opensnitch.
After that you should see into the opensnitch logs |
You should not use the version v1.1.0 since it has not been tested with the actual codebase (trying different versions was only for debugging purpose aiming to found a possible issue with ubuntu 20.04). Just to be sure we have the same setup, could you please follow the step by step above and let me know if it solves ? This will ensure you are using version from commit e8f1dab where fyne version is this https://github.com/lucor/fyne-opensnitch/blob/master/go.mod#L6 With regard to the joystick messages, as said above, it is a warning and can be ignored at the moment and will removed when we will be upgrade to use the latest version of fyne ;) |
all steps, exactly as described. Still get the same crash. ./fyne-opensnitch runtime stack: goroutine 13 [syscall, locked to thread]: goroutine 1 [select, locked to thread]: goroutine 6 [sleep]: goroutine 66 [syscall]: goroutine 82 [chan receive]: goroutine 12 [runnable]: goroutine 14 [chan receive]: goroutine 98 [runnable]: goroutine 29 [chan receive]: |
It worked! |
Sorry, rules editing is not supported yet. |
Hello, I get an error upon attempting compiling the UI.
$ go build -o fyne-opensnitch && ./fyne-opensnitch
github.com/go-gl/glfw/v3.2/glfw
In file included from /home/war/go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/c_glfw_linbsd.go:24:
/home/war/go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/linux_joystick.c: In function ‘_glfwInitJoysticksLinux’:
/home/war/go/pkg/mod/github.com/go-gl/[email protected]/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=]
224 | snprintf(path, sizeof(path), "%s/%s", dirname, entry->d_name);
| ^~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/X11/Xcursor/Xcursor.h:26,
from /home/war/go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/x11_platform.h:39,
from /home/war/go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/internal.h:169,
from /home/war/go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/x11_init.c:28,
from /home/war/go/pkg/mod/github.com/go-gl/[email protected]/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
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
github.com/go-gl/glfw/v3.2/glfw
go1: internal compiler error: in mangled_name, at go/gofrontend/names.cc:559
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-9/README.Bugs for instructions.
github.com/go-gl/gl/v3.2-core/gl
go1: internal compiler error: in mangled_name, at go/gofrontend/names.cc:559
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-9/README.Bugs for instructions.
The text was updated successfully, but these errors were encountered: