Firstbober / wapanel

Desktop-dedicated wayland bar for wayfire and other wlroots based compositors. Mir compatible.
https://firstbober.github.io/wapanel/
MIT License
55 stars 4 forks source link

Does not compile on FreeBSD13.0 #28

Closed devosalain closed 3 years ago

Firstbober commented 3 years ago

Can you tell me more about the problem, sir? Compilation errors, etc.

devosalain commented 3 years ago

Offcourse. Sorry I did not provide the correct information. In fact it compiles but crashes at running.

HOST:x: /home/x/wapanel/wapanel >mkdir build 0 HOST:x: /home/x/wapanel/wapanel >cd build 0 HOST:x: /home/x/wapanel/wapanel/build >meson .. 0 The Meson build system Version: 0.58.1 Source dir: /usr/home/x/wapanel/wapanel Build dir: /usr/home/x/wapanel/wapanel/build Build type: native build Project name: wapanel Project version: 1.0.0 C++ compiler for the host machine: ccache c++ (clang 11.0.1 "FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)") C++ linker for the host machine: c++ ld.lld 11.0.1 Host machine cpu family: x86_64 Host machine cpu: x86_64 C compiler for the host machine: ccache cc (clang 11.0.1 "FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)") C linker for the host machine: cc ld.lld 11.0.1 Library dl found: YES Found pkg-config: /usr/local/bin/pkg-config (1.7.4) Run-time dependency gtk-layer-shell-0 found: YES 0.6.0 Run-time dependency gtk+-3.0 found: YES 3.24.29 Run-time dependency gio-2.0 found: YES 2.66.8 Run-time dependency threads found: YES Run-time dependency wayland-protocols found: YES 1.21 Run-time dependency wayland-client found: YES 1.19.0 Program wayland-scanner found: YES (/usr/local/bin/wayland-scanner) Run-time dependency libpulse found: YES 14.2 Dependency threads found: YES unknown (cached) Configuring config_data.hh using configuration Build targets in project: 10

Found ninja-1.10.2 at /usr/local/bin/ninja HOST:x: /home/x/wapanel/wapanel/build >ninja 0 [20/40] Compiling C++ object src/applets/app-finder/libwapanel-applet-app-finder.so.p/components_list_area.cc.o In file included from ../src/applets/app-finder/components/list_area.cc:1: ../src/applets/app-finder/components/list_area.hh:37:7: warning: private field 'm_search_container_visible' is not used [-Wunused-private-field] bool m_search_container_visible = false; ^ 1 warning generated. [40/40] Linking target wapanel HOST:x: /home/x/wapanel/wapanel/build >aa 0 build.ninja config_data.hh libwapanel-appletapi.a.p/ meson-logs/ meson-uninstalled/ thirdparty/ wapanel.p/ compile_commands.json libwapanel-appletapi.a meson-info/ meson-private/ src/ wapanel*
HOST:x: /home/x/wapanel/wapanel/build >./wapanel 0 [wapanel] [INFO] (../src/main.cc:193): Started wapanel version 1.0.0 zsh: abort ./wapanel HOST:x: /home/x/wapanel/wapanel/build >
It ungracefully ends with abort while running.

Firstbober commented 3 years ago

Very weird, I will make a VM with FreeBSD and try to reproduce it.

jbeich commented 3 years ago

Works fine for me on Sway snapshot. Maybe try the port I've just created.

Firstbober commented 3 years ago

Checked on GhostBSD VM, wapanel gets past config creation etc. but crashes due to being on x11 session. Try port mentioned above or compile it again. In short, can't reproduce it.

devosalain commented 3 years ago

The program ends with "abort trap". freebsd-version -kru
13.0-RELEASE-p3 13.0-RELEASE-p3 13.0-RELEASE-p3

jbeich commented 3 years ago

Build the port WITH_DEBUG=1 or this repo with --buildtype debug then run wapanel under lldb/gdb and type bt after crash to get an idea where and maybe why it happens.

For example, I can't reproduce inside FreeBSD 13.0 amd64 jail under Sway 1.6.1 and Wayfire 0.7.2 with default configs. To figure out whether abort trap is due to a pilot error or an unhandled error condition you need to provide more details.

Firstbober commented 3 years ago

It must crash in a very weird place before any config reading. As jbeich said, running wapanel with debugger is the only viable option. I'm really curious what makes it abort.