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

[<port name>] build failure openssl:x64-windows #43006

Open
VoladorZou opened this issue Dec 30, 2024 · 15 comments
Open

[<port name>] build failure openssl:x64-windows #43006

VoladorZou opened this issue Dec 30, 2024 · 15 comments
Assignees
Labels
category:question This issue is a question

Comments

@VoladorZou
Copy link

Operating system

win10

Compiler

MSVC

Steps to reproduce the behavior

vcpkg install mailio
vcpkg install openssl

Failure logs

Image

Additional context

No response

@VoladorZou VoladorZou added the category:port-bug The issue is with a library, which is something the port should already support label Dec 30, 2024
@VoladorZou
Copy link
Author

Failure! build file wasn't produced.
Please read INSTALL.md and associated NOTES-* files. You may also have to
look over your available compiler tool chain or change your configuration.

NASM not found - make sure it's installed and available on %PATH%

@JonLiu1993 JonLiu1993 added requires:more-information This Issue requires more information to solve and removed category:port-bug The issue is with a library, which is something the port should already support labels Dec 30, 2024
@VoladorZou
Copy link
Author

Image

@JonLiu1993
Copy link
Member

Please provide error log.

@VoladorZou
Copy link
Author

Please provide error log.

Image

@VoladorZou
Copy link
Author

Please provide error log.

Image

不过我已经手动安装NASM,并且添加到环境变量Path
Image

@JonLiu1993
Copy link
Member

Add NASM to PATH:

  1. Open the Start menu, type "Environment Variables," and press Enter.
  2. In the System Properties window, click on "Environment Variables."
  3. In the Environment Variables window, find the "Path" variable in the "System variables" section and click "Edit."
  4. Click "New" and add the path to the NASM executable, e.g., C:\Program Files\NASM.
  5. Click "OK" to close all windows.

@JonLiu1993 JonLiu1993 added category:question This issue is a question and removed requires:more-information This Issue requires more information to solve labels Dec 30, 2024
@VoladorZou
Copy link
Author

Add NASM to PATH:

  1. Open the Start menu, type "Environment Variables," and press Enter.
  2. In the System Properties window, click on "Environment Variables."
  3. In the Environment Variables window, find the "Path" variable in the "System variables" section and click "Edit."
  4. Click "New" and add the path to the NASM executable, e.g., C:\Program Files\NASM.
  5. Click "OK" to close all windows.

Image
是有添加的,但似乎系统找不到我安装那个,只有strawberry的

@JonLiu1993
Copy link
Member

C:\Program Files\NASM This path is just an example, please add your installation of NASM to PATH and try again.

@dg0yt
Copy link
Contributor

dg0yt commented Dec 30, 2024

It is the port's responsibility to deal with nasm. And the port does acquire nasm and append its directory to the path:

vcpkg_find_acquire_program(NASM)
cmake_path(NATIVE_PATH NASM NORMALIZE as)
cmake_path(GET NASM PARENT_PATH nasm_path)
vcpkg_add_to_path("${nasm_path}") # Needed by Configure

Maybe something else is preventing nasm from being accepted?

@VoladorZou
Copy link
Author

C:\Program Files\NASM This path is just an example, please add your installation of NASM to PATH and try again.

我有安装的,就这个路径。下载安装包安装了的,就在C:\Program Files\NASM

@VoladorZou
Copy link
Author

It is the port's resonsibility to deal with nasm. And the port does acquire nasm and append its directory to the path:

vcpkg/ports/openssl/windows/portfile.cmake

Lines 65 to 68 in 80d54ff

vcpkg_find_acquire_program(NASM)
cmake_path(NATIVE_PATH NASM NORMALIZE as)
cmake_path(GET NASM PARENT_PATH nasm_path)
vcpkg_add_to_path("${nasm_path}") # Needed by Configure
Maybe something else is preventing nasm from being accepted?

It is possible.

@VoladorZou
Copy link
Author

Image
vcpkg也有自动下载nasm,但似乎没有执行安装

@VoladorZou
Copy link
Author

Image
写到环境变量也不行,error log 还是提示NASM not found - make sure it's installed and available on %PATH%

@JonLiu1993
Copy link
Member

@VoladorZou, Are you using the latest vcpkg version? Or you can try to remove your own installation of NASM and try again.

@VoladorZou
Copy link
Author

@VoladorZou, Are you using the latest vcpkg version? Or you can try to remove your own installation of NASM and try again.

vcpkg-2024.12.16

Image
NASM有下载,但没有安装成功,vcpkg的最新的

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

3 participants