KZDKM / Hyprspace

Workspace overview plugin for Hyprland
GNU General Public License v2.0
523 stars 16 forks source link

Build failure on NixOS #98

Closed Ate329 closed 4 weeks ago

Ate329 commented 1 month ago

Here is the build log

error: builder for '/nix/store/9sn6p493qgaln8llirwj1zmx39d12nr5-Hyprspace-0.1+date=2024-09-15_8f14fa2.drv' failed with exit code 1;
       last 25 log lines:
       >       |                                            |
       >       |                                            CMonitor*
       > /nix/store/31yyykqf5k683wzn79v1zi9wkspk37wv-hyprland-0.44.0+date=2024-10-19_08cc063-dev/include/hyprland/src/Compositor.hpp:159:52: note:   initializing argument 1 of 'void CCompositor::scheduleFrameForMonitor(PHLMONITOR, Aquamarine::IOutput::scheduleFrameReason)'
       >   159 |     void                   scheduleFrameForMonitor(PHLMONITOR, Aquamarine::IOutput::scheduleFrameReason reason = Aquamarine::IOutput::AQ_SCHEDULE_CLIENT_UNKNOWN);
       >       |                                                    ^~~~~~~~~~
       > [3/6] Compiling C++ object libHyprspace.so.p/src_Render.cpp.o
       > FAILED: libHyprspace.so.p/src_Render.cpp.o
       > g++ -IlibHyprspace.so.p -I. -I.. -I/nix/store/31yyykqf5k683wzn79v1zi9wkspk37wv-hyprland-0.44.0+date=2024-10-19_08cc063-dev/include -I/nix/store/31yyykqf5k683wzn79v1zi9wkspk37wv-hyprland-0.44.0+date=2024-10-19_08cc063-dev/include/hyprland/protocols -I/nix/store/31yyykqf5k683wzn79v1zi9wkspk37wv-hyprland-0.44.0+date=2024-10-19_08cc063-dev/include/hyprland -I/nix/store/16rb8pxq50zljslb8vghpggx319b5kxg-pixman-0.43.4/include/pixman-1 -I/nix/store/4xn06v8jhab16vmfq8lqlbwwj00197qq-libdrm-2.4.123-dev/include -I/nix/store/4xn06v8jhab16vmfq8lqlbwwj00197qq-libdrm-2.4.123-dev/include/libdrm -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -DWLR_USE_UNSTABLE -std=c++23 -fPIC -MD -MQ libHyprspace.so.p/src_Render.cpp.o -MF libHyprspace.so.p/src_Render.cpp.o.d -o libHyprspace.so.p/src_Render.cpp.o -c ../src/Render.cpp
       > ../src/Render.cpp: In member function 'void CHyprspaceWidget::draw()':
       > ../src/Render.cpp:95:44: error: cannot convert 'CMonitor*' to 'PHLMONITOR' {aka 'Hyprutils::Memory::CSharedPointer<CMonitor>'}
       >    95 |     g_pCompositor->scheduleFrameForMonitor(owner);
       >       |                                            ^~~~~
       >       |                                            |
       >       |                                            CMonitor*
       > In file included from ../src/Overview.hpp:2,
       >                  from ../src/Render.cpp:1:
       > /nix/store/31yyykqf5k683wzn79v1zi9wkspk37wv-hyprland-0.44.0+date=2024-10-19_08cc063-dev/include/hyprland/src/Compositor.hpp:159:52: note:   initializing argument 1 of 'void CCompositor::scheduleFrameForMonitor(PHLMONITOR, Aquamarine::IOutput::scheduleFrameReason)'
       >   159 |     void                   scheduleFrameForMonitor(PHLMONITOR, Aquamarine::IOutput::scheduleFrameReason reason = Aquamarine::IOutput::AQ_SCHEDULE_CLIENT_UNKNOWN);
       >       |                                                    ^~~~~~~~~~
       > ../src/Render.cpp:117:247: warning: narrowing conversion of 'Config::panelBorderWidth' from 'int' to 'double' [-Wnarrowing]
       >   117 |         CBox borderBox = {widgetBox.x, owner->vecPosition.y + (Config::onBottom * owner->vecTransformedSize.y) + (Config::panelHeight + Config::reservedArea - curYOffset.value()* owner->scale) * bottomInvert, owner->vecTransformedSize.x, Config::panelBorderWidth};
       >       |                                                                                                                                                                                                                                               ~~~~~~~~^~~~~~~~~~~~~~~~
       > [4/6] Compiling C++ object libHyprspace.so.p/src_Layout.cpp.o
       > [5/6] Compiling C++ object libHyprspace.so.p/src_Input.cpp.o
       > ninja: build stopped: subcommand failed.
[🔴] × nix log /nix/store/9sn6p493qgaln8llirwj1zmx39d12nr5-Hyprspace-0.1+date=2024-09-15_8f14fa2.drv
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/9sn6p493qgaln8llirwj1zmx39d12nr5-Hyprspace-0.1+date=2024-09-15_8f14fa2.drv^*'
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/l3ppyw560cxf2l2y24i09f4rx5hcghw3-gz11n5j31kh2qfgzdjx26a29kkzij10p-source
source root is gz11n5j31kh2qfgzdjx26a29kkzij10p-source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
mesonConfigurePhase flags: --prefix=/nix/store/4n4bz1i1r4bfb8xz0fw0lnmpyj65sn80-Hyprspace-0.1+date=2024-09-15_8f14fa2 --libdir=>
The Meson build system
Version: 1.5.2
Source dir: /build/gz11n5j31kh2qfgzdjx26a29kkzij10p-source
Build dir: /build/gz11n5j31kh2qfgzdjx26a29kkzij10p-source/build
Build type: native build
Project name: Hyprspace
Project version: 0.1
C++ compiler for the host machine: g++ (gcc 13.3.0 "g++ (GCC) 13.3.0")
C++ linker for the host machine: g++ ld.bfd 2.43.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C++ supports arguments -std=c++23: YES 
meson.build:8: WARNING: Consider using the built-in option for language standard version instead of using "-std=c++23".
Found pkg-config: YES (/nix/store/mi7q9m86m3rkqmc0niyvfv25ji9fxxha-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
Run-time dependency hyprland found: YES 0.44.0
Run-time dependency pixman-1 found: YES 0.43.4
Run-time dependency libdrm found: YES 2.4.123
Build targets in project: 1

Hyprspace 0.1
myamusashi commented 1 month ago

97

Ate329 commented 1 month ago

97

Oh I didn't see that. Then I'm gonna close this issue after the PR get merged

KZDKM commented 4 weeks ago

Closing as #97 is merged. Sorry I did not merge it earlier as I had to add pin for hyprpm users who are still on v0.44 so that this project could get built correctly on their end.