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

A build error #143

Closed
ryeosa opened this issue Aug 15, 2024 · 4 comments
Closed

A build error #143

ryeosa opened this issue Aug 15, 2024 · 4 comments

Comments

@ryeosa
Copy link

ryeosa commented Aug 15, 2024

bitpolymul already fetched.
-- bitpolymulConfig.cmake : /home/sasa/code/snni/libOTe/out/install/linux/lib/cmake/bitpolymul
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sasa/code/snni/libOTe/out/build/linux
Scanning dependencies of target KyberOT
[ 0%] Building CXX object macoro/macoro/CMakeFiles/macoro.dir/thread_pool.cpp.o
Consolidate compiler generated dependencies of target KyberOT
[ 8%] Built target KyberOT
In file included from /home/sasa/code/snni/libOTe/out/macoro/macoro/thread_pool.cpp:1:
/home/sasa/code/snni/libOTe/out/macoro/macoro/thread_pool.h: In constructor ‘macoro::thread_pool::work::work(macoro::thread_pool::work&&)’:
/home/sasa/code/snni/libOTe/out/macoro/macoro/thread_pool.h:230:39: error: ‘exchange’ is not a member of ‘std’
230 | work(work&& w) : mEx(std::exchange(w.mEx, nullptr)) {}
| ^~~~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [macoro/macoro/CMakeFiles/macoro.dir/build.make:76: macoro/macoro/CMakeFiles/macoro.dir/thread_pool.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:377: macoro/macoro/CMakeFiles/macoro.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I see #141 there is a similar problem, and my g++ is also 13

What should I do, which version of g++ is more suitable?

@ladnir
Copy link
Member

ladnir commented Aug 16, 2024

as a quick fix add #include <utility> to the top of /home/sasa/code/snni/libOTe/out/macoro/macoro/thread_pool.h

Ill release a fix soon

@ryeosa ryeosa closed this as completed Aug 18, 2024
@zhouxv
Copy link

zhouxv commented Dec 6, 2024

as a quick fix add #include <utility> to the top of /home/sasa/code/snni/libOTe/out/macoro/macoro/thread_pool.h

Ill release a fix soon

!!! Until 12/06/2024,no fix

@ladnir
Copy link
Member

ladnir commented Dec 6, 2024

Lost track of it due to it being closed. I'll take a look tonight.

@ladnir ladnir reopened this Dec 6, 2024
@ladnir
Copy link
Member

ladnir commented Dec 6, 2024

hopefully fixed.

@ladnir ladnir closed this as completed Dec 6, 2024
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

3 participants