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

src/duration.cpp fails to build on Arch #70

Closed
kode54 opened this issue May 10, 2024 · 1 comment · Fixed by WayfireWM/wayfire#2352
Closed

src/duration.cpp fails to build on Arch #70

kode54 opened this issue May 10, 2024 · 1 comment · Fixed by WayfireWM/wayfire#2352

Comments

@kode54
Copy link

kode54 commented May 10, 2024

The source file src/duration.cpp is missing an include for <algorithm>.

[20/33] Compiling C++ object libwf-config.so.0.9.0.p/src_duration.cpp.o
FAILED: libwf-config.so.0.9.0.p/src_duration.cpp.o
ccache c++ -Ilibwf-config.so.0.9.0.p -I. -I.. -Iinclude -I../include -I/usr/include/libevdev-1.0 -I/usr/include -I/usr/include/libxml2 -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++17 -Wno-deprecated-declarations -march=x86-64-v3 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/chris/.cache/yay/wf-config-git/src=/usr/src/debug/wf-config-git -flto=auto -fPIC -MD -MQ libwf-config.so.0.9.0.p/src_duration.cpp.o -MF libwf-config.so.0.9.0.p/src_duration.cpp.o.d -o libwf-config.so.0.9.0.p/src_duration.cpp.o -c ../src/duration.cpp
../src/duration.cpp: In member function ‘double wf::animation::duration_t::impl::get_progress_percentage() const’:
../src/duration.cpp:79:21: error: ‘clamp’ is not a member of ‘std’
   79 |         return std::clamp(progress, 0.0, 1.0);
      |                     ^~~~~
ninja: build stopped: subcommand failed.
@ammen99
Copy link
Member

ammen99 commented May 12, 2024

Fixed in #69

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

Successfully merging a pull request may close this issue.

2 participants