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

[openssl] Build error #22183

Closed
NaturalJ0 opened this issue Dec 24, 2021 · 2 comments
Closed

[openssl] Build error #22183

NaturalJ0 opened this issue Dec 24, 2021 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@NaturalJ0
Copy link

NaturalJ0 commented Dec 24, 2021

Host Environment

To Reproduce
Steps to reproduce the behavior:
./vcpkg install openssl

Failure logs

[1/3] cd /root/vcpkg/buildtrees/openssl/x64-linux-dbg/1.1.1l-5a7d592597.clean && export PATH=/usr/bin:/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/bin:/root/vcpkg/downloads/tools/ninja-1.10.2-linux && export CC=/usr/bin/cc && export AR=/usr/bin/ar && export LD=/usr/bin/ld && export RANLIB=/usr/bin/ranlib && export MAKE=/usr/bin/make && export MAKEDEPPROG=/usr/bin/cc && export WINDRES= && /usr/bin/perl Configure no-shared enable-static-engine no-zlib no-ssl2 no-idea no-cast no-seed no-md2 no-tests linux-x86_64 --prefix=/root/vcpkg/packages/openssl_x64-linux/debug --openssldir=/etc/ssl -fPIC && /root/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/bin/cmake -DDIR=/root/vcpkg/buildtrees/openssl/x64-linux-dbg/1.1.1l-5a7d592597.clean -P /root/vcpkg/ports/openssl/unix/remove-deps.cmake
Configuring OpenSSL version 1.1.1l (0x101010cfL) for linux-x86_64
Using os-specific seed configuration
Creating configdata.pm
Creating Makefile

**********************************************************************
***                                                                ***
***   OpenSSL has been successfully configured                     ***
***                                                                ***
***   If you encounter a problem while building, please open an    ***
***   issue on GitHub <https://github.com/openssl/openssl/issues>  ***
***   and include the output from the following command:           ***
***                                                                ***
***       perl configdata.pm --dump                                ***
***                                                                ***
***   (If you are new to OpenSSL, you might want to consult the    ***
***   'Troubleshooting' section in the INSTALL file first)         ***
***                                                                ***
**********************************************************************
removing deps from /root/vcpkg/buildtrees/openssl/x64-linux-dbg/1.1.1l-5a7d592597.clean/demos/bio/Makefile
removing deps from /root/vcpkg/buildtrees/openssl/x64-linux-dbg/1.1.1l-5a7d592597.clean/demos/evp/Makefile
[2/3] cd /root/vcpkg/buildtrees/openssl/x64-linux-dbg/1.1.1l-5a7d592597.clean && export PATH=/usr/bin:/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/bin:/root/vcpkg/downloads/tools/ninja-1.10.2-linux && /root/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/bin/cmake -E touch /root/vcpkg/buildtrees/openssl/x64-linux-dbg/1.1.1l-5a7d592597.clean/krb5.h && /usr/bin/make -j 33 build_libs
FAILED: CMakeFiles/build_libs 1.1.1l-5a7d592597.clean/libssl.a 1.1.1l-5a7d592597.clean/libcrypto.a /root/vcpkg/buildtrees/openssl/x64-linux-dbg/CMakeFiles/build_libs /root/vcpkg/buildtrees/openssl/x64-linux-dbg/1.1.1l-5a7d592597.clean/libssl.a /root/vcpkg/buildtrees/openssl/x64-linux-dbg/1.1.1l-5a7d592597.clean/libcrypto.a 
cd /root/vcpkg/buildtrees/openssl/x64-linux-dbg/1.1.1l-5a7d592597.clean && export PATH=/usr/bin:/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/bin:/root/vcpkg/downloads/tools/ninja-1.10.2-linux && /root/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/bin/cmake -E touch /root/vcpkg/buildtrees/openssl/x64-linux-dbg/1.1.1l-5a7d592597.clean/krb5.h && /usr/bin/make -j 33 build_libs
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" include/crypto/dso_conf.h.in > include/crypto/dso_conf.h
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" include/openssl/opensslconf.h.in > include/openssl/opensslconf.h
/usr/bin/make depend && /usr/bin/make _build_libs
make[1]: Entering directory '/root/vcpkg/buildtrees/openssl/x64-linux-dbg/1.1.1l-5a7d592597.clean'
Can't locate File/Compare.pm in @INC (you may need to install the File::Compare module) (@INC contains: . /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./util/add-depends.pl line 16.
BEGIN failed--compilation aborted at ./util/add-depends.pl line 16.
make[1]: *** [Makefile:254: depend] Error 2
make[1]: Leaving directory '/root/vcpkg/buildtrees/openssl/x64-linux-dbg/1.1.1l-5a7d592597.clean'
make: *** [Makefile:177: build_libs] Error 2
ninja: build stopped: subcommand failed.

Additional context
CentOS Stream 9
perl.x86_64 4:5.32.1-479.el9
build failed

CentOS Stream 8
perl.x86_64 4:5.26.3-421.el8
build succeeded

@JackBoosY
Copy link
Contributor

Can't locate File/Compare.pm in @INC (you may need to install the File::Compare module) (@INC contains: . /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./util/add-depends.pl line 16.
BEGIN failed--compilation aborted at ./util/add-depends.pl line 16.

It looks like openssl used the perl which you installed manually, and it missing some components.
So you have 2 choice:

  1. Remove perl from the system.
  2. Install the File::Compare module.

Thanks.

@JackBoosY JackBoosY self-assigned this Dec 24, 2021
@JackBoosY JackBoosY added the category:question This issue is a question label Dec 24, 2021
@NaturalJ0
Copy link
Author

Install the File::Compare module.
It works.
Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants