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

Can't compile Windows - openssl/1.1.1.s #4866

Open
pierricgimmig opened this issue Apr 2, 2024 · 3 comments
Open

Can't compile Windows - openssl/1.1.1.s #4866

pierricgimmig opened this issue Apr 2, 2024 · 3 comments

Comments

@pierricgimmig
Copy link
Collaborator

When trying to compile Windows, I get

Can't Open apps//openssl.pdb at .\util\copy.pl line 68.
NMAKE : fatal error U1077: '"C:/Users/pierr/.conan/data/strawberryperl/5.32.1.1/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/perl.exe" ".\util\copy.pl" "apps\\openssl.pdb"  "C:\Users\pierr\.conan\data\openssl\1.1.1s\_\_\package\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b/\bin"' : return code '0x2'
Stop.
ERROR: openssl/1.1.1s: Error in package() method, line 784
        self.run(f'nmake -f Makefile {target} {" ".join(args)}')
        ConanException: Error 2 while executing nmake -f Makefile install_sw DESTDIR=C:\Users\pierr\.conan\data\openssl\1.1.1s\_\_\package\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b
Error while running conan install.
At C:\Users\pierr\git\orbit\build.ps1:79 char:5
+     Throw "Error while running conan install."
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Error while running conan install.:String) [], RuntimeException
    + FullyQualifiedErrorId : Error while running conan install.

It seems .\util\copy.pl is trying to copy apps\\openssl.pdb but the pdb file does not exist. I've run into this in the past, this was somehow fixed at some point, but we are hitting the issue again. Perhaps because of not having conan lockfiles anymore, which is a big blow to build reproducibility.

I'm building with ./bootstrap-orbit.ps1 msvc2019_relwithdebinfo. I've tried building for msvc2022, but I get into other issues.

I'm using conan 1.63, which is the latest 1.X version right now.

@pierricgimmig
Copy link
Collaborator Author

Original issue: #4663

@pierricgimmig
Copy link
Collaborator Author

In .conan\data\openssl\1.1.1s\_\_\source\src\Configurations\windows-makefile.tmpl, manually removing

	@"$(PERL)" "$(SRCDIR)\util\copy.pl" $(INSTALL_PROGRAMPDBS) \
                                        "$(INSTALLTOP)\bin"

fixes the issue, albeit not very cleanly.

@pierricgimmig
Copy link
Collaborator Author

pierricgimmig commented Apr 4, 2024

Finally able to compile Orbit on Windows, took about 2 days. Setup that works:

  • msvc2019_relwithdebinfo
  • Windows 11
  • Conan version 1.63.0
  • No space in .conan path (!!)
  • cmake version 3.29.0
  • Python 3.11.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant