Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

make install erroring when building with -DBUILD_TESTS=OFF #847

@asymmetric

Description

@asymmetric

I ran the following command in a debian-testing:slim docker image:

root@6f6b2a4cfeb4:/lib-ledger-core-build# cmake -DBUILD_TESTS=OFF  ../lib-ledger-core && make

After that, I ran make install from the same build directory, which failed with:

root@6f6b2a4cfeb4:/lib-ledger-core-build# make install
[  1%] Built target secp256k1
[  1%] Built target bigd
[  1%] Built target fmt
[ 58%] Built target crypto
[ 58%] Built target blake
[ 58%] Built target ethash
[ 58%] Built target snappy
[ 62%] Built target leveldb
[ 62%] Built target sha512256
[ 63%] Built target sqlcipher
[ 65%] Built target soci_core_static
[ 66%] Built target soci_sqlite3
Consolidate compiler generated dependencies of target ledger-core-obj
[100%] Built target ledger-core-obj
[100%] Built target ledger-core
[100%] Built target ledger-core-static
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/include/openssl/e_os2.h
-- Installing: /usr/local/share/openssl/c_hash
-- Installing: /usr/local/share/openssl/c_info
-- Installing: /usr/local/share/openssl/c_issuer
-- Installing: /usr/local/share/openssl/c_name
CMake Error at core/lib/openssl/cmake_install.cmake:50 (file):
  file INSTALL cannot find
  "/lib-ledger-core/core/lib/openssl/tools/c_rehash": No such file or
  directory.
Call Stack (most recent call first):
  core/lib/cmake_install.cmake:57 (include)
  core/cmake_install.cmake:47 (include)
  cmake_install.cmake:52 (include)


make: *** [Makefile:130: install] Error 1

It seems the install target is trying to install openssl, which IIUC has explicitly been excluded from the build by the BUILD_TESTS=OFF flag.

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