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

Failed to build on windows #2376

Open
R-Goc opened this issue Feb 25, 2025 · 1 comment
Open

Failed to build on windows #2376

R-Goc opened this issue Feb 25, 2025 · 1 comment

Comments

@R-Goc
Copy link

R-Goc commented Feb 25, 2025

The build fails with:

  Can't Open ossl_static.pdb at .\util\copy.pl line 68.
  NMAKE : fatal error U1077: 'if ""==""  "C:\Strawberry\perl\bin\perl.exe" ".\util\copy.pl" ossl_static.pdb "C:\Users\rysza\AppData\Local\Temp\cargo-installndczl7\release\build\openssl-sys-ecc262cd39322ad1\out\openssl-build\install\lib"' : return code '0x2'
  Stop.



  Error installing OpenSSL:
      'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.34823\bin\HostX64\x64\nmake.exe' reported failure with exit code: 2
      Command failed: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.44.34823\\bin\\HostX64\\x64\\nmake.exe" "install_dev"

There is no .pdb file in that directory.

@R-Goc
Copy link
Author

R-Goc commented Feb 25, 2025

Looking at the openssl generated makefile:

LIB_ASFLAGS=$(CNF_ASFLAGS) $(ASFLAGS)
LIB_CPPFLAGS=-D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Users\\rysza\\AppData\\Local\\Temp\\cargo-installnS1K4O\\release\\build\\openssl-sys-ecc262cd39322ad1\\out\\openssl-build\\install\\SYS\$MANAGER:[OPENSSL]\"" -D"ENGINESDIR=\"C:\\Users\\rysza\\AppData\\Local\\Temp\\cargo-installnS1K4O\\release\\build\\openssl-sys-ecc262cd39322ad1\\out\\openssl-build\\install\\lib\\engines-3\"" -D"MODULESDIR=\"C:\\Users\\rysza\\AppData\\Local\\Temp\\cargo-installnS1K4O\\release\\build\\openssl-sys-ecc262cd39322ad1\\out\\openssl-build\\install\\lib\\ossl-modules\"" $(CNF_CPPFLAGS) $(CPPFLAGS)
LIB_CFLAGS=/Zi /Fdossl_static.pdb /MT /Zl $(CNF_CFLAGS) $(CFLAGS)
LIB_LDFLAGS=/dll $(CNF_LDFLAGS) $(LDFLAGS)
LIB_EX_LIBS=$(CNF_EX_LIBS) $(EX_LIBS)
DSO_ASFLAGS=$(CNF_ASFLAGS) $(ASFLAGS)
DSO_CPPFLAGS=$(CNF_CPPFLAGS) $(CPPFLAGS)
DSO_CFLAGS=/Zi /Fddso.pdb $(CNF_CFLAGS) $(CFLAGS)
DSO_LDFLAGS=/dll $(CNF_LDFLAGS) $(LDFLAGS)
DSO_EX_LIBS=$(CNF_EX_LIBS) $(EX_LIBS)
BIN_ASFLAGS=$(CNF_ASFLAGS) $(ASFLAGS)
BIN_CPPFLAGS=$(CNF_CPPFLAGS) $(CPPFLAGS)
BIN_CFLAGS=/Zi /Fdapp.pdb /MT $(CNF_CFLAGS) $(CFLAGS)
BIN_LDFLAGS=setargv.obj /subsystem:console /opt:ref $(CNF_LDFLAGS) $(LDFLAGS)
BIN_EX_LIBS=$(CNF_EX_LIBS) $(EX_LIBS)

does include /Zi so I am not sure as to why the .pdb isn't there.

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

1 participant