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

Build Error on Ubuntu 22.04 #68

Closed
chgorman opened this issue Dec 20, 2024 · 8 comments
Closed

Build Error on Ubuntu 22.04 #68

chgorman opened this issue Dec 20, 2024 · 8 comments

Comments

@chgorman
Copy link

Output after running python 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


-- 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/chris/projects-valence/libPSI/out/install/linux
sparsehash-c11 already fetched.
SPARSEHASH_INCLUDE_DIRS=/home/chris/projects-valence/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/chris/projects-valence/libPSI/thirdparty/libOTe' '-B' '/home/chris/projects-valence/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:

  -- 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

  

  

  span-lite already fetched (cryptoTools).

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

  Checkout 3f616ad64c3e63039277b8c90915607b6a2c504c

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

  

  Build'/usr/bin/cmake' '-S'
  '/home/chris/projects-valence/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic'
  '-B'
  '/home/chris/projects-valence/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

  

    Consolidate compiler generated dependencies of target relic

  

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

  

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

  

  

    
    /home/chris/projects-valence/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/chris/projects-valence/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/chris/projects-valence/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/chris/projects-valence/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/chris/projects-valence/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/md/blake2s-ref.c:
    In function ‘blake2s’:

  

    
    /home/chris/projects-valence/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/chris/projects-valence/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/build/linux'
  '--config' 'Release'

  

  -- Configuring incomplete, errors occurred!

  See also
  "/home/chris/projects-valence/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/chris/projects-valence/libPSI/out/build/linux/CMakeFiles/CMakeOutput.log".
gmake: Makefile: No such file or directory
gmake: *** No rule to make target 'Makefile'.  Stop.
@chgorman
Copy link
Author

This could be related/the same as Issue #63

@ladnir
Copy link
Member

ladnir commented Dec 20, 2024

Yeah, looks like I need to update the dependancy to work on newer compilers. A work around is to use sodium instead

python3 build.py -DENABLE_RELIC=off -DFETCH_SODIUM=on

@chgorman
Copy link
Author

I ran what you mentioned but it still failed to compile. This was the output:

====== build.py (LIBPSI) ========
mkdir -p out/build/linux
cmake   -S . -B out/build/linux  -DENABLE_RELIC=off -DFETCH_SODIUM=on -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.4.0
-- The CXX compiler identification is GNU 11.4.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/chris/projects-valence/libPSI/out/install/linux
============= Building sparsehash-c11 =============
Checkout edd6f1180156e76facc1c0449da245208ab39503 
'/usr/bin/git' 'checkout' 'edd6f1180156e76facc1c0449da245208ab39503'
log /home/chris/projects-valence/libPSI/thirdparty/log-sparsehash-c11.txt
==========================================
SPARSEHASH_INCLUDE_DIRS=/home/chris/projects-valence/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/chris/projects-valence/libPSI/thirdparty/libOTe' '-B' '/home/chris/projects-valence/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:

  -- 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

  

  

  span-lite already fetched (cryptoTools).

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

  Checkout 3f616ad64c3e63039277b8c90915607b6a2c504c

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

  

  Build'/usr/bin/cmake' '-S'
  '/home/chris/projects-valence/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic'
  '-B'
  '/home/chris/projects-valence/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

  

    Consolidate compiler generated dependencies of target relic

  

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

  

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

  

  

    
    /home/chris/projects-valence/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/chris/projects-valence/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/chris/projects-valence/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/chris/projects-valence/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/chris/projects-valence/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/md/blake2s-ref.c:
    In function ‘blake2s’:

  

    
    /home/chris/projects-valence/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/chris/projects-valence/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/build/linux'
  '--config' 'Release'

  

  -- Configuring incomplete, errors occurred!

  See also
  "/home/chris/projects-valence/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/chris/projects-valence/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 Dec 20, 2024

whoops, the workaround is to change this line

-DENABLE_RELIC=ON

to

-DENABLE_RELIC=OFF -DENABLE_SODIUM=ON.

I'll try to push a fix soon.

@chgorman
Copy link
Author

Hmm. Still failing to compile.

New output:

====== build.py (LIBPSI) ========
mkdir -p out/build/linux
cmake   -S . -B out/build/linux  -DENABLE_RELIC=OFF -DENABLE_SODIUM=ON -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


-- 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/chris/projects-valence/libPSI/out/install/linux
sparsehash-c11 already fetched.
SPARSEHASH_INCLUDE_DIRS=/home/chris/projects-valence/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/chris/projects-valence/libPSI/thirdparty/libOTe' '-B' '/home/chris/projects-valence/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:

  -- 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

  

  

  span-lite already fetched (cryptoTools).

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

  Checkout 3f616ad64c3e63039277b8c90915607b6a2c504c

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

  

  Build'/usr/bin/cmake' '-S'
  '/home/chris/projects-valence/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic'
  '-B'
  '/home/chris/projects-valence/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

  

    Consolidate compiler generated dependencies of target relic

  

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

  

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

  

  

    
    /home/chris/projects-valence/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/chris/projects-valence/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/chris/projects-valence/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/chris/projects-valence/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/chris/projects-valence/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/src/md/blake2s-ref.c:
    In function ‘blake2s’:

  

    
    /home/chris/projects-valence/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/chris/projects-valence/libPSI/thirdparty/libOTe/cryptoTools/thirdparty/relic/build/linux'
  '--config' 'Release'

  

  -- Configuring incomplete, errors occurred!

  See also
  "/home/chris/projects-valence/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/chris/projects-valence/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 Dec 23, 2024

It does not appear that you are setting this correctly. As your output shows, you are still building relic

'/usr/bin/cmake' '-S' '/home/chris/projects-valence/libPSI/thirdparty/libOTe' '-B' '/home/chris/projects-valence/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'

This is the command that controls how libOTe is build which clearly has relic enabled and does not have sodium enabled. You need to edit the getLibOTe.cmake file to have the correct configuration.

@ladnir
Copy link
Member

ladnir commented Dec 23, 2024

ok, i just updated the repo. master should build.

@chgorman
Copy link
Author

I was able to get the library to compile. Thank you for your help.

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