Visa-Research / volepsi

Efficient Private Set Intersection base on VOLE
MIT License
98 stars 32 forks source link

error when building variant-lite #45

Closed Bruce-Luuuu closed 1 year ago

Bruce-Luuuu commented 1 year ago

The outputs are as follows:

B8ZGC3C~31ZJ8_EVB3{SRMC VW1%O2_G%4MOO1W3%EKCFXV C} ZAS@}{_1W(THF U5DTK7

ladnir commented 1 year ago

I'll investigate. Thanks.

Bruce-Luuuu commented 1 year ago

As my issue is similar to issue 32, I left a comment there asking how he fixed it. But I didn't get '-std=c++17' and my gcc version is 12.2.0.

Later I read issue93 and I think maybe the reason I got the error log is because I installed libsodium on my own. So I follow your advice. But I still got exactly the same error log as above.

ladnir commented 1 year ago

I don't think it's related to those...

My guess is that the when_all_ready header need to #include

Can you try that?

Bruce-Luuuu commented 1 year ago

Sorry, could you be more specific? Thanks.

ladnir commented 1 year ago

So you see the file that the compiler is saying that std::exchange doesn't exist? macoro/when_all.h

Add #include <utility> to the top and try to compile

Bruce-Luuuu commented 1 year ago

Thanks for your help. I succeeded in building variant-lite following your guide, after that I encountered a similar error log which says std::exchange doesn't exist several times. Each time I add #include <utility> at the top of the corresponding file. Now I built the whole project successfully. : )

ladnir commented 1 year ago

First of all variant wasn't the issue. Macoro was.

Can you remember where these other errors were? I need to fix them. Unfortunately I don't get these errors on my machine so need your belp

Thanks

Bruce-Luuuu commented 1 year ago

1VWMVZY IYH9A{AI6LCN%ED

6QB3QBKF3 `S %LHTK{IE I

WY86%16VARIO(W_OF1IFT(2

ladnir commented 1 year ago

Much appreciated. I'll send out a fix soon.