Closed Dykson closed 8 months ago
there was no such error on the linux host
On the linux host, Configure
is smart enough to choose target linux-x32
. For the windows host, we probably must choose this explicitly.
Please test https://github.com/microsoft/vcpkg/pull/37076 on Windows.
On the linux host,
Configure
is smart enough to choose targetlinux-x32
. For the windows host, we probably must choose this explicitly. Please test #37076 on Windows.
The configuration is successful, but now there is an error at the build stage
I've had issues building OpenSSL for wasm32-emscripten
on macOS too. The configure script defaults to darwin-arm64
, adding -arch arm64
to the cflags, which emcc doesn't understand. Manually patching the generated makefile (as per https://github.com/openssl/openssl/issues/5443#issuecomment-458029264) fixes the build, but obviously this isn't optimal. Will have to test whether #37076 fixes this.
I don't think we can easily fix this windows (host) problem. OpenSSL uses its own build system. If you are willing to share the command line, we might look at mitigations, such as using shorter path for some directories,
The command line is too long. make[1]: *** [Makefile:12323: providers/libdefault.a] Error 1
In my mingw builds on windows, some libdefault.a
archiver command lines are longer than 8192 characters ... but the build doesn't fail. The Makefile uses msys perl and make as provided by vcpkg, and this perl reports the OS in $^O
as msys
.
I pushed a patch to limit command line length on msys
, but I cannot test it.
While this is flagged "community triplet", it might also affect the official android triplets if built on windows host. But I can only test with mingw host triplets, and this environment doesn't show this problem. Related: https://github.com/openssl/openssl/issues/19857
Reminder: The tentative command line length fix for Windows needs a tester.
Package: openssl:wasm32-emscripten@3.2.1
Host Environment
To Reproduce
vcpkg install
Failure logsC:\vcpkg\buildtrees\openssl\config-wasm32-emscripten-dbg-out.log
``` Configuring OpenSSL version 3.2.1 for target MSYS_NT Using os-specific seed configuration ```C:\vcpkg\buildtrees\openssl\config-wasm32-emscripten-dbg-err.log
``` + C:/vcpkg/downloads/tools/msys2/9496971bed5faa54/usr/bin/perl.exe C:/vcpkg/buildtrees/openssl/src/nssl-3.2.1-8707343470.clean/Configure enable-static-engine enable-capieng no-tests no-docs no-shared no-module no-apps threads no-engine no-asm no-sse2 no-srtp --cross-compile-prefix= --openssldir=/etc/ssl --libdir=lib --debug --prefix=/D/Repository/sklwatermark/build-watermark-WebAssembly_Qt_6_7_0_multi_threaded-Debug/vcpkg_installed/wasm32-emscripten/debug Usage: Configure [no-Additional context
vcpkg.json
``` { "dependencies": [ "openssl", "libxml2", "tiff" ] } ```