mpc-msri / EzPC

MIT License
401 stars 122 forks source link

[BEACON] Cannot load shared library dllstdint_stubs when running compile_networks.py #226

Closed whcjimmy closed 2 weeks ago

whcjimmy commented 3 weeks ago

Hi there,

I'm trying to run the code from Secure Floating-Point Training which is in the Beacon directory. However, I got an error regarding a shared library is missing.

I tried pulling docker image from docker hub and building image with dockerfile by myself. However, both ways hit this issues in the end.

Is there any way to solve this problem? Thanks a lot.

(mpc_venv) root@cbebd8dee126:/ezpc_dir/EzPC/Beacon# python3 compile_networks.py FFNN 128 1 0.01 MSE no
FFNN
EzPC file dumped
Fatal error: cannot load shared library dllstdint_stubs
Reason: dllstdint_stubs.so: cannot open shared object file: No such file or directory
Aborted
mv: cannot stat 'FFNN0.cpp': No such file or directory
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:3 (find_package):
  Could not find a package configuration file provided by "SCI" with any of
  the following names:

    SCIConfig.cmake
    sci-config.cmake

  Add the installation prefix of "SCI" to CMAKE_PREFIX_PATH or set "SCI_DIR"
  to a directory containing one of the above files.  If "SCI" provides a
  separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!
See also "/ezpc_dir/EzPC/Beacon/build/CMakeFiles/CMakeOutput.log".
cp: cannot stat 'build/*_secfloat': No such file or directory
cp: cannot stat 'build/*_beacon': No such file or directory
rm: cannot remove 'FFNN.cpp': No such file or directory
(mpc_venv) root@cbebd8dee126:/ezpc_dir/EzPC/Beacon#
whcjimmy commented 2 weeks ago

This problem can be solved by

  1. clone ocaml library from https://github.com/ocaml/ocaml
  2. add the installed library to LD_LIBRARY_PATH