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

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

Open
asymmetric opened this issue Jan 26, 2022 · 0 comments
Open

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

asymmetric opened this issue Jan 26, 2022 · 0 comments

Comments

@asymmetric
Copy link

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.

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

1 participant