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

Compiler error #61

Open
eduardo010174 opened this issue Mar 3, 2023 · 4 comments
Open

Compiler error #61

eduardo010174 opened this issue Mar 3, 2023 · 4 comments

Comments

@eduardo010174
Copy link

I suspect it's for OTe use outdated version.
But on most recent branch don´t compile.

Pls, check and reply.

Cloning into 'libPSI'...
remote: Enumerating objects: 4083, done.
remote: Counting objects: 100% (260/260), done.
remote: Compressing objects: 100% (149/149), done.
remote: Total 4083 (delta 125), reused 221 (delta 109), pack-reused 3823
Receiving objects: 100% (4083/4083), 17.28 MiB | 14.50 MiB/s, done.
Resolving deltas: 100% (2912/2912), done.


====== build.py (LIBPSI) ========
mkdir -p out/build/linux
cmake   -S . -B out/build/linux  -DSUDO_FETCH=OFF -DENABLE_ALL_PSI=ON -DFETCH_AUTO=ON -DPARALLEL_FETCH=12 -DCMAKE_BUILD_TYPE=Release 
cmake --build out/build/linux   --parallel 12 
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv


-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- fetch options
=======================================================
-- Option: FETCH_AUTO            = ON
-- Option: FETCH_SPARSEHASH      = 
-- Option: FETCH_LIBOTE          = 

-- General Options
=======================================================
-- Option: CMAKE_BUILD_TYPE = Release
	Release
	Debug
	RELWITHDEBINFO
-- Option: ENABLE_ALL_PSI         = ON/OFF


-- PSI protocols
=======================================================
-- Option: ENABLE_DCW_PSI    = ON
-- Option: ENABLE_DKT_PSI    = ON
-- Option: ENABLE_GRR_PSI    = ON
-- Option: ENABLE_RR16_PSI   = ON
-- Option: ENABLE_RR17_PSI   = ON
-- Option: ENABLE_RR17B_PSI  = ON
-- Option: ENABLE_KKRT_PSI   = ON
-- Option: ENABLE_ECDH_PSI   = ON
-- Option: ENABLE_DRRN_PSI   = ON

-- LIBPSI_THIRDPARTY_DIR=/home/omen/Desktop/libPSI/out/install/linux
============= Building sparsehash-c11 =============
Cloning https://github.com/sparsehash/sparsehash-c11.git
'/usr/bin/git' 'clone' 'https://github.com/sparsehash/sparsehash-c11.git'
Checkout edd6f1180156e76facc1c0449da245208ab39503 
'/usr/bin/git' 'checkout' 'edd6f1180156e76facc1c0449da245208ab39503'
log /home/omen/Desktop/libPSI/thirdparty/log-sparsehash-c11.txt
==========================================
SPARSEHASH_INCLUDE_DIRS=/home/omen/Desktop/libPSI/out/install/linux/include
============= Building libOTe =============
Cloning https://github.com/osu-crypto/libOTe.git
'/usr/bin/git' 'clone' '--recursive' 'https://github.com/osu-crypto/libOTe.git'
Checkout 7d5c13d8c7a8f56a53e3f5909882c114903fb17c 
'/usr/bin/git' 'checkout' '7d5c13d8c7a8f56a53e3f5909882c114903fb17c'
submodule
'/usr/bin/git' 'submodule' 'update' '--recursive'
Configure
'/usr/bin/cmake' '-S' '/home/omen/Desktop/libPSI/thirdparty/libOTe' '-B' '/home/omen/Desktop/libPSI/thirdparty/libOTe/out/build/linux' '-DCMAKE_INSTALL_PREFIX=/usr/local' '-DCMAKE_BUILD_TYPE:STRING=Release' '-DFETCH_AUTO=ON' '-DVERBOSE_FETCH=OFF' '-DENABLE_ALL_OT=ON' '-DENABLE_RELIC=ON'
CMake Error at thirdparty/fetch.cmake:37 (message):
  Configure failed (1).

  LOG:

  -- The C compiler identification is GNU 11.3.0

  -- The CXX compiler identification is GNU 11.3.0

  -- Detecting C compiler ABI info

  -- Detecting C compiler ABI info - done

  -- Check for working C compiler: /usr/bin/cc - skipped

  -- Detecting C compile features

  -- Detecting C compile features - done

  -- Detecting CXX compiler ABI info

  -- Detecting CXX compiler ABI info - done

  -- Check for working CXX compiler: /usr/bin/c++ - skipped

  -- Detecting CXX compile features

  -- Detecting CXX compile features - done

  -- cryptoTools options

  =======================================================

  -- Option: FETCH_AUTO = ON

  -- Option: FETCH_SPAN_LITE =

  -- Option: FETCH_RELIC =

  -- Option: FETCH_SODIUM =

  -- Option: FETCH_BOOST =

  

  -- Option: CMAKE_BUILD_TYPE = Release

  	Release

  	Debug

  	RelWithDebInfo

  -- Option: ENABLE_SPAN_LITE = ON

  -- Option: ENABLE_RELIC = ON

  -- Option: ENABLE_SODIUM = OFF

  -- Option: ENABLE_BOOST = ON

  

  -- Option: ENABLE_CIRCUITS = OFF

  -- Option: ENABLE_NET_LOG = OFF

  -- Option: ENABLE_WOLFSSL = OFF

  -- Option: ENABLE_SSE = ON

  

  

  ============= Building span-lite =============

  Cloning https://github.com/martinmoene/span-lite.git

  Checkout 2987dd8d3b8fe7c861e3c3f879234cc1c412f03f '/usr/bin/git' 'clone'
  'https://github.com/martinmoene/span-lite.git'

  

  Configure'/usr/bin/git' 'checkout'
  '2987dd8d3b8fe7c861e3c3f879234cc1c412f03f'

  

  Build'/usr/bin/cmake' '-S'
  '/home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/span-lite'
  '-B'
  '/home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/span-lite/build/linux'
  '-DCMAKE_INSTALL_PREFIX=/usr/local' '-DCMAKE_BUILD_TYPE:STRING=Release'
  '-DSPAN_LITE_OPT_BUILD_TESTS=OFF'

  

  Install'/usr/bin/cmake' '--build'
  '/home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/span-lite/build/linux'
  '--config' 'Release'

  

  log
  /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/log-span-lite.txt


  =========================================='/usr/bin/cmake' '--install'
  '/home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/span-lite/build/linux'
  '--config' 'Release' '--prefix'
  '/home/omen/Desktop/libPSI/thirdparty/libOTe/cmake/../out/install/linux'

  

  ============= Building Relic =============

  Cloning https://github.com/relic-toolkit/relic.git

  Checkout 3f616ad64c3e63039277b8c90915607b6a2c504c '/usr/bin/git' 'clone'
  'https://github.com/relic-toolkit/relic.git'

  

  Configure'/usr/bin/git' 'checkout'
  '3f616ad64c3e63039277b8c90915607b6a2c504c'

  

  Build'/usr/bin/cmake' '-S'
  '/home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic'
  '-B'
  '/home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/build/linux'
  '-DCMAKE_INSTALL_PREFIX=/usr/local' '-DCMAKE_BUILD_TYPE:STRING=Release'
  '-DMULTI:STRING=PTHREAD'

  

  CMake Error at cryptoTools/thirdparty/fetch.cmake:35 (message):

    Build failed (2).

  

    LOG:

  

    [ 0%] Built target arith_objs

  

    [ 0%] Building C object src/CMakeFiles/relic.dir/relic_err.c.o

  

    [ 0%] Building C object src/CMakeFiles/relic.dir/relic_core.c.o

  

    [ 0%] Building C object src/CMakeFiles/relic.dir/relic_conf.c.o

  

    [ 0%] Building C object src/CMakeFiles/relic.dir/relic_util.c.o

  

    [ 1%] Building C object src/CMakeFiles/relic.dir/arch/relic_arch_x64.c.o

  

    [ 1%] Building C object src/CMakeFiles/relic.dir/rand/relic_rand_core.c.o

  

    [ 1%] Building C object src/CMakeFiles/relic.dir/rand/relic_rand_hashd.c.o

  

    [ 1%] Building C object src/CMakeFiles/relic.dir/relic_test.c.o

  

    [ 1%] Building C object src/CMakeFiles/relic.dir/relic_bench.c.o

  

    [ 2%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_add.c.o

  

    [ 2%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_cmp.c.o

  

    [ 2%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_div.c.o

  

    [ 2%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_factor.c.o

  

    [ 2%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_gcd.c.o

  

    [ 3%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_lcm.c.o

  

    [ 3%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_mem.c.o

  

    [ 3%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_mod.c.o

  

    [ 3%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_mul.c.o

  

    [ 3%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_mxp.c.o

  

    [ 3%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_prime.c.o

  

    [ 4%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_rec.c.o

  

    [ 4%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_shift.c.o

  

    [ 4%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_smb.c.o

  

    [ 4%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_sqr.c.o

  

    [ 4%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_srt.c.o

  

    [ 5%] Building C object src/CMakeFiles/relic.dir/bn/relic_bn_util.c.o

  

    [ 5%] Building C object src/CMakeFiles/relic.dir/dv/relic_dv_mem.c.o

  

    [ 5%] Building C object src/CMakeFiles/relic.dir/dv/relic_dv_util.c.o

  

    [ 5%] Building C object src/CMakeFiles/relic.dir/fp/relic_fp_add.c.o

  

    [ 5%] Building C object src/CMakeFiles/relic.dir/fp/relic_fp_cmp.c.o

  

    [ 6%] Building C object src/CMakeFiles/relic.dir/fp/relic_fp_exp.c.o

  

    [ 6%] Building C object src/CMakeFiles/relic.dir/fp/relic_fp_inv.c.o

  

    [ 6%] Building C object src/CMakeFiles/relic.dir/fp/relic_fp_mul.c.o

  

    [ 6%] Building C object src/CMakeFiles/relic.dir/fp/relic_fp_param.c.o

  

    [ 6%] Building C object src/CMakeFiles/relic.dir/fp/relic_fp_prime.c.o

  

    [ 7%] Building C object src/CMakeFiles/relic.dir/fp/relic_fp_rdc.c.o

  

    [ 7%] Building C object src/CMakeFiles/relic.dir/fp/relic_fp_shift.c.o

  

    [ 7%] Building C object src/CMakeFiles/relic.dir/fp/relic_fp_sqr.c.o

  

    [ 7%] Building C object src/CMakeFiles/relic.dir/fp/relic_fp_srt.c.o

  

    [ 7%] Building C object src/CMakeFiles/relic.dir/fp/relic_fp_util.c.o

  

    [ 7%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp12_mul.c.o

  

    [ 8%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp12_sqr.c.o

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp12_sqr.c:
    In function ‘fp12_sqr_unr’:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp12_sqr.c:265:17:
    warning: ‘fp4_sqr_unr’ accessing 1632 bytes in a region of size 1088
    [-Wstringop-overflow=]

  

      265 |                 fp4_sqr_unr(u0, t0)
          |                 ^~~~~~~~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp12_sqr.c:265:17:
    note: referencing argument 1 of type ‘dig_t (*)[2][34]’ {aka ‘long
    unsigned int (*)[2][34]’}

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp12_sqr.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:2033:6:
    note: in a call to function ‘fp4_sqr_unr’

  

     2033 | void fp4_sqr_unr(dv6_t c, fp4_t a)
          |      ^~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp12_sqr.c:277:17:
    warning: ‘fp4_sqr_unr’ accessing 1632 bytes in a region of size 1088
    [-Wstringop-overflow=]

  

      277 |                 fp4_sqr_unr(u2, t1)
          |                 ^~~~~~~~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp12_sqr.c:277:17:
    note: referencing argument 1 of type ‘dig_t (*)[2][34]’ {aka ‘long
    unsigned int (*)[2][34]’}

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp12_sqr.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:2033:6:
    note: in a call to function ‘fp4_sqr_unr’

  

     2033 | void fp4_sqr_unr(dv6_t c, fp4_t a)
          |      ^~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp12_sqr.c:286:17:
    warning: ‘fp4_sqr_unr’ accessing 1632 bytes in a region of size 1088
    [-Wstringop-overflow=]

  

      286 |                 fp4_sqr_unr(u3, t0)
          |                 ^~~~~~~~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp12_sqr.c:286:17:
    note: referencing argument 1 of type ‘dig_t (*)[2][34]’ {aka ‘long
    unsigned int (*)[2][34]’}

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp12_sqr.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:2033:6:
    note: in a call to function ‘fp4_sqr_unr’

  

     2033 | void fp4_sqr_unr(dv6_t c, fp4_t a)
          |      ^~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp12_sqr.c:291:17:
    warning: ‘fp4_sqr_unr’ accessing 1632 bytes in a region of size 1088
    [-Wstringop-overflow=]

  

      291 |                 fp4_sqr_unr(u4, t0)
          |                 ^~~~~~~~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp12_sqr.c:291:17:
    note: referencing argument 1 of type ‘dig_t (*)[2][34]’ {aka ‘long
    unsigned int (*)[2][34]’}

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp12_sqr.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:2033:6:
    note: in a call to function ‘fp4_sqr_unr’

  

     2033 | void fp4_sqr_unr(dv6_t c, fp4_t a)
          |      ^~~~~~~~~~~

  

    [ 8%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp18_mul.c.o

  

    [ 8%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp18_sqr.c.o

  

    [ 8%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp24_mul.c.o

  

    [ 8%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp24_sqr.c.o

  

    [ 9%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp2_mul.c.o

  

    [ 9%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp2_sqr.c.o

  

    [ 9%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp3_mul.c.o

  

    [ 9%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp3_sqr.c.o

  

    [ 9%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp48_mul.c.o

  

    [ 10%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp48_sqr.c.o

  

    [ 10%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp4_mul.c.o

  

    [ 10%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp4_sqr.c.o

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp4_sqr.c:73:24:
    warning: argument 1 of type ‘dig_t[2][2][34]’ {aka ‘long unsigned
    int[2][2][34]’} with mismatched bound [-Warray-parameter=]

  

       73 | void fp4_sqr_unr(dv4_t c, fp4_t a) {
          |                  ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp4_sqr.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:2033:24:
    note: previously declared as ‘dig_t[3][2][34]’ {aka ‘long unsigned
    int[3][2][34]’}

  

     2033 | void fp4_sqr_unr(dv6_t c, fp4_t a)
          |                  ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp4_sqr.c:
    In function ‘fp4_sqr_lazyr’:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp4_sqr.c:117:17:
    warning: ‘fp4_sqr_unr’ accessing 1632 bytes in a region of size 1088
    [-Wstringop-overflow=]

  

      117 |                 fp4_sqr_unr(t, a)
          |                 ^~~~~~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp4_sqr.c:117:17:
    note: referencing argument 1 of type ‘dig_t (*)[2][34]’ {aka ‘long
    unsigned int (*)[2][34]’}

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp4_sqr.c:73:6:
    note: in a call to function ‘fp4_sqr_unr’

  

       73 | void fp4_sqr_unr(dv4_t c, fp4_t a) {
          |      ^~~~~~~~~~~

  

    [ 10%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp54_mul.c.o

  

    [ 10%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp54_sqr.c.o

  

    [ 11%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp6_mul.c.o

  

    [ 11%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp6_sqr.c.o

  

    [ 11%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp8_mul.c.o

  

    [ 11%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp8_sqr.c.o

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp8_sqr.c:
    In function ‘fp8_sqr_unr’:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp8_sqr.c:89:17:
    warning: ‘fp4_sqr_unr’ accessing 1632 bytes in a region of size 1088
    [-Wstringop-overflow=]

  

       89 |                 fp4_sqr_unr(u0, a[0])
          |                 ^~~~~~~~~~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp8_sqr.c:89:17:
    note: referencing argument 1 of type ‘dig_t (*)[2][34]’ {aka ‘long
    unsigned int (*)[2][34]’}

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp8_sqr.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:2033:6:
    note: in a call to function ‘fp4_sqr_unr’

  

     2033 | void fp4_sqr_unr(dv6_t c, fp4_t a)
          |      ^~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp8_sqr.c:91:17:
    warning: ‘fp4_sqr_unr’ accessing 1632 bytes in a region of size 1088
    [-Wstringop-overflow=]

  

       91 |                 fp4_sqr_unr(u1, a[1])
          |                 ^~~~~~~~~~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp8_sqr.c:91:17:
    note: referencing argument 1 of type ‘dig_t (*)[2][34]’ {aka ‘long
    unsigned int (*)[2][34]’}

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp8_sqr.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:2033:6:
    note: in a call to function ‘fp4_sqr_unr’

  

     2033 | void fp4_sqr_unr(dv6_t c, fp4_t a)
          |      ^~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp8_sqr.c:106:17:
    warning: ‘fp4_sqr_unr’ accessing 1632 bytes in a region of size 1088
    [-Wstringop-overflow=]

  

      106 |                 fp4_sqr_unr(u0, t)
          |                 ^~~~~~~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp8_sqr.c:106:17:
    note: referencing argument 1 of type ‘dig_t (*)[2][34]’ {aka ‘long
    unsigned int (*)[2][34]’}

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fp8_sqr.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:2033:6:
    note: in a call to function ‘fp4_sqr_unr’

  

     2033 | void fp4_sqr_unr(dv6_t c, fp4_t a)
          |      ^~~~~~~~~~~

  

    [ 11%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp9_mul.c.o

  

    [ 12%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fp9_sqr.c.o

  

    [ 12%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fpx_add.c.o

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:82:26:
    warning: argument 1 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

       82 | void fp3_add_basic(fp2_t c, fp2_t a, fp2_t b) {
          |                    ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1692:26:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1692 | void fp3_add_basic(fp3_t c, fp3_t a, fp3_t b)
          |                    ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:82:35:
    warning: argument 2 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

       82 | void fp3_add_basic(fp2_t c, fp2_t a, fp2_t b) {
          |                             ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1692:35:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1692 | void fp3_add_basic(fp3_t c, fp3_t a, fp3_t b)
          |                             ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:82:44:
    warning: argument 3 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

       82 | void fp3_add_basic(fp2_t c, fp2_t a, fp2_t b) {
          |                                      ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1692:44:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1692 | void fp3_add_basic(fp3_t c, fp3_t a, fp3_t b)
          |                                      ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:88:26:
    warning: argument 1 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

       88 | void fp3_sub_basic(fp2_t c, fp2_t a, fp2_t b) {
          |                    ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1711:26:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1711 | void fp3_sub_basic(fp3_t c, fp3_t a, fp3_t b)
          |                    ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:88:35:
    warning: argument 2 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

       88 | void fp3_sub_basic(fp2_t c, fp2_t a, fp2_t b) {
          |                             ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1711:35:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1711 | void fp3_sub_basic(fp3_t c, fp3_t a, fp3_t b)
          |                             ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:88:44:
    warning: argument 3 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

       88 | void fp3_sub_basic(fp2_t c, fp2_t a, fp2_t b) {
          |                                      ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1711:44:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1711 | void fp3_sub_basic(fp3_t c, fp3_t a, fp3_t b)
          |                                      ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:94:26:
    warning: argument 1 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

       94 | void fp3_dbl_basic(fp2_t c, fp2_t a) {
          |                    ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1737:26:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1737 | void fp3_dbl_basic(fp3_t c, fp3_t a)
          |                    ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:94:35:
    warning: argument 2 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

       94 | void fp3_dbl_basic(fp2_t c, fp2_t a) {
          |                             ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1737:35:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1737 | void fp3_dbl_basic(fp3_t c, fp3_t a)
          |                             ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:111:26:
    warning: argument 1 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

      111 | void fp3_add_integ(fp2_t c, fp2_t a, fp2_t b) {
          |                    ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1701:26:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1701 | void fp3_add_integ(fp3_t c, fp3_t a, fp3_t b)
          |                    ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:111:35:
    warning: argument 2 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

      111 | void fp3_add_integ(fp2_t c, fp2_t a, fp2_t b) {
          |                             ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1701:35:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1701 | void fp3_add_integ(fp3_t c, fp3_t a, fp3_t b)
          |                             ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:111:44:
    warning: argument 3 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

      111 | void fp3_add_integ(fp2_t c, fp2_t a, fp2_t b) {
          |                                      ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1701:44:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1701 | void fp3_add_integ(fp3_t c, fp3_t a, fp3_t b)
          |                                      ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:115:26:
    warning: argument 1 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

      115 | void fp3_sub_integ(fp2_t c, fp2_t a, fp2_t b) {
          |                    ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1721:26:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1721 | void fp3_sub_integ(fp3_t c, fp3_t a, fp3_t b)
          |                    ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:115:35:
    warning: argument 2 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

      115 | void fp3_sub_integ(fp2_t c, fp2_t a, fp2_t b) {
          |                             ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1721:35:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1721 | void fp3_sub_integ(fp3_t c, fp3_t a, fp3_t b)
          |                             ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:115:44:
    warning: argument 3 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

      115 | void fp3_sub_integ(fp2_t c, fp2_t a, fp2_t b) {
          |                                      ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1721:44:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1721 | void fp3_sub_integ(fp3_t c, fp3_t a, fp3_t b)
          |                                      ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:119:26:
    warning: argument 1 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

      119 | void fp3_dbl_integ(fp2_t c, fp2_t a) {
          |                    ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1745:26:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1745 | void fp3_dbl_integ(fp3_t c, fp3_t a)
          |                    ~~~~~~^

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:119:35:
    warning: argument 2 of type ‘dig_t[2][4]’ {aka ‘long unsigned
    int[2][4]’} with mismatched bound [-Warray-parameter=]

  

      119 | void fp3_dbl_integ(fp2_t c, fp2_t a) {
          |                             ~~~~~~^

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/fpx/relic_fpx_add.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:1745:35:
    note: previously declared as ‘dig_t[3][4]’ {aka ‘long unsigned
    int[3][4]’}

  

     1745 | void fp3_dbl_integ(fp3_t c, fp3_t a)
          |                             ~~~~~~^

  

    [ 12%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fpx_cmp.c.o

  

    [ 12%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fpx_cyc.c.o

  

    [ 12%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fpx_exp.c.o

  

    [ 12%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fpx_field.c.o

  

    [ 13%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fpx_frb.c.o

  

    [ 13%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fpx_inv.c.o

  

    [ 13%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fpx_pck.c.o

  

    [ 13%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fpx_rdc.c.o

  

    [ 13%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fpx_srt.c.o

  

    [ 14%] Building C object src/CMakeFiles/relic.dir/fpx/relic_fpx_util.c.o

  

    [ 14%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_add.c.o

  

    [ 14%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_cmp.c.o

  

    [ 14%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_exp.c.o

  

    [ 14%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_inv.c.o

  

    [ 15%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_itr.c.o

  

    [ 15%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_mul.c.o

  

    [ 15%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_param.c.o

  

    [ 15%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_poly.c.o

  

    [ 15%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_rdc.c.o

  

    [ 16%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_shift.c.o

  

    [ 16%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_slv.c.o

  

    [ 16%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_sqr.c.o

  

    [ 16%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_srt.c.o

  

    [ 16%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_trc.c.o

  

    [ 16%] Building C object src/CMakeFiles/relic.dir/fb/relic_fb_util.c.o

  

    [ 17%] Building C object src/CMakeFiles/relic.dir/fbx/relic_fb2_inv.c.o

  

    [ 17%] Building C object src/CMakeFiles/relic.dir/fbx/relic_fb2_mul.c.o

  

    [ 17%] Building C object src/CMakeFiles/relic.dir/fbx/relic_fb2_slv.c.o

  

    [ 17%] Building C object src/CMakeFiles/relic.dir/fbx/relic_fb2_sqr.c.o

  

    [ 17%] Building C object src/CMakeFiles/relic.dir/ep/relic_ep_add.c.o

  

    [ 18%] Building C object src/CMakeFiles/relic.dir/ep/relic_ep_curve.c.o

  

    [ 18%] Building C object src/CMakeFiles/relic.dir/ep/relic_ep_dbl.c.o

  

    [ 18%] Building C object src/CMakeFiles/relic.dir/ep/relic_ep_map.c.o

  

    [ 18%] Building C object src/CMakeFiles/relic.dir/ep/relic_ep_mul.c.o

  

    [ 18%] Building C object src/CMakeFiles/relic.dir/ep/relic_ep_mul_fix.c.o

  

    [ 19%] Building C object src/CMakeFiles/relic.dir/ep/relic_ep_mul_sim.c.o

  

    [ 19%] Building C object src/CMakeFiles/relic.dir/ep/relic_ep_neg.c.o

  

    [ 19%] Building C object src/CMakeFiles/relic.dir/ep/relic_ep_norm.c.o

  

    [ 19%] Building C object src/CMakeFiles/relic.dir/ep/relic_ep_param.c.o

  

    [ 19%] Building C object src/CMakeFiles/relic.dir/ep/relic_ep_pck.c.o

  

    [ 20%] Building C object src/CMakeFiles/relic.dir/ep/relic_ep_util.c.o

  

    [ 20%] Building C object src/CMakeFiles/relic.dir/epx/relic_ep2_add.c.o

  

    [ 20%] Building C object src/CMakeFiles/relic.dir/epx/relic_ep2_curve.c.o

  

    [ 20%] Building C object src/CMakeFiles/relic.dir/epx/relic_ep2_dbl.c.o

  

    [ 20%] Building C object src/CMakeFiles/relic.dir/epx/relic_ep2_frb.c.o

  

    [ 21%] Building C object src/CMakeFiles/relic.dir/epx/relic_ep2_map.c.o

  

    [ 21%] Building C object src/CMakeFiles/relic.dir/epx/relic_ep2_mul.c.o

  

    [ 21%] Building C object src/CMakeFiles/relic.dir/epx/relic_ep2_mul_fix.c.o

  

    [ 21%] Building C object src/CMakeFiles/relic.dir/epx/relic_ep2_mul_sim.c.o

  

    [ 21%] Building C object src/CMakeFiles/relic.dir/epx/relic_ep2_neg.c.o

  

    [ 21%] Building C object src/CMakeFiles/relic.dir/epx/relic_ep2_norm.c.o

  

    [ 22%] Building C object src/CMakeFiles/relic.dir/epx/relic_ep2_pck.c.o

  

    [ 22%] Building C object src/CMakeFiles/relic.dir/epx/relic_ep2_util.c.o

  

    [ 22%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_add.c.o

  

    [ 22%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_curve.c.o

  

    [ 22%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_dbl.c.o

  

    [ 23%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_frb.c.o

  

    [ 23%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_hlv.c.o

  

    [ 23%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_map.c.o

  

    [ 23%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_mul.c.o

  

    [ 23%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_mul_fix.c.o

  

    [ 24%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_mul_sim.c.o

  

    [ 24%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_neg.c.o

  

    [ 24%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_norm.c.o

  

    [ 24%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_param.c.o

  

    [ 24%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_pck.c.o

  

    [ 25%] Building C object src/CMakeFiles/relic.dir/eb/relic_eb_util.c.o

  

    [ 25%] Building C object src/CMakeFiles/relic.dir/ed/relic_ed_add.c.o

  

    [ 25%] Building C object src/CMakeFiles/relic.dir/ed/relic_ed_curve.c.o

  

    [ 25%] Building C object src/CMakeFiles/relic.dir/ed/relic_ed_dbl.c.o

  

    [ 25%] Building C object src/CMakeFiles/relic.dir/ed/relic_ed_map.c.o

  

    [ 25%] Building C object src/CMakeFiles/relic.dir/ed/relic_ed_mul.c.o

  

    [ 26%] Building C object src/CMakeFiles/relic.dir/ed/relic_ed_mul_fix.c.o

  

    [ 26%] Building C object src/CMakeFiles/relic.dir/ed/relic_ed_mul_sim.c.o

  

    [ 26%] Building C object src/CMakeFiles/relic.dir/ed/relic_ed_neg.c.o

  

    [ 26%] Building C object src/CMakeFiles/relic.dir/ed/relic_ed_norm.c.o

  

    [ 26%] Building C object src/CMakeFiles/relic.dir/ed/relic_ed_param.c.o

  

    [ 27%] Building C object src/CMakeFiles/relic.dir/ed/relic_ed_pck.c.o

  

    [ 27%] Building C object src/CMakeFiles/relic.dir/ed/relic_ed_util.c.o

  

    [ 27%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_add_k12.c.o

  

    [ 27%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_add_k2.c.o

  

    [ 27%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_add_k48.c.o

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/pp/relic_pp_add_k48.c:
    In function ‘pp_add_k48_projc’:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/pp/relic_pp_add_k48.c:197:17:
    warning: ‘fp8_neg’ accessing 256 bytes in a region of size 32
    [-Wstringop-overflow=]

  

      197 |                 fp8_neg(l[0][1], l[0][1])
          |                 ^~~~~~~~~~~~~~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/pp/relic_pp_add_k48.c:197:17:
    note: referencing argument 1 of type ‘dig_t (*)[2][2][4]’ {aka ‘long
    unsigned int (*)[2][2][4]’}

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/pp/relic_pp_add_k48.c:197:17:
    warning: ‘fp8_neg’ accessing 256 bytes in a region of size 32
    [-Wstringop-overflow=]

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/pp/relic_pp_add_k48.c:197:17:
    note: referencing argument 2 of type ‘dig_t (*)[2][2][4]’ {aka ‘long
    unsigned int (*)[2][2][4]’}

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/pp/relic_pp_add_k48.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:2441:6:
    note: in a call to function ‘fp8_neg’

  

     2441 | void fp8_neg(fp8_t c, fp8_t a)
          |      ^~~~~~~

  

    [ 28%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_add_k54.c.o

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/pp/relic_pp_add_k54.c:
    In function ‘pp_add_k54_projc’:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/pp/relic_pp_add_k54.c:199:17:
    warning: ‘fp9_neg’ accessing 288 bytes in a region of size 32
    [-Wstringop-overflow=]

  

      199 |                 fp9_neg(l[2][0], l[2][0])
          |                 ^~~~~~~~~~~~~~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/pp/relic_pp_add_k54.c:199:17:
    note: referencing argument 1 of type ‘dig_t (*)[3][4]’ {aka ‘long
    unsigned int (*)[3][4]’}

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/pp/relic_pp_add_k54.c:199:17:
    warning: ‘fp9_neg’ accessing 288 bytes in a region of size 32
    [-Wstringop-overflow=]

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/pp/relic_pp_add_k54.c:199:17:
    note: referencing argument 2 of type ‘dig_t (*)[3][4]’ {aka ‘long
    unsigned int (*)[3][4]’}

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_epx.h:40,

  

  

                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_core.h:47,
                     from /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/pp/relic_pp_add_k54.c:32:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/include/relic_fpx.h:2724:6:
    note: in a call to function ‘fp9_neg’

  

     2724 | void fp9_neg(fp9_t c, fp9_t a)
          |      ^~~~~~~

  

    [ 28%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_add_k8.c.o

  

    [ 28%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_dbl_k12.c.o

  

    [ 28%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_dbl_k2.c.o

  

    [ 28%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_dbl_k48.c.o

  

    [ 29%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_dbl_k54.c.o

  

    [ 29%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_dbl_k8.c.o

  

    [ 29%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_exp_k12.c.o

  

    [ 29%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_exp_k2.c.o

  

    [ 29%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_exp_k48.c.o

  

    [ 30%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_exp_k54.c.o

  

    [ 30%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_exp_k8.c.o

  

    [ 30%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_map.c.o

  

    [ 30%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_map_k12.c.o

  

    [ 30%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_map_k2.c.o

  

    [ 30%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_map_k48.c.o

  

    [ 31%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_map_k54.c.o

  

    [ 31%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_map_k8.c.o

  

    [ 31%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_norm.c.o

  

    [ 31%] Building C object src/CMakeFiles/relic.dir/pc/relic_pc_exp.c.o

  

    [ 31%] Building C object src/CMakeFiles/relic.dir/pc/relic_pc_util.c.o

  

    [ 32%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_rsa.c.o

  

    [ 32%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_rabin.c.o

  

    [ 32%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_bdpe.c.o

  

    [ 32%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_phpe.c.o

  

    [ 32%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_ecdh.c.o

  

    [ 33%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_ecmqv.c.o

  

    [ 33%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_ecies.c.o

  

    [ 33%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_ecdsa.c.o

  

    [ 33%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_ecss.c.o

  

    [ 33%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_vbnn.c.o

  

    [ 34%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_sokaka.c.o

  

    [ 34%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_bgn.c.o

  

    [ 34%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_ibe.c.o

  

    [ 34%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_bls.c.o

  

    [ 34%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_cls.c.o

  

    [ 34%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_pss.c.o

  

    [ 35%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_bbs.c.o

  

    [ 35%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_zss.c.o

  

    [ 35%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_cmlhs.c.o

  

    [ 35%] Building C object src/CMakeFiles/relic.dir/cp/relic_cp_mklhs.c.o

  

    [ 35%] Building C object src/CMakeFiles/relic.dir/bc/relic_bc_aes.c.o

  

    [ 36%] Building C object src/CMakeFiles/relic.dir/bc/rijndael-alg-fst.c.o

  

    [ 36%] Building C object src/CMakeFiles/relic.dir/bc/rijndael-api-fst.c.o

  

    [ 36%] Building C object src/CMakeFiles/relic.dir/md/blake2s-ref.c.o

  

    In file included from
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/md/blake2s-ref.c:18:

  

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/md/blake2.h:101:5:
    error: size of array element is not a multiple of its alignment

  

      101 |     blake2s_state S[8][1]
          |     ^~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/md/blake2.h:102:5:
    error: size of array element is not a multiple of its alignment

  

      102 |     blake2s_state R[1]
          |     ^~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/md/blake2.h:109:5:
    error: size of array element is not a multiple of its alignment

  

      109 |     blake2b_state S[4][1]
          |     ^~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/md/blake2.h:110:5:
    error: size of array element is not a multiple of its alignment

  

      110 |     blake2b_state R[1]
          |     ^~~~~~~~~~~~~

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/md/blake2s-ref.c:
    In function ‘blake2s’:

  

    
    /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/md/blake2s-ref.c:329:3:
    error: size of array element is not a multiple of its alignment

  

      329 |   blake2s_state S[1]
          |   ^~~~~~~~~~~~~

  

    gmake[2]: *** [src/CMakeFiles/relic.dir/build.make:2722:
    src/CMakeFiles/relic.dir/md/blake2s-ref.c.o] Error 1

  

    gmake[1]: *** [CMakeFiles/Makefile2:227: src/CMakeFiles/relic.dir/all]
    Error 2

  

    gmake: *** [Makefile:146: all] Error 2

  

  Call Stack (most recent call first):

    cryptoTools/thirdparty/getRelic.cmake:36 (run)
    cryptoTools/cmake/cryptoToolsDepHelper.cmake:83 (include)
    cryptoTools/CMakeLists.txt:117 (include)

  

  '/usr/bin/cmake' '--build'
  '/home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/build/linux'
  '--config' 'Release'

  

  -- Configuring incomplete, errors occurred!

  See also
  "/home/omen/Desktop/libPSI/thirdparty/libOTe/out/build/linux/CMakeFiles/CMakeOutput.log".


Call Stack (most recent call first):
  thirdparty/getLibOTe.cmake:48 (run)
  cmake/findDependancies.cmake:134 (include)
  CMakeLists.txt:12 (include)


-- Configuring incomplete, errors occurred!
See also "/home/omen/Desktop/libPSI/out/build/linux/CMakeFiles/CMakeOutput.log".
gmake: Makefile: No such file or directory
gmake: *** No rule to make target 'Makefile'.  Stop.
@eduardo010174 eduardo010174 changed the title Compiler erro Compiler error Mar 3, 2023
@ladnir
Copy link
Member

ladnir commented Mar 4, 2023

yes, you can't use libOTe 2.x with libPSI. It requires 1.x. As a temporary fix, you can change

https://github.com/osu-crypto/libPSI/blob/master/thirdparty/getLibOTe.cmake#L31

to be -DENABLE_SODIUM=ON -DENABLE_RELIC=OFF.

@eduardo010174
Copy link
Author

eduardo010174 commented Mar 5, 2023

After test your minor fix, the code no compile.

image

python3 build.py


====== build.py (LIBPSI) ========
mkdir -p out/build/linux
cmake   -S . -B out/build/linux  -DSUDO_FETCH=OFF -DENABLE_ALL_PSI=ON -DFETCH_AUTO=ON -DPARALLEL_FETCH=12 -DCMAKE_BUILD_TYPE=Release 
cmake --build out/build/linux   --parallel 12 
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv


-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- fetch options
=======================================================
-- Option: FETCH_AUTO            = ON
-- Option: FETCH_SPARSEHASH      = 
-- Option: FETCH_LIBOTE          = 

-- General Options
=======================================================
-- Option: CMAKE_BUILD_TYPE = Release
	Release
	Debug
	RELWITHDEBINFO
-- Option: ENABLE_ALL_PSI         = ON/OFF


-- PSI protocols
=======================================================
-- Option: ENABLE_DCW_PSI    = ON
-- Option: ENABLE_DKT_PSI    = ON
-- Option: ENABLE_GRR_PSI    = ON
-- Option: ENABLE_RR16_PSI   = ON
-- Option: ENABLE_RR17_PSI   = ON
-- Option: ENABLE_RR17B_PSI  = ON
-- Option: ENABLE_KKRT_PSI   = ON
-- Option: ENABLE_ECDH_PSI   = ON
-- Option: ENABLE_DRRN_PSI   = ON

-- LIBPSI_THIRDPARTY_DIR=/home/omen/Desktop/libPSI/out/install/linux
============= Building sparsehash-c11 =============
Cloning https://github.com/sparsehash/sparsehash-c11.git
'/usr/bin/git' 'clone' 'https://github.com/sparsehash/sparsehash-c11.git'
Checkout edd6f1180156e76facc1c0449da245208ab39503 
'/usr/bin/git' 'checkout' 'edd6f1180156e76facc1c0449da245208ab39503'
log /home/omen/Desktop/libPSI/thirdparty/log-sparsehash-c11.txt
==========================================
SPARSEHASH_INCLUDE_DIRS=/home/omen/Desktop/libPSI/out/install/linux/include
============= Building libOTe =============
Cloning https://github.com/osu-crypto/libOTe.git
'/usr/bin/git' 'clone' '--recursive' 'https://github.com/osu-crypto/libOTe.git'
Checkout 7d5c13d8c7a8f56a53e3f5909882c114903fb17c 
'/usr/bin/git' 'checkout' '7d5c13d8c7a8f56a53e3f5909882c114903fb17c'
submodule
'/usr/bin/git' 'submodule' 'update' '--recursive'
Configure
'/usr/bin/cmake' '-S' '/home/omen/Desktop/libPSI/thirdparty/libOTe' '-B' '/home/omen/Desktop/libPSI/thirdparty/libOTe/out/build/linux' '-DCMAKE_INSTALL_PREFIX=/usr/local' '-DCMAKE_BUILD_TYPE:STRING=Release' '-DFETCH_AUTO=ON' '-DVERBOSE_FETCH=OFF' '-DENABLE_ALL_OT=ON' '-DENABLE_SODIUM=ON' '-DENABLE_RELIC=OFF'
Build
'/usr/bin/cmake' '--build' '/home/omen/Desktop/libPSI/thirdparty/libOTe/out/build/linux' '--config' 'Release'
CMake Error at thirdparty/fetch.cmake:37 (message):
  Build failed (2).

  LOG:

  [ 0%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Circuit/BetaCircuit.cpp.o


  [ 1%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Circuit/BetaLibrary.cpp.o


  [ 1%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/BitVector.cpp.o

  [ 2%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/CLP.cpp.o

  [ 3%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/CuckooIndex.cpp.o


  In file included from
  /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/Common/CuckooIndex.cpp:1:


  In static member function ‘static osuCrypto::u64
  osuCrypto::CuckooIndex<Mode>::getHash(const osuCrypto::block&, const u8&,
  const u64&) [with osuCrypto::CuckooTypes Mode =
  osuCrypto::NotThreadSafe]’,

      inlined from ‘osuCrypto::CuckooIndex<Mode>::FindResult osuCrypto::CuckooIndex<Mode>::find(const osuCrypto::block&) [with osuCrypto::CuckooTypes Mode = osuCrypto::NotThreadSafe]’ at /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/Common/CuckooIndex.cpp:541:40:

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/../cryptoTools/Common/CuckooIndex.h:267:17:
  warning: ‘hashes’ may be used uninitialized [-Wmaybe-uninitialized]

    267 |             u64 h = *(u64*)ptr
        |                 ^

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/Common/CuckooIndex.cpp:
  In member function ‘osuCrypto::CuckooIndex<Mode>::FindResult
  osuCrypto::CuckooIndex<Mode>::find(const osuCrypto::block&) [with
  osuCrypto::CuckooTypes Mode = osuCrypto::NotThreadSafe]’:

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/Common/CuckooIndex.cpp:485:14:
  note: ‘hashes’ declared here

    485 |         auto hashes = hashes_
        |              ^~~~~~

  [ 3%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/Defines.cpp.o

  [ 4%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/Log.cpp.o

  [ 4%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/TestCollection.cpp.o


  [ 5%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/Timer.cpp.o

  [ 5%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/block.cpp.o

  [ 6%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/AES.cpp.o

  [ 7%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/Blake2.cpp.o

  [ 7%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/Curve.cpp.o

  [ 8%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/PRNG.cpp.o

  [ 8%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/RCurve.cpp.o

  [ 9%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/Rijndael256.cpp.o


  [ 9%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/SodiumCurve.cpp.o


  [ 10%] Building C object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/c/blake2b-ref.c.o


  [ 11%] Building C object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/c/blake2bp-ref.c.o


  [ 11%] Building C object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/c/blake2s-ref.c.o


  [ 12%] Building C object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/c/blake2sp-ref.c.o


  [ 12%] Building C object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/c/blake2xb-ref.c.o


  [ 13%] Building C object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/c/blake2xs-ref.c.o


  [ 13%] Building C object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/sse/blake2b.c.o


  [ 14%] Building C object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/sse/blake2bp.c.o


  [ 15%] Building C object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/sse/blake2xb.c.o


  [ 15%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Network/Channel.cpp.o

  [ 16%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Network/IOService.cpp.o

  [ 16%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Network/IoBuffer.cpp.o

  [ 17%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Network/Session.cpp.o

  [ 17%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Network/SocketAdapter.cpp.o


  [ 18%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Network/TLS.cpp.o

  [ 19%] Linking CXX static library libcryptoTools.a

  [ 19%] Built target cryptoTools

  [ 20%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/AES_Tests.cpp.o


  [ 21%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/BtChannel_Tests.cpp.o


  [ 21%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Circuit_Tests.cpp.o


  [ 22%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Circuit_aes_Tests.cpp.o


  [ 22%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Common.cpp.o


  [ 23%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Cuckoo_Tests.cpp.o


  [ 23%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Ecc_Tests.cpp.o


  [ 24%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Misc_Tests.cpp.o


  [ 25%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/REcc_Tests.cpp.o


  [ 25%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Rijndael256_Tests.cpp.o


  [ 26%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/SimpleCuckoo.cpp.o


  [ 26%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/UnitTests.cpp.o


  [ 27%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/WolfSSL_Tests.cpp.o


  [ 27%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/block_Tests.cpp.o


  [ 28%] Building CXX object
  cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/cmakeTests/main.cpp.o


  [ 29%] Linking CXX static library libtests_cryptoTools.a

  [ 29%] Built target tests_cryptoTools

  [ 29%] Building CXX object
  cryptoTools/frontend_cryptoTools/CMakeFiles/frontend_cryptoTools.dir/Tutorials/Network.cpp.o


  [ 30%] Building CXX object
  cryptoTools/frontend_cryptoTools/CMakeFiles/frontend_cryptoTools.dir/main.cpp.o


  [ 30%] Building CXX object
  cryptoTools/frontend_cryptoTools/CMakeFiles/frontend_cryptoTools.dir/signalHandle.cpp.o


  [ 31%] Linking CXX executable frontend_cryptoTools

  [ 31%] Built target frontend_cryptoTools

  Scanning dependencies of target SimplestOT

  [ 32%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/Keccak-simple.c.o

  [ 32%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/consts.s.o

  [ 33%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/consts4x.s.o

  [ 33%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/cpucycles.c.o

  [ 34%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_add.c.o

  [ 34%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_freeze.s.o

  [ 35%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_getparity.c.o

  [ 36%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_invert.c.o

  [ 36%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_iseq_vartime.c.o

  [ 37%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_mul.s.o

  [ 37%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_neg.c.o

  [ 38%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_nsquare.s.o

  [ 38%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_pack.c.o

  [ 39%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_pow2523.c.o

  [ 40%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_setint.c.o

  [ 40%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_square.s.o

  [ 41%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_sub.c.o

  [ 41%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_unpack.c.o

  [ 42%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_add.c.o

  [ 42%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_add_p1p1.s.o

  [ 43%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_dbl_p1p1.s.o

  [ 44%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_double.c.o

  [ 44%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_lookup.s.o

  [ 45%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_lookup_niels.s.o

  [ 45%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_nielsadd2.s.o

  [ 46%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_p1p1_to_p2.s.o

  [ 46%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_p1p1_to_p3.s.o

  [ 47%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_pack.c.o

  [ 48%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_scalarmult.c.o

  [ 48%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_scalarmult_base.c.o


  [ 49%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_setneutral.c.o

  [ 49%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_unpack.c.o

  [ 50%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x.c.o

  [ 50%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_add_p1p1.s.o

  [ 51%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_double_p1p1.s.o

  [ 52%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_lookup.s.o

  [ 52%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_lookup_niels.s.o

  [ 53%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_niels_add_p1p1.s.o

  [ 53%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_pack.c.o

  [ 54%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_unpack_vartime.c.o

  [ 54%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x.c.o

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/thirdparty/SimplestOT/gfe4x.c:150:49:
  warning: argument 2 of type ‘const unsigned char[128]’ with mismatched
  bound [-Warray-parameter=]

    150 | void gfe4x_unpack(gfe4x *r, const unsigned char x[128])
        |                             ~~~~~~~~~~~~~~~~~~~~^~~~~~

  In file included from
  /home/omen/Desktop/libPSI/thirdparty/libOTe/thirdparty/SimplestOT/gfe4x.c:2:


  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/thirdparty/SimplestOT/gfe4x.h:14:28:
  note: previously declared as ‘const unsigned char *’

     14 | void gfe4x_unpack(gfe4x *, const unsigned char *)
        |                            ^~~~~~~~~~~~~~~~~~~~~

  [ 55%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_add.s.o

  [ 56%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_getparity.c.o

  [ 56%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_iseq_vartime.c.o

  [ 57%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_mul.s.o

  [ 57%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_nsquare.c.o

  [ 58%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_pow2523.c.o

  [ 58%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_square.s.o

  [ 59%] Building ASM object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_sub.s.o

  [ 60%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/network.c.o

  [ 60%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ot_receiver.c.o

  [ 61%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ot_receiver_test.c.o

  [ 61%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ot_sender.c.o

  [ 62%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ot_sender_test.c.o

  [ 62%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/randombytes.c.o

  [ 63%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/sc25519_from32bytes.c.o

  [ 64%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/sc25519_random.c.o

  [ 64%] Building C object
  thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/sc25519_window4.c.o

  [ 65%] Linking CXX static library libSimplestOT.a

  [ 65%] Built target SimplestOT

  Scanning dependencies of target KyberOT

  [ 65%] Building C object thirdparty/KyberOT/CMakeFiles/KyberOT.dir/kem.c.o

  [ 66%] Building C object thirdparty/KyberOT/CMakeFiles/KyberOT.dir/poly.c.o

  [ 66%] Building C object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/polyvec.c.o

  [ 67%] Building ASM object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/polyvec_pointwise_acc.s.o

  [ 67%] Building C object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/fips202.c.o

  [ 68%] Building C object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/reduce.c.o

  [ 69%] Building ASM object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/cbdeta4.s.o

  [ 69%] Building C object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/cbdref.c.o

  [ 70%] Building C object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/precomp.c.o

  [ 70%] Building C object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/verify.c.o

  [ 71%] Building C object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/indcpa.c.o

  [ 71%] Building C object thirdparty/KyberOT/CMakeFiles/KyberOT.dir/kex.c.o

  [ 72%] Building C object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/consts.c.o

  [ 73%] Building C object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/genmatrix.c.o

  [ 73%] Building C object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/fips202x4.c.o

  [ 74%] Building ASM object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/ntt.s.o

  [ 74%] Building ASM object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/invntt.s.o

  [ 75%] Building C object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/randombytes.c.o

  [ 75%] Building C object
  thirdparty/KyberOT/CMakeFiles/KyberOT.dir/KyberOT.c.o

  [ 76%] Linking C static library libKyberOT.a

  [ 76%] Built target KyberOT

  [ 76%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Base/MasnyRindal.cpp.o

  [ 77%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Base/MasnyRindalKyber.cpp.o

  [ 77%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Base/SimplestOT.cpp.o

  [ 78%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Base/naor-pinkas.cpp.o

  [ 78%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseK/AknOtReceiver.cpp.o

  [ 79%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseK/AknOtSender.cpp.o

  [ 80%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseOne/Kkrt/KkrtNcoOtReceiver.cpp.o

  [ 80%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseOne/Kkrt/KkrtNcoOtSender.cpp.o

  [ 81%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseOne/NcoOtExt.cpp.o

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/NChooseOne/NcoOtExt.cpp:
  In member function ‘void
  osuCrypto::NcoOtExtReceiver::receiveChosen(osuCrypto::u64,
  osuCrypto::span<osuCrypto::block>, osuCrypto::span<long unsigned int>,
  osuCrypto::PRNG&, osuCrypto::Channel&)’:

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/NChooseOne/NcoOtExt.cpp:120:23:
  warning: comparison of integer expressions of different signedness:
  ‘osuCrypto::i64’ {aka ‘long int’} and
  ‘nonstd::span_lite::span<osuCrypto::block,
  18446744073709551615>::size_type’ {aka ‘long unsigned int’}
  [-Wsign-compare]

    120 |     for (i64 i = 0 i < messages.size() ++i)
        |                     ~~^~~~~~~~~~~~~~~~~

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/NChooseOne/NcoOtExt.cpp:133:23:
  warning: comparison of integer expressions of different signedness:
  ‘osuCrypto::i64’ {aka ‘long int’} and
  ‘nonstd::span_lite::span<osuCrypto::block,
  18446744073709551615>::size_type’ {aka ‘long unsigned int’}
  [-Wsign-compare]

    133 |     for (i64 i = 0 i < messages.size() ++i)
        |                     ~~^~~~~~~~~~~~~~~~~

  [ 81%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseOne/Oos/OosNcoOtReceiver.cpp.o

  [ 82%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseOne/Oos/OosNcoOtSender.cpp.o

  [ 82%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseOne/RR17/Rr17NcoOtReceiver.cpp.o

  [ 83%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseOne/RR17/Rr17NcoOtSender.cpp.o

  [ 84%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Tools/LDPC/Mtx.cpp.o

  [ 84%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Tools/LDPC/Util.cpp.o

  [ 85%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Tools/LinearCode.cpp.o

  [ 85%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Tools/SilentPprf.cpp.o

  /home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/Tools/SilentPprf.cpp: In
  function ‘void osuCrypto::interleavedPoints(osuCrypto::span<long unsigned
  int>, osuCrypto::u64, osuCrypto::PprfOutputFormat)’:

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/Tools/SilentPprf.cpp:224:27:
  warning: comparison of integer expressions of different signedness:
  ‘osuCrypto::i64’ {aka ‘long int’} and
  ‘nonstd::span_lite::span<long unsigned int,
  18446744073709551615>::size_type’ {aka ‘long unsigned int’}
  [-Wsign-compare]

    224 |         for (i64 i = 0 i < points.size() ++i)
        |                         ~~^~~~~~~~~~~~~~~

  /home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/Tools/SilentPprf.cpp: In
  function ‘osuCrypto::u64
  osuCrypto::getActivePath(osuCrypto::span<unsigned char>&)’:

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/Tools/SilentPprf.cpp:233:27:
  warning: comparison of integer expressions of different signedness:
  ‘osuCrypto::i64’ {aka ‘long int’} and
  ‘nonstd::span_lite::span<unsigned char,
  18446744073709551615>::size_type’ {aka ‘long unsigned int’}
  [-Wsign-compare]

    233 |         for (i64 i = 0 i < choiceBits.size() ++i)
        |                         ~~^~~~~~~~~~~~~~~~~~~

  [ 86%] Building CXX object libOTe/CMakeFiles/libOTe.dir/Tools/Tools.cpp.o

  [ 86%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Tools/bitpolymul.cpp.o

  [ 87%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/IknpOtExtReceiver.cpp.o

  [ 88%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/IknpOtExtSender.cpp.o

  [ 88%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/KosDotExtReceiver.cpp.o

  [ 89%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/KosDotExtSender.cpp.o

  [ 89%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/KosOtExtReceiver.cpp.o

  [ 90%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/KosOtExtSender.cpp.o

  [ 90%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/OTExtInterface.cpp.o

  [ 91%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/SilentOtExtReceiver.cpp.o

  [ 92%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/SilentOtExtSender.cpp.o

  [ 92%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Vole/NoisyVoleReceiver.cpp.o

  [ 93%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Vole/NoisyVoleSender.cpp.o

  [ 93%] Linking CXX static library liblibOTe.a

  [ 93%] Built target libOTe

  [ 94%] Building CXX object
  libOTe_Tests/CMakeFiles/libOTe_Tests.dir/AknOt_Tests.cpp.o

  [ 94%] Building CXX object
  libOTe_Tests/CMakeFiles/libOTe_Tests.dir/BaseOT_Tests.cpp.o

  [ 95%] Building CXX object
  libOTe_Tests/CMakeFiles/libOTe_Tests.dir/Common.cpp.o

  [ 96%] Building CXX object
  libOTe_Tests/CMakeFiles/libOTe_Tests.dir/NcoOT_Tests.cpp.o

  [ 96%] Building CXX object
  libOTe_Tests/CMakeFiles/libOTe_Tests.dir/OT_Tests.cpp.o

  [ 97%] Building CXX object
  libOTe_Tests/CMakeFiles/libOTe_Tests.dir/SilentOT_Tests.cpp.o

  [ 97%] Building CXX object
  libOTe_Tests/CMakeFiles/libOTe_Tests.dir/UnitTests.cpp.o

  [ 98%] Building CXX object
  libOTe_Tests/CMakeFiles/libOTe_Tests.dir/bitpolymul_Tests.cpp.o

  [ 98%] Linking CXX static library liblibOTe_Tests.a

  [ 98%] Built target libOTe_Tests

  [ 98%] Building CXX object
  frontend/CMakeFiles/frontend_libOTe.dir/main.cpp.o

  [ 99%] Building CXX object
  frontend/CMakeFiles/frontend_libOTe.dir/util.cpp.o

  /home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp: In function
  ‘void osuCrypto::sync(osuCrypto::Channel&, osuCrypto::Role)’:

  /home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp:71:38:
  warning: ‘dummy’ may be used uninitialized [-Wmaybe-uninitialized]

     71 |                         chl.asyncSend(dummy, 1)
        |                         ~~~~~~~~~~~~~^~~~~~~~~~

  In file included from
  /home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.h:8,

                   from /home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp:1:

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/../cryptoTools/Network/Channel.h:826:9:
  note: by argument 2 of type ‘const unsigned char*’ to ‘typename
  std::enable_if<std::is_pod<_Tp>::value, void>::type
  osuCrypto::Channel::asyncSend(const T*, osuCrypto::u64) [with T = unsigned
  char]’ declared here

    826 |         Channel::asyncSend(const T* buffT, u64 sizeT)
        |         ^~~~~~~

  /home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp:70:28: note:
  ‘dummy’ declared here

     70 |                         u8 dummy[1]
        |                            ^~~~~

  /home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp: In function
  ‘void osuCrypto::senderGetLatency(osuCrypto::Channel&)’:

  /home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp:83:30:
  warning: ‘dummy’ may be used uninitialized [-Wmaybe-uninitialized]

     83 |                 chl.asyncSend(dummy, 1)
        |                 ~~~~~~~~~~~~~^~~~~~~~~~

  In file included from
  /home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.h:8,

                   from /home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp:1:

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/../cryptoTools/Network/Channel.h:826:9:
  note: by argument 2 of type ‘const unsigned char*’ to ‘typename
  std::enable_if<std::is_pod<_Tp>::value, void>::type
  osuCrypto::Channel::asyncSend(const T*, osuCrypto::u64) [with T = unsigned
  char]’ declared here

    826 |         Channel::asyncSend(const T* buffT, u64 sizeT)
        |         ^~~~~~~

  /home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp:81:20: note:
  ‘dummy’ declared here

     81 |                 u8 dummy[1]
        |                    ^~~~~

  [100%] Linking CXX executable frontend_libOTe

  /usr/bin/ld:
  /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
  function `fe25519_invert':

  (.text+0x2200): multiple definition of `fe25519_invert'
  ../thirdparty/SimplestOT/libSimplestOT.a(fe25519_invert.c.o):fe25519_invert.c:(.text+0x0):
  first defined here

  /usr/bin/ld:
  /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
  function `ge25519_add':

  (.text+0x2420): multiple definition of `ge25519_add'
  ../thirdparty/SimplestOT/libSimplestOT.a(ge25519_add.c.o):ge25519_add.c:(.text+0x0):
  first defined here

  /usr/bin/ld:
  /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
  function `ge25519_p1p1_to_p2':

  (.text+0x2be0): multiple definition of `ge25519_p1p1_to_p2'
  ../thirdparty/SimplestOT/libSimplestOT.a(ge25519_p1p1_to_p2.s.o):(.text+0x0):
  first defined here

  /usr/bin/ld:
  /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
  function `ge25519_p1p1_to_p3':

  (.text+0x2c30): multiple definition of `ge25519_p1p1_to_p3'
  ../thirdparty/SimplestOT/libSimplestOT.a(ge25519_p1p1_to_p3.s.o):(.text+0x0):
  first defined here

  /usr/bin/ld:
  /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
  function `ge25519_scalarmult':

  (.text+0x4350): multiple definition of `ge25519_scalarmult'
  ../thirdparty/SimplestOT/libSimplestOT.a(ge25519_scalarmult.c.o):ge25519_scalarmult.c:(.text+0x0):
  first defined here

  /usr/bin/ld:
  /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
  function `ge25519_scalarmult_base':

  (.text+0x4ac0): multiple definition of `ge25519_scalarmult_base'
  ../thirdparty/SimplestOT/libSimplestOT.a(ge25519_scalarmult_base.c.o):ge25519_scalarmult_base.c:(.text+0x0):
  first defined here

  /usr/bin/ld:
  ../cryptoTools/cryptoTools/libcryptoTools.a(SodiumCurve.cpp.o): in function
  `osuCrypto::Sodium::operator*(osuCrypto::Sodium::Scalar25519 const&,
  osuCrypto::Sodium::Monty25519 const&)':

  SodiumCurve.cpp:(.text+0x2bf): undefined reference to
  `crypto_scalarmult_noclamp'

  /usr/bin/ld:
  ../cryptoTools/cryptoTools/libcryptoTools.a(SodiumCurve.cpp.o): in function
  `osuCrypto::Sodium::Monty25519::mulGenerator(osuCrypto::Sodium::Scalar25519
  const&)':

  SodiumCurve.cpp:(.text+0x2ef): undefined reference to
  `crypto_scalarmult_base_noclamp'

  collect2: error: ld returned 1 exit status

  gmake[2]: *** [frontend/CMakeFiles/frontend_libOTe.dir/build.make:124:
  frontend/frontend_libOTe] Error 1

  gmake[1]: *** [CMakeFiles/Makefile2:432:
  frontend/CMakeFiles/frontend_libOTe.dir/all] Error 2

  gmake: *** [Makefile:136: all] Error 2

Call Stack (most recent call first):
  thirdparty/getLibOTe.cmake:50 (run)
  cmake/findDependancies.cmake:134 (include)
  CMakeLists.txt:12 (include)


-- Configuring incomplete, errors occurred!
See also "/home/omen/Desktop/libPSI/out/build/linux/CMakeFiles/CMakeOutput.log".
gmake: Makefile: No such file or directory
gmake: *** No rule to make target 'Makefile'.  Stop.

@ladnir
Copy link
Member

ladnir commented Mar 5, 2023

You have an incompatible version of lib sodium installed on your system. You can use your existing version by adding -D SODIUM_MONTGOMERY=false to the get libOTe file. Or you can use the assumed version of sodium by adding -DFETCH_SODIUM=true to the get libOTe file.

@eduardo010174
Copy link
Author

eduardo010174 commented Mar 6, 2023

OK this fix work and code compile. But linker fail on libSimplestOT

python3 build.py -DSODIUM_MONTGOMERY=false


====== build.py (LIBPSI) ========
mkdir -p out/build/linux
cmake   -S . -B out/build/linux  -DSODIUM_MONTGOMERY=false -DSUDO_FETCH=OFF -DENABLE_ALL_PSI=ON -DFETCH_AUTO=ON -DPARALLEL_FETCH=12 -DCMAKE_BUILD_TYPE=Release 
cmake --build out/build/linux   --parallel 12 
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv


-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- fetch options
=======================================================
-- Option: FETCH_AUTO            = ON
-- Option: FETCH_SPARSEHASH      = 
-- Option: FETCH_LIBOTE          = 

-- General Options
=======================================================
-- Option: CMAKE_BUILD_TYPE = Release
	Release
	Debug
	RELWITHDEBINFO
-- Option: ENABLE_ALL_PSI         = ON/OFF


-- PSI protocols
=======================================================
-- Option: ENABLE_DCW_PSI    = ON
-- Option: ENABLE_DKT_PSI    = ON
-- Option: ENABLE_GRR_PSI    = ON
-- Option: ENABLE_RR16_PSI   = ON
-- Option: ENABLE_RR17_PSI   = ON
-- Option: ENABLE_RR17B_PSI  = ON
-- Option: ENABLE_KKRT_PSI   = ON
-- Option: ENABLE_ECDH_PSI   = ON
-- Option: ENABLE_DRRN_PSI   = ON

-- LIBPSI_THIRDPARTY_DIR=/home/omen/Desktop/libPSI/out/install/linux
============= Building sparsehash-c11 =============
Checkout edd6f1180156e76facc1c0449da245208ab39503 
'/usr/bin/git' 'checkout' 'edd6f1180156e76facc1c0449da245208ab39503'
log /home/omen/Desktop/libPSI/thirdparty/log-sparsehash-c11.txt
==========================================
SPARSEHASH_INCLUDE_DIRS=/home/omen/Desktop/libPSI/out/install/linux/include
============= Building libOTe =============
Checkout 7d5c13d8c7a8f56a53e3f5909882c114903fb17c 
'/usr/bin/git' 'checkout' '7d5c13d8c7a8f56a53e3f5909882c114903fb17c'
submodule
'/usr/bin/git' 'submodule' 'update' '--recursive'
Configure
'/usr/bin/cmake' '-S' '/home/omen/Desktop/libPSI/thirdparty/libOTe' '-B' '/home/omen/Desktop/libPSI/thirdparty/libOTe/out/build/linux' '-DCMAKE_INSTALL_PREFIX=/usr/local' '-DCMAKE_BUILD_TYPE:STRING=Release' '-DFETCH_AUTO=ON' '-DVERBOSE_FETCH=OFF' '-DENABLE_ALL_OT=ON' '-DENABLE_SODIUM=ON' '-DENABLE_RELIC=OFF'
Build
'/usr/bin/cmake' '--build' '/home/omen/Desktop/libPSI/thirdparty/libOTe/out/build/linux' '--config' 'Release'
CMake Error at thirdparty/fetch.cmake:37 (message):
  Build failed (2).

  LOG:

  Consolidate compiler generated dependencies of target cryptoTools

  [ 0%] Building CXX object
  cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/SodiumCurve.cpp.o


  [ 1%] Linking CXX static library libcryptoTools.a

  [ 19%] Built target cryptoTools

  Consolidate compiler generated dependencies of target tests_cryptoTools

  [ 29%] Built target tests_cryptoTools

  Consolidate compiler generated dependencies of target frontend_cryptoTools

  [ 30%] Linking CXX executable frontend_cryptoTools

  [ 31%] Built target frontend_cryptoTools

  Scanning dependencies of target SimplestOT

  Consolidate compiler generated dependencies of target SimplestOT

  [ 65%] Built target SimplestOT

  Scanning dependencies of target KyberOT

  Consolidate compiler generated dependencies of target KyberOT

  [ 76%] Built target KyberOT

  Consolidate compiler generated dependencies of target libOTe

  [ 76%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Base/MasnyRindal.cpp.o

  [ 76%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Base/SimplestOT.cpp.o

  [ 77%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/Base/naor-pinkas.cpp.o

  [ 77%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseK/AknOtReceiver.cpp.o

  [ 78%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseK/AknOtSender.cpp.o

  [ 79%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseOne/Kkrt/KkrtNcoOtReceiver.cpp.o

  [ 79%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseOne/Kkrt/KkrtNcoOtSender.cpp.o

  [ 80%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseOne/NcoOtExt.cpp.o

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/NChooseOne/NcoOtExt.cpp:
  In member function ‘void
  osuCrypto::NcoOtExtReceiver::receiveChosen(osuCrypto::u64,
  osuCrypto::span<osuCrypto::block>, osuCrypto::span<long unsigned int>,
  osuCrypto::PRNG&, osuCrypto::Channel&)’:

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/NChooseOne/NcoOtExt.cpp:120:23:
  warning: comparison of integer expressions of different signedness:
  ‘osuCrypto::i64’ {aka ‘long int’} and
  ‘nonstd::span_lite::span<osuCrypto::block,
  18446744073709551615>::size_type’ {aka ‘long unsigned int’}
  [-Wsign-compare]

    120 |     for (i64 i = 0 i < messages.size() ++i)
        |                     ~~^~~~~~~~~~~~~~~~~

  
  /home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/NChooseOne/NcoOtExt.cpp:133:23:
  warning: comparison of integer expressions of different signedness:
  ‘osuCrypto::i64’ {aka ‘long int’} and
  ‘nonstd::span_lite::span<osuCrypto::block,
  18446744073709551615>::size_type’ {aka ‘long unsigned int’}
  [-Wsign-compare]

    133 |     for (i64 i = 0 i < messages.size() ++i)
        |                     ~~^~~~~~~~~~~~~~~~~

  [ 80%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseOne/Oos/OosNcoOtReceiver.cpp.o

  [ 81%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/NChooseOne/Oos/OosNcoOtSender.cpp.o

  [ 81%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/OTExtInterface.cpp.o

  [ 82%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/SilentOtExtReceiver.cpp.o

  [ 83%] Building CXX object
  libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/SilentOtExtSender.cpp.o

  [ 83%] Linking CXX static library liblibOTe.a

  [ 93%] Built target libOTe

  Consolidate compiler generated dependencies of target libOTe_Tests

  [ 94%] Building CXX object
  libOTe_Tests/CMakeFiles/libOTe_Tests.dir/AknOt_Tests.cpp.o

  [ 94%] Building CXX object
  libOTe_Tests/CMakeFiles/libOTe_Tests.dir/BaseOT_Tests.cpp.o

  [ 95%] Building CXX object
  libOTe_Tests/CMakeFiles/libOTe_Tests.dir/NcoOT_Tests.cpp.o

  [ 95%] Building CXX object
  libOTe_Tests/CMakeFiles/libOTe_Tests.dir/OT_Tests.cpp.o

  [ 95%] Linking CXX static library liblibOTe_Tests.a

  [ 98%] Built target libOTe_Tests

  Consolidate compiler generated dependencies of target frontend_libOTe

  [ 98%] Building CXX object
  frontend/CMakeFiles/frontend_libOTe.dir/main.cpp.o

  [ 99%] Linking CXX executable frontend_libOTe

  /usr/bin/ld:
  /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
  function `fe25519_invert':

  (.text+0x2200): multiple definition of `fe25519_invert'
  ../thirdparty/SimplestOT/libSimplestOT.a(fe25519_invert.c.o):fe25519_invert.c:(.text+0x0):
  first defined here

  /usr/bin/ld:
  /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
  function `ge25519_add':

  (.text+0x2420): multiple definition of `ge25519_add'
  ../thirdparty/SimplestOT/libSimplestOT.a(ge25519_add.c.o):ge25519_add.c:(.text+0x0):
  first defined here

  /usr/bin/ld:
  /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
  function `ge25519_p1p1_to_p2':

  (.text+0x2be0): multiple definition of `ge25519_p1p1_to_p2'
  ../thirdparty/SimplestOT/libSimplestOT.a(ge25519_p1p1_to_p2.s.o):(.text+0x0):
  first defined here

  /usr/bin/ld:
  /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
  function `ge25519_p1p1_to_p3':

  (.text+0x2c30): multiple definition of `ge25519_p1p1_to_p3'
  ../thirdparty/SimplestOT/libSimplestOT.a(ge25519_p1p1_to_p3.s.o):(.text+0x0):
  first defined here

  /usr/bin/ld:
  /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
  function `ge25519_scalarmult':

  (.text+0x4350): multiple definition of `ge25519_scalarmult'
  ../thirdparty/SimplestOT/libSimplestOT.a(ge25519_scalarmult.c.o):ge25519_scalarmult.c:(.text+0x0):
  first defined here

  /usr/bin/ld:
  /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
  function `ge25519_scalarmult_base':

  (.text+0x4ac0): multiple definition of `ge25519_scalarmult_base'
  ../thirdparty/SimplestOT/libSimplestOT.a(ge25519_scalarmult_base.c.o):ge25519_scalarmult_base.c:(.text+0x0):
  first defined here

  collect2: error: ld returned 1 exit status

  gmake[2]: *** [frontend/CMakeFiles/frontend_libOTe.dir/build.make:124:
  frontend/frontend_libOTe] Error 1

  gmake[1]: *** [CMakeFiles/Makefile2:432:
  frontend/CMakeFiles/frontend_libOTe.dir/all] Error 2

  gmake: *** [Makefile:136: all] Error 2

Call Stack (most recent call first):
  thirdparty/getLibOTe.cmake:50 (run)
  cmake/findDependancies.cmake:134 (include)
  CMakeLists.txt:12 (include)

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