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] openssl:x64-linux build failed #38729

Open
SivanChan opened this issue May 15, 2024 · 5 comments
Open

[openssl] openssl:x64-linux build failed #38729

SivanChan opened this issue May 15, 2024 · 5 comments
Assignees
Labels
category:question This issue is a question

Comments

@SivanChan
Copy link

Package: openssl:x64-linux@3.3.0#1

Host Environment

  • Host: x64-linux
  • Compiler: GNU 9.3.0
  • vcpkg-tool version: 2024-04-23-d6945642ee5c3076addd1a42c331bbf4cfc97457
    vcpkg-scripts version: bd2b548 2024-05-14 (4 小时前)

To Reproduce

vcpkg install openssl:x64-linux

Failure logs

-- Using cached openssl-openssl-openssl-3.3.0.tar.gz.
-- Cleaning sources at /home/cym/workspace/code/vcpkg/buildtrees/openssl/src/nssl-3.3.0-961d78b8a1.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/cym/workspace/code/vcpkg/downloads/openssl-openssl-openssl-3.3.0.tar.gz
-- Applying patch cmake-config.patch
-- Applying patch command-line-length.patch
-- Applying patch script-prefix.patch
-- Applying patch windows/install-layout.patch
-- Applying patch windows/install-pdbs.patch
-- Applying patch unix/android-cc.patch
-- Applying patch unix/move-openssldir.patch
-- Applying patch unix/no-empty-dirs.patch
-- Applying patch unix/no-static-libs-for-shared.patch
-- Using source at /home/cym/workspace/code/vcpkg/buildtrees/openssl/src/nssl-3.3.0-961d78b8a1.clean
openssl requires Linux kernel headers from the system package manager.
   They can be installed on Alpine systems via `apk add linux-headers`.
   They can be installed on Ubuntu systems via `apt install linux-libc-dev`.

-- Getting CMake variables for x64-linux
-- Getting CMake variables for x64-linux-dbg
-- Getting CMake variables for x64-linux-rel
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /usr/bin/make V=1 -j 9 -f Makefile build_sw
    Working Directory: /home/cym/workspace/code/vcpkg/buildtrees/openssl/x64-linux-dbg/
    See logs for more information:
      /home/cym/workspace/code/vcpkg/buildtrees/openssl/build-x64-linux-dbg-out.log
      /home/cym/workspace/code/vcpkg/buildtrees/openssl/build-x64-linux-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_make.cmake:136 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_make.cmake:2 (vcpkg_build_make)
  ports/openssl/unix/portfile.cmake:120 (vcpkg_install_make)
  ports/openssl/portfile.cmake:71 (include)
  scripts/ports.cmake:175 (include)



/home/cym/workspace/code/vcpkg/buildtrees/openssl/build-x64-linux-dbg-err.log
Can't execute perl script "../src/nssl-3.3.0-961d78b8a1.clean/util/dofile.pl": Permission denied
make: *** [Makefile:4400:include/openssl/asn1t.h] 错误 25
make: *** 正在等待未完成的任务....
Can't execute perl script "../src/nssl-3.3.0-961d78b8a1.clean/util/dofile.pl": Permission denied
make: *** [Makefile:4398:include/openssl/asn1.h] 错误 25
Can't execute perl script "../src/nssl-3.3.0-961d78b8a1.clean/util/dofile.pl": Permission denied
make: *** [Makefile:4402:include/openssl/bio.h] 错误 25
Can't execute perl script "../src/nssl-3.3.0-961d78b8a1.clean/util/mkinstallvars.pl": Permission denied
make: *** [Makefile:4376:builddata.pm] 错误 25
Can't execute perl script "../src/nssl-3.3.0-961d78b8a1.clean/util/mkinstallvars.pl": Permission denied
make: *** [Makefile:4384:installdata.pm] 错误 25
Can't execute perl script "../src/nssl-3.3.0-961d78b8a1.clean/util/dofile.pl": Permission denied
make: *** [Makefile:4394:include/crypto/dso_conf.h] 错误 25
Can't execute perl script "../src/nssl-3.3.0-961d78b8a1.clean/util/dofile.pl": Permission denied
make: *** [Makefile:4392:include/crypto/bn_conf.h] 错误 25
Can't execute perl script "../src/nssl-3.3.0-961d78b8a1.clean/util/dofile.pl": Permission denied
make: *** [Makefile:4378:crypto/params_idx.c] 错误 25
/home/cym/workspace/code/vcpkg/buildtrees/openssl/build-x64-linux-dbg-out.log
/usr/bin/perl ../src/nssl-3.3.0-961d78b8a1.clean/util/mkinstallvars.pl PREFIX=. BINDIR=apps LIBDIR= INCLUDEDIR=include APPLINKDIR=ms ENGINESDIR=engines MODULESDIR=providers "VERSION=3.3.0" "LDLIBS=-ldl -pthread " > builddata.pm
/usr/bin/perl "-I." "-I../src/nssl-3.3.0-961d78b8a1.clean/util/perl" "-Mconfigdata" "-MOpenSSL::paramnames" "../src/nssl-3.3.0-961d78b8a1.clean/util/dofile.pl" "-oMakefile" ../src/nssl-3.3.0-961d78b8a1.clean/crypto/params_idx.c.in > crypto/params_idx.c
/usr/bin/perl ../src/nssl-3.3.0-961d78b8a1.clean/util/mkinstallvars.pl "PREFIX=/home/cym/workspace/code/vcpkg/installed/x64-linux/debug" BINDIR=bin "LIBDIR=lib" INCLUDEDIR=include APPLINKDIR=include/openssl "ENGINESDIR=/home/cym/workspace/code/vcpkg/installed/x64-linux/debug/lib/engines-3" "MODULESDIR=/home/cym/workspace/code/vcpkg/installed/x64-linux/debug/lib/ossl-modules" "PKGCONFIGDIR=/home/cym/workspace/code/vcpkg/installed/x64-linux/debug/lib/pkgconfig" "CMAKECONFIGDIR=/home/cym/workspace/code/vcpkg/installed/x64-linux/debug/share/openssl" "LDLIBS=-ldl -pthread " "VERSION=3.3.0" > installdata.pm
/usr/bin/perl "-I." "-Mconfigdata" "../src/nssl-3.3.0-961d78b8a1.clean/util/dofile.pl" "-oMakefile" ../src/nssl-3.3.0-961d78b8a1.clean/include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
/usr/bin/perl "-I." "-Mconfigdata" "../src/nssl-3.3.0-961d78b8a1.clean/util/dofile.pl" "-oMakefile" ../src/nssl-3.3.0-961d78b8a1.clean/include/crypto/dso_conf.h.in > include/crypto/dso_conf.h
/usr/bin/perl "-I." "-I../src/nssl-3.3.0-961d78b8a1.clean/util/perl" "-Mconfigdata" "-MOpenSSL::paramnames" "../src/nssl-3.3.0-961d78b8a1.clean/util/dofile.pl" "-oMakefile" ../src/nssl-3.3.0-961d78b8a1.clean/include/internal/param_names.h.in > include/internal/param_names.h
/usr/bin/perl "-I." "-Mconfigdata" "../src/nssl-3.3.0-961d78b8a1.clean/util/dofile.pl" "-oMakefile" ../src/nssl-3.3.0-961d78b8a1.clean/include/openssl/asn1.h.in > include/openssl/asn1.h
/usr/bin/perl "-I." "-Mconfigdata" "../src/nssl-3.3.0-961d78b8a1.clean/util/dofile.pl" "-oMakefile" ../src/nssl-3.3.0-961d78b8a1.clean/include/openssl/asn1t.h.in > include/openssl/asn1t.h
/usr/bin/perl "-I." "-Mconfigdata" "../src/nssl-3.3.0-961d78b8a1.clean/util/dofile.pl" "-oMakefile" ../src/nssl-3.3.0-961d78b8a1.clean/include/openssl/bio.h.in > include/openssl/bio.h
@Wrl233
Copy link

Wrl233 commented May 15, 2024

I also encountered the same problem,but my operating system is Winodws11.

@FrankXie05
Copy link
Contributor

Can't execute perl script "../src/nssl-3.3.0-961d78b8a1.clean/util/mkinstallvars.pl": Permission denied

@Wrl233 Thanks for posting this issue, you can try to run the command with administrator rights.

@FrankXie05 FrankXie05 added the category:question This issue is a question label May 15, 2024
@Ndaruga
Copy link

Ndaruga commented May 15, 2024

On Mac Os, I did solve this by installing pkg-config using homebrew

brew install pkg-config

then I rerun the install command using admin privileges.

@IronsDu
Copy link
Contributor

IronsDu commented May 16, 2024

I can't install openssl under WSL too, the build-x64-linux-dbg-err.log is:

ln: ./apps: cannot overwrite directory
make[1]: *** [Makefile:4197: apps/openssl.cnf] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:2297: build_sw] Error 2

@dg0yt
Copy link
Contributor

dg0yt commented May 16, 2024

Three other issues thrown on one original issue. Not helpful.

@SivanChan SivanChan reopened this May 21, 2024
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

6 participants