Skip to content

Build fails with CMake 3.12 #167

@dubek

Description

@dubek

The README documentation and CMakeLists.txt both state that the minimal version for CMake is 3.12. However, building SEAL 3.5.1 with CMake 3.12 fails during library linking:

...
[ 91%] Building CXX object CMakeFiles/seal_obj.dir/native/src/seal/util/uintarith.cpp.o
[ 92%] Building CXX object CMakeFiles/seal_obj.dir/native/src/seal/util/uintarithmod.cpp.o
[ 94%] Building CXX object CMakeFiles/seal_obj.dir/native/src/seal/util/uintarithsmallmod.cpp.o
[ 96%] Building CXX object CMakeFiles/seal_obj.dir/native/src/seal/util/uintcore.cpp.o
[ 98%] Building CXX object CMakeFiles/seal_obj.dir/native/src/seal/util/ztools.cpp.o
[ 98%] Built target seal_obj
Scanning dependencies of target seal
[100%] Linking CXX static library lib/libseal-3.5.a
/bin/sh: 1: cd: can't cd to /data/SEAL/$<TARGET_FILE_DIR:seal>
CMakeFiles/seal.dir/build.make:148: recipe for target 'lib/libseal-3.5.a' failed
make[2]: *** [lib/libseal-3.5.a] Error 2
make[2]: *** Deleting file 'lib/libseal-3.5.a'
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/seal.dir/all' failed
make[1]: *** [CMakeFiles/seal.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Upgrading to latest CMake (3.17) on my dev machine solved the issue. Not sure what's the real minimal version of CMake required.

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