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

Fails to build with clang-19 #488

Open
NHOrus opened this issue Dec 30, 2024 · 3 comments
Open

Fails to build with clang-19 #488

NHOrus opened this issue Dec 30, 2024 · 3 comments

Comments

@NHOrus
Copy link

NHOrus commented Dec 30, 2024

uint is apparently defined in default includes in gcc, but is missing in clang;

std::variant<std::string, uint,

see bug https://bugs.gentoo.org/919053

@NHOrus
Copy link
Author

NHOrus commented Dec 30, 2024

See also

InputDevice::InvalidEventCode::InvalidEventCode(uint code) :

But those two files are only ones with bare uint

@NHOrus
Copy link
Author

NHOrus commented Dec 30, 2024

but main error, that's visible after typedefing uint in those two files, is:

usr/lib/llvm/19/bin/clang++ -DLOGIOPS_VERSION=\"v0.3.5\" -I/var/tmp/portage/app-misc/logiops-0.3.5/work/logiops-v0.3.5/src/logid/. -I/usr/include/libevdev-1.0 -I/var/tmp/portage/app-misc/logiops-0.3.5/work/logiops-v0.3.5/src/logid/../ipcgull/src/include  -O2 -pipe -Wall -Wextra -std=gnu++20 -MD -MT src/logid/CMakeFiles/logid.dir/logid.cpp.o -MF src/logid/CMakeFiles/logid.dir/logid.cpp.o.d -o src/logid/CMakeFiles/logid.dir/logid.cpp.o -c /var/tmp/portage/app-misc/logiops-0.3.5/work/logiops-v0.3.5/src/logid/logid.cpp
In file included from /var/tmp/portage/app-misc/logiops-0.3.5/work/logiops-v0.3.5/src/logid/logid.cpp:19:
In file included from /var/tmp/portage/app-misc/logiops-0.3.5/work/logiops-v0.3.5/src/logid/./DeviceManager.h:22:
In file included from /var/tmp/portage/app-misc/logiops-0.3.5/work/logiops-v0.3.5/src/logid/./backend/raw/DeviceMonitor.h:22:
In file included from /usr/include/c++/v1/string:647:
In file included from /usr/include/c++/v1/string_view:941:
In file included from /usr/include/c++/v1/algorithm:1842:
In file included from /usr/include/c++/v1/__algorithm/for_each.h:16:
In file included from /usr/include/c++/v1/__ranges/movable_box.h:21:
In file included from /usr/include/c++/v1/optional:1292:
In file included from /usr/include/c++/v1/iterator:712:
In file included from /usr/include/c++/v1/__iterator/common_iterator.h:31:
/usr/include/c++/v1/variant:1459:43: error: no matching function for call to object of type 'std::less<void>'
 1459 |     static_assert(is_convertible<decltype(_Operator{}(std::forward<_T1>(__t1), std::forward<_T2>(__t2))), bool>::value,
      |                                           ^~~~~~~~~~~

@Jannik2099
Copy link

note that this is about libc++ specifically, 0.3.5 builds fine for me with clang & libstdc++

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

No branches or pull requests

2 participants