Skip to content

build wrong on Ubuntu22.04 #69

@aLoHaha1

Description

@aLoHaha1

i build the project using build.py, but it doesn't work.
it seems like get wrong boost, but i dont know how to fix.

`
sudo python3 build.py
[sudo] password for ana:

====== 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=8 -DCMAKE_BUILD_TYPE=Release
cmake --build out/build/linux --parallel 8
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

-- Option: ENABLE_RELIC = ON
-- Option: ENABLE_SODIUM = OFF

-- LIBPSI_THIRDPARTY_DIR=/home/ana/Documents/libPSI/out/install/linux
sparsehash-c11 already fetched.
SPARSEHASH_INCLUDE_DIRS=/home/ana/Documents/libPSI/out/install/linux/include
============= Building libOTe =============
Checkout f47217d924ceef9b65e04a9ae680b65a79a4425a
HEAD is now at f47217d fixes for new cryptoTools
submodule
Configure
-- Building for x86-64
-- cryptoTools options

-- Option: CRYPTO_TOOLS_STD_VER = 20

-- Option: NO_SYSTEM_PATH =
-- Option: FETCH_AUTO = ON
-- Option: VERBOSE_FETCH =

-- Option: FETCH_RELIC =
-- Option: FETCH_SODIUM =
-- Option: FETCH_BOOST =
-- Option: FETCH_COPROTO =
-- Option: FETCH_LIBDIVIDE = ON

-- Option: CMAKE_BUILD_TYPE = Release
Release
Debug
RelWithDebInfo
-- Option: ENABLE_SPAN_LITE = OFF
-- Option: ENABLE_GMP = OFF
-- Option: ENABLE_RELIC = ON
-- Option: ENABLE_SODIUM = OFF
-- Option: ENABLE_BOOST = ON
-- Option: ENABLE_OPENSSL = OFF
-- Option: ENABLE_COPROTO = true
-- Option: ENABLE_CIRCUITS = OFF
-- Option: ENABLE_ARM_AES = OFF
-- Option: ENABLE_SSE = ON
-- Option: ENABLE_AVX = ON
-- Option: ENABLE_PIC = OFF
-- Option: ENABLE_ASAN = OFF

relic already fetched.
-- Relic_LIB: /home/ana/Documents/libPSI/out/libOTe/out/install/linux/lib/librelic_s.a
-- Relic_inc: /home/ana/Documents/libPSI/out/libOTe/out/install/linux/include

============= Building coproto =============
'/usr/bin/git' 'show-ref' '--tags' 'c9e646b2f350c998e5225a67166573ad88ac9dbd' '--quiet'
CHECK_TAG_REUSLT=1
'/usr/bin/git' 'fetch'
Checkout c9e646b2f350c998e5225a67166573ad88ac9dbd
'/usr/bin/git' 'checkout' 'c9e646b2f350c998e5225a67166573ad88ac9dbd'
HEAD is now at c9e646b macoro bump
-- Option: CMAKE_INSTALL_PREFIX = /usr/local
-- Option: CMAKE_BUILD_TYPE = Release
Release
Debug
RELWITHDEBINFO
-- Option: COPROTO_NO_SYSTEM_PATH = ~ do not look in system paths for dependencies
-- Option: COPROTO_FETCH_AUTO = ~ automatically fetch dependencies
-- Option: COPROTO_FETCH_SPAN = OFF ~ always fetch span
-- Option: COPROTO_FETCH_FUNCTION2 = ON ~ always fetch function2
-- Option: COPROTO_FETCH_MACORO = ON ~ always fetch macoro
-- Option: COPROTO_FETCH_BOOST = ON ~ always fetch boost

-- Option: COPROTO_CPP_VER = 20
-- Option: COPROTO_PIC = OFF
-- Option: COPROTO_ASAN = OFF
-- Option: COPROTO_ENABLE_BOOST = ON
-- Option: COPROTO_ENABLE_SPAN =
-- Option: COPROTO_ENABLE_OPENSSL = OFF
-- Option: COPROTO_ENABLE_ASSERTS = ON

-- Option: COPROTO_STAGE = /home/ana/Documents/libPSI/out/libOTe/cmake/../out/install/linux
============= Building macoro =============
Checkout 305b716ec78e9d65275943bd53fa0ed4a7defee8
'/usr/bin/git' 'checkout' '305b716ec78e9d65275943bd53fa0ed4a7defee8'
HEAD is now at 305b716 added missing header utility

Options

CMAKE_BUILD_TYPE = Release ~ build type
MACORO_NO_SYSTEM_PATH = ~ do not look in system paths for dependencies
MACORO_FETCH_AUTO = true ~ automatically fetch dependencies as needed
MACORO_FETCH_OPTIONAL = ~ fetch optional-lite
MACORO_FETCH_VARIANT = ~ fetch variant-lite
MACORO_CPP_VER = 20 ~ cpp standard version
MACORO_OPTIONAL_LITE =OFF ~ use optional lite
MACORO_VARIANT_LITE =OFF ~ use variant lite
MACORO_PIC =OFF ~ compile with -fPIC on unix
MACORO_ASAN =OFF ~ compile with asan
MACORO_TESTS =ON ~ compile the tests and frontend

-- Option: MACORO_STAGE = /home/ana/Documents/libPSI/out/libOTe/out/macoro/out/install/linux
============= Building function2 =============
Checkout 02ca99831de59c7c3a4b834789260253cace0ced
'/usr/bin/git' 'checkout' '02ca99831de59c7c3a4b834789260253cace0ced'
HEAD is now at 02ca998 Release 4.2.0 * Includes minor maintainance and stability patches from the last year * Closes #46
Configure
'/usr/bin/cmake' '-S' '/home/ana/Documents/libPSI/out/libOTe/cmake/../out//function2' '-B' '/home/ana/Documents/libPSI/out/libOTe/cmake/../out//function2/out/build/linux' '-DCMAKE_INSTALL_PREFIX=/usr/local' '-DCMAKE_BUILD_TYPE=Release' '-DBUILD_TESTING=OFF'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ana/Documents/libPSI/out/libOTe/out/function2/out/build/linux
Build
'/usr/bin/cmake' '--build' '/home/ana/Documents/libPSI/out/libOTe/cmake/../out//function2/out/build/linux' '--config' 'Release'
Install
'/usr/bin/cmake' '--install' '/home/ana/Documents/libPSI/out/libOTe/cmake/../out//function2/out/build/linux' '--config' 'Release' '--prefix' '/home/ana/Documents/libPSI/out/libOTe/cmake/../out/install/linux'
-- Up-to-date: /home/ana/Documents/libPSI/out/libOTe/cmake/../out/install/linux/include/function2
-- Up-to-date: /home/ana/Documents/libPSI/out/libOTe/cmake/../out/install/linux/include/function2/function2.hpp
-- Up-to-date: /home/ana/Documents/libPSI/out/libOTe/cmake/../out/install/linux/./LICENSE.txt
-- Up-to-date: /home/ana/Documents/libPSI/out/libOTe/cmake/../out/install/linux/./Readme.md
-- Up-to-date: /home/ana/Documents/libPSI/out/libOTe/cmake/../out/install/linux/lib/cmake/function2/function2ConfigVersion.cmake
-- Up-to-date: /home/ana/Documents/libPSI/out/libOTe/cmake/../out/install/linux/lib/cmake/function2/function2Config.cmake
-- Up-to-date: /home/ana/Documents/libPSI/out/libOTe/cmake/../out/install/linux/lib/cmake/function2/function2Targets.cmake
log /home/ana/Documents/libPSI/out/libOTe/out/coproto/thirdparty/log-function2.txt

============= Building Boost =============
downloading https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.bz2
-- [download 100% complete]
-- [download 9% complete]
-- [download 22% complete]
-- [download 34% complete]
-- [download 46% complete]
-- [download 58% complete]
-- [download 70% complete]
-- [download 82% complete]
-- [download 94% complete]
-- [download 100% complete]
CMake Error at out/coproto/thirdparty/getBoost.cmake:67 (file):
file DOWNLOAD HASH mismatch

for file: [/home/ana/Documents/libPSI/out/libOTe/cmake/../out//boost_1_86_0.tar.bz2]
  expected hash: [1bed88e40401b2cb7a1f76d4bab499e352fa4d0c5f31c0dbae64e24d34d7513b]
    actual hash: [9c2f4b99bc7ddb95a8babff8ba78a4108aa0951243ea919166a7e2e279825502]
         status: [0;"No error"]

Call Stack (most recent call first):
out/coproto/cmake/coprotoFindDeps.cmake:156 (include)
out/coproto/CMakeLists.txt:20 (include)

extracting
CMake Error: Problem with archive_read_open_file(): Unrecognized archive format
CMake Error at out/coproto/thirdparty/getBoost.cmake:80 (file):
file failed to extract:
/home/ana/Documents/libPSI/out/libOTe/cmake/../out//boost_1_86_0.tar.bz2
Call Stack (most recent call first):
out/coproto/cmake/coprotoFindDeps.cmake:156 (include)
out/coproto/CMakeLists.txt:20 (include)

-- Configuring incomplete, errors occurred!
See also "/home/ana/Documents/libPSI/out/libOTe/out/build/linux/CMakeFiles/CMakeOutput.log".
CMake Error at thirdparty/fetch.cmake:31 (message):
Configure failed
Call Stack (most recent call first):
thirdparty/getLibOTe.cmake:52 (run)
cmake/findDependancies.cmake:134 (include)
CMakeLists.txt:12 (include)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions