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

Issue while building docker image #142

Open
clementrey-dev opened this issue May 13, 2024 · 1 comment
Open

Issue while building docker image #142

clementrey-dev opened this issue May 13, 2024 · 1 comment

Comments

@clementrey-dev
Copy link

clementrey-dev commented May 13, 2024

Hello,

I am trying to build the docker images using intruction in docker. During the build I had the following error:

------
Dockerfile:63
--------------------
  62 |     
  63 | >>> RUN rm -rf "/workspace/everest/$(basename "${REPO}" .git)/build" && \
  64 | >>>     cd "/workspace/everest/$(basename "${REPO}" .git)" && \
  65 | >>>     git checkout "${BRANCH}" && \
  66 | >>>     mkdir "/workspace/everest/$(basename "${REPO}" .git)/build" && \
  67 | >>>     cd "/workspace/everest/$(basename "${REPO}" .git)/build" && \
  68 | >>>     cmake .. -DEVEREST_BUILD_ALL_MODULES=ON -DCMAKE_INSTALL_PREFIX=/opt/everest && \
  69 | >>>     make -j"$(nproc)" install
  70 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c rm -rf \"/workspace/everest/$(basename \"${REPO}\" .git)/build\" &&     cd \"/workspace/everest/$(basename \"${REPO}\" .git)\" &&     git checkout \"${BRANCH}\" &&     mkdir \"/workspace/everest/$(basename \"${REPO}\" .git)/build\" &&     cd \"/workspace/everest/$(basename \"${REPO}\" .git)/build\" &&     cmake .. -DEVEREST_BUILD_ALL_MODULES=ON -DCMAKE_INSTALL_PREFIX=/opt/everest &&     make -j\"$(nproc)\" install" did not complete successfully: exit code: 2

While going through the Makefile output I was able to spot this error:

298.5 /workspace/everest/cpm_source_cache/libevse-security/433d25a5326b78b46dde9046ba0c2081b280dda9/libevse-security/lib/evse_security/crypto/openssl/openssl_supplier.cpp: In static member function 'static evse_security::CertificateValidationResult evse_security::OpenSSLSupplier::x509_verify_certificate_chain(evse_security::X509Handle*, const std::vector<evse_security::X509Handle*>&, const std::vector<evse_security::X509Handle*>&, bool, std::optional<std::filesystem::__cxx11::path>, std::optional<std::filesystem::__cxx11::path>)':
298.5 /workspace/everest/cpm_source_cache/libevse-security/433d25a5326b78b46dde9046ba0c2081b280dda9/libevse-security/lib/evse_security/crypto/openssl/openssl_supplier.cpp:599:21: error: 'X509_ADD_FLAG_NO_DUP' was not declared in this scope; did you mean 'X509_FLAG_NO_AUX'?
298.5   599 |         int flags = X509_ADD_FLAG_NO_DUP | X509_ADD_FLAG_NO_SS;
298.5       |                     ^~~~~~~~~~~~~~~~~~~~
298.5       |                     X509_FLAG_NO_AUX

Do you know how I can get a successful docker build ?

@hikinggrass
Copy link
Contributor

Can you try it with the branch from this pr #129 ? that switches the base image and updates to openssl 3 which might help with you issue

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

2 participants