Repository navigation
Conversation
|
Quick notes:
Running the built results would be even better if feasible. If somebody reading this knows how to do it, I'd be glad to learn about it. |
|
Carthage says this on the first try: I guess building and caching locally will be simpler after all. |
169bf38 to
9fe1b0e
Compare
|
Back to iOS for a moment, somehow Carthage started to work, and installed an Then this silly warning happens, that never happened before and seems bogus. (This fork changes the casing of the edit: No, CMake also fails to detect a vanilla, hand-built and LibreSSL when set via It may also break the build on case-sensitive filesystems (which is Am I missing something? Is this a known issue with https://github.com/krzyzanowskim/OpenSSL ? |
5c6e051 to
3f5582e
Compare
android vcpkg try 1
macos reduce
macos
typo 1
CURL_PKGCONFIG_OFF to avoid picking up system paths
ios tweaks 1
disable CURL_USE_PKGCONFIG for Android + vcpkg
non-native.yml cleanup
non-native.yml debug 1
ios tweaks 2
ios tweaks 3
try fixing xcode generator error
```
CMake Error in src/CMakeLists.txt:
-- Generating done (0.2s)
The custom command generating
/Users/runner/work/curl/curl/bld/src/tool_hugehelp.c
is attached to multiple targets:
curl
curltool
but none of these is a common dependency of the other(s). This is not
allowed by the Xcode "new build system".
CMake Generate step failed. Build files cannot be regenerated correctly.
Error: Process completed with exit code 1.
```
https://github.com/curl/curl/actions/runs/12840127495/job/35808354148?pr=16043#step:5:1797
debug 2
ios tweaks 4 workaround
```
Change Dir: '/Users/runner/work/curl/curl/bld'
Run Build Command(s): /usr/bin/xcodebuild -project CURL.xcodeproj build -target ALL_BUILD -parallelizeTargets -configuration Debug -hideShellScriptEnvironment
Command line invocation:
/Applications/Xcode_15.4.app/Contents/Developer/usr/bin/xcodebuild -project CURL.xcodeproj build -target ALL_BUILD -parallelizeTargets -configuration Debug -hideShellScriptEnvironment
User defaults from command line:
HideShellScriptEnvironment = YES
IDEPackageSupportUseBuiltinSCM = YES
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (9 targets)
Target 'ALL_BUILD' in project 'CURL'
➜ Explicit dependency on target 'ZERO_CHECK' in project 'CURL'
➜ Explicit dependency on target 'curl-generate-curl-config.1' in project 'CURL'
➜ Explicit dependency on target 'curl-generate-mk-ca-bundle.1' in project 'CURL'
➜ Explicit dependency on target 'curl-man' in project 'CURL'
➜ Explicit dependency on target 'generate-curl.1' in project 'CURL'
➜ Explicit dependency on target 'libcurl_shared' in project 'CURL'
➜ Explicit dependency on target 'curl' in project 'CURL'
Target 'curl' in project 'CURL'
➜ Explicit dependency on target 'ZERO_CHECK' in project 'CURL'
➜ Explicit dependency on target 'generate-curl.1' in project 'CURL'
➜ Explicit dependency on target 'libcurl_shared' in project 'CURL'
Target 'libcurl_shared' in project 'CURL'
➜ Explicit dependency on target 'ZERO_CHECK' in project 'CURL'
Target 'generate-curl.1' in project 'CURL'
➜ Explicit dependency on target 'ZERO_CHECK' in project 'CURL'
Target 'curl-man' in project 'CURL'
➜ Explicit dependency on target 'ZERO_CHECK' in project 'CURL'
➜ Explicit dependency on target 'curl-opts-man' in project 'CURL'
Target 'curl-opts-man' in project 'CURL'
➜ Explicit dependency on target 'ZERO_CHECK' in project 'CURL'
Target 'curl-generate-mk-ca-bundle.1' in project 'CURL'
➜ Explicit dependency on target 'ZERO_CHECK' in project 'CURL'
Target 'curl-generate-curl-config.1' in project 'CURL'
➜ Explicit dependency on target 'ZERO_CHECK' in project 'CURL'
Target 'ZERO_CHECK' in project 'CURL' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ExecuteExternalTool /Applications/Xcode_15.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details
Build description signature: 5b2df9588ab739079935392fadfa302f
Build description path: /Users/runner/work/curl/curl/bld/build/XCBuildData/5b2df9588ab739079935392fadfa302f.xcbuilddata
note: Run script build phase 'Generate CMakeFiles/ALL_BUILD' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ALL_BUILD' from project 'CURL')
note: Run script build phase 'Generate docs/libcurl/opts/CMakeFiles/curl-opts-man' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'curl-opts-man' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Signing for "libcurl_shared" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'libcurl_shared' from project 'CURL')
note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'libcurl_shared' from project 'CURL')
note: Run script build phase 'Generate docs/cmdline-opts/CMakeFiles/generate-curl.1' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'generate-curl.1' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. curl doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'curl' from project 'CURL')
note: Run script build phase 'Generate docs/CMakeFiles/curl-generate-mk-ca-bundle.1' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'curl-generate-mk-ca-bundle.1' from project 'CURL')
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'CURL')
note: Run script build phase 'Generate docs/libcurl/CMakeFiles/curl-man' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'curl-man' from project 'CURL')
note: Run script build phase 'Generate docs/CMakeFiles/curl-generate-curl-config.1' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'curl-generate-curl-config.1' from project 'CURL')
** BUILD FAILED **
Error: Process completed with exit code 65.
```
https://github.com/curl/curl/actions/runs/12840206710/job/35808551454?pr=16043#step:8:14
non-native.yml try boringssl instead of libpsl
Revert "non-native.yml debug 1"
This reverts commit 1ad9d79.
ios try fixing the next issue, picking up homebrew components
```
ld: building for 'iOS', but linking in dylib (/opt/homebrew/Cellar/brotli/1.1.0/lib/libbrotlidec.1.1.0.dylib) built for 'macOS'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Run script build phase 'Generate CMakeFiles/ALL_BUILD' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ALL_BUILD' from project 'CURL')
note: Run script build phase 'Generate docs/CMakeFiles/curl-generate-mk-ca-bundle.1' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'curl-generate-mk-ca-bundle.1' from project 'CURL')
note: Run script build phase 'Generate docs/libcurl/opts/CMakeFiles/curl-opts-man' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'curl-opts-man' from project 'CURL')
note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'libcurl_shared' from project 'CURL')
** BUILD FAILED **
note: Run script build phase 'Generate docs/libcurl/CMakeFiles/curl-man' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'curl-man' from project 'CURL')
The following build commands failed:
Ld /Users/runner/work/curl/curl/bld/lib/Debug-iphoneos/libcurl-d.4.8.0.dylib normal (in target 'libcurl_shared' from project 'CURL')
(1 failure)
```
https://github.com/curl/curl/actions/runs/12840309446/job/35808794885?pr=16043#step:8:200
non-native.yml install nasm
```
Building boringssl:arm64-android@2024-09-13...
CMake Error at scripts/cmake/vcpkg_find_acquire_program.cmake:166 (message):
Could not find nasm. Please install it via your package manager:
sudo apt-get install nasm
Call Stack (most recent call first):
ports/boringssl/portfile.cmake:9 (vcpkg_find_acquire_program)
scripts/ports.cmake:196 (include)
error: building boringssl:arm64-android failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle boringssl:arm64-android: 16.7 ms
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+boringssl
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[boringssl]+Build+error+on+arm64-android&body=Copy+issue+body+from+%2Fusr%2Flocal%2Fshare%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
You can also submit an issue by running (GitHub CLI must be installed):
gh issue create -R microsoft/vcpkg --title "[boringssl] Build failure on arm64-android" --body-file /usr/local/share/vcpkg/installed/vcpkg/issue_body.md
Error: Process completed with exit code 1.
```
https://github.com/curl/curl/actions/runs/12840358923/job/35808911959?pr=16043#step:4:34
ios try fixing the next issue 2, picking up homebrew components (pkgconfig)
non-native.yml install nasm fixup
ios curl info
blind try PRODUCT_BUNDLE_IDENTIFIER
```
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. resolve doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'resolve' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. units doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'units' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. libtests doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'libtests' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. disabled doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'disabled' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. mqttd doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'mqttd' from project 'CURL')
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. curlt-client-upload-pausing doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'curlt-client-upload-pausing' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. curlt-client-ws-data doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'curlt-client-ws-data' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. sockfilt doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'sockfilt' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Signing for "libcurl_shared" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'libcurl_shared' from project 'CURL')
note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'libcurl_shared' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. curlt-client-hx-download doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'curlt-client-hx-download' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. curlt-client-h2-serverpush doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'curlt-client-h2-serverpush' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. curlt-client-tls-session-reuse doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'curlt-client-tls-session-reuse' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. curlt-client-hx-upload doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'curlt-client-hx-upload' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. getpart doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'getpart' from project 'CURL')
/Users/runner/work/curl/curl/bld/CURL.xcodeproj: error: Bundle identifier is missing. curlt-client-h2-upgrade-extreme doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'curlt-client-h2-upgrade-extreme' from project 'CURL')
** BUILD FAILED **
Error: Process completed with exit code 65.
```
https://github.com/curl/curl/actions/runs/12840438623/job/35809082397?pr=16043#step:10:122
ios add ninja job
non-native.yml try libressl
```
[ 66%] Linking C shared library libcurl.so
ld.lld: error: undefined symbol: operator delete(void*)
>>> referenced by ssl_key_share.cc:43 (/usr/local/share/vcpkg/buildtrees/boringssl/src/20240913.0-da7dc8326c.clean/ssl/ssl_key_share.cc:43)
>>> ssl_key_share.cc.o:(bssl::(anonymous namespace)::ECKeyShare::~ECKeyShare()) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
>>> referenced by ssl_key_share.cc:140 (/usr/local/share/vcpkg/buildtrees/boringssl/src/20240913.0-da7dc8326c.clean/ssl/ssl_key_share.cc:140)
>>> ssl_key_share.cc.o:(bssl::(anonymous namespace)::X25519KeyShare::~X25519KeyShare()) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
>>> referenced by ssl_key_share.cc:197 (/usr/local/share/vcpkg/buildtrees/boringssl/src/20240913.0-da7dc8326c.clean/ssl/ssl_key_share.cc:197)
>>> ssl_key_share.cc.o:(bssl::(anonymous namespace)::X25519Kyber768KeyShare::~X25519Kyber768KeyShare()) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
>>> referenced 6 more times
ld.lld: error: undefined symbol: vtable for __cxxabiv1::__class_type_info
>>> referenced by ssl_key_share.cc
>>> ssl_key_share.cc.o:(typeinfo for bssl::SSLKeyShare) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
>>> referenced by ssl_aead_ctx.cc
>>> ssl_aead_ctx.cc.o:(typeinfo for bssl::RecordNumberEncrypter) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
>>> referenced by s3_both.cc
>>> s3_both.cc.o:(typeinfo for bssl::(anonymous namespace)::CipherScorer) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
>>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction)
ld.lld: error: undefined symbol: vtable for __cxxabiv1::__si_class_type_info
>>> referenced by ssl_key_share.cc
>>> ssl_key_share.cc.o:(typeinfo for bssl::(anonymous namespace)::ECKeyShare) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
>>> referenced by ssl_key_share.cc
>>> ssl_key_share.cc.o:(typeinfo for bssl::(anonymous namespace)::X25519KeyShare) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
>>> referenced by ssl_key_share.cc
>>> ssl_key_share.cc.o:(typeinfo for bssl::(anonymous namespace)::X25519Kyber768KeyShare) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
>>> referenced 7 more times
>>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction)
ld.lld: error: undefined symbol: __cxa_pure_virtual
>>> referenced by ssl_key_share.cc
>>> ssl_key_share.cc.o:(vtable for bssl::SSLKeyShare) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
>>> referenced by ssl_key_share.cc
>>> ssl_key_share.cc.o:(vtable for bssl::SSLKeyShare) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
>>> referenced by ssl_key_share.cc
>>> ssl_key_share.cc.o:(vtable for bssl::SSLKeyShare) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
>>> referenced 6 more times
ld.lld: error: undefined symbol: __cxa_begin_catch
>>> referenced by ssl_asn1.cc
>>> ssl_asn1.cc.o:(__clang_call_terminate) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
ld.lld: error: undefined symbol: std::terminate()
>>> referenced by ssl_asn1.cc
>>> ssl_asn1.cc.o:(__clang_call_terminate) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
ld.lld: error: undefined symbol: __gxx_personality_v0
>>> referenced by ssl_asn1.cc
>>> ssl_asn1.cc.o:(DW.ref.__gxx_personality_v0) in archive /usr/local/share/vcpkg/installed/arm64-android/debug/lib/libssl.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [lib/CMakeFiles/libcurl_shared.dir/build.make:104: lib/libcurl.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:765: lib/CMakeFiles/libcurl_shared.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2
Error: Process completed with exit code 2.
```
https://github.com/curl/curl/actions/runs/12840438626/job/35809082486?pr=16043#step:10:26
ios add ninja job fixup
CMakeLists.txt revert accidental
try making try_compile() faster with xcode generator
https://gitlab.kitware.com/cmake/cmake/-/issues/16966
xcode hack breaks ninja builds
```
[ 8%] Building C object tests/unit/CMakeFiles/units.dir/Unity/unity_0_c.c.o
[ 13%] Linking C executable units
ld.lld: error: undefined symbol: showhelp
>>> referenced by tool_help.c:289 (/home/runner/work/curl/curl/src/tool_help.c:289)
>>> unity_0_c.c.o:(tool_help) in archive ../../src/libcurltool.a
>>> referenced by tool_help.c:291 (/home/runner/work/curl/curl/src/tool_help.c:291)
>>> unity_0_c.c.o:(tool_help) in archive ../../src/libcurltool.a
ld.lld: error: undefined symbol: hugehelp
>>> referenced by tool_operate.c:3188 (/home/runner/work/curl/curl/src/tool_operate.c:3188)
>>> unity_0_c.c.o:(operate) in archive ../../src/libcurltool.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
https://github.com/curl/curl/actions/runs/12840539870/job/35809291914?pr=16043#step:12:21
avoid xcode specific options for ninja fixup
macos.yml: carthage, skip build tests with xcode gen
macos.yml: carthage, skip build tests with xcode gen try 1
Update macos.yml
macos.yml try openssl
try merging curl#16045
Revert "disable CURL_USE_PKGCONFIG for Android + vcpkg"
This reverts commit 37afb03.
cleanup
macos.yml: tweak configure
non-native.yml fixup non-vcpkg builds
non-native.yml flatten if
non-native.yml try something 1
macos.yml autotools job
macos.yml fixup
non-native.yml show env
macos.yml try isysroot
non-native.yml fixup/cleanup
non-native.yml add autotools vcpkg job
non-native.yml test A
non-native.yml test A fixup
non-native.yml test B
macos.yml try isysroot fixup
non-native.yml try different --host
Revert "non-native.yml try different --host"
This reverts commit e3d1ec6.
non-native.yml test C
non-native.yml find again with links
non-native.yml test C fixup
non-native.yml find again with links fixup
non-native.yml test D
non-native.yml cleanup
non-native.yml test D fixup
non-native.yml: drop !ssl autotools builds
non-native.yml try PKG_CONFIG_SYSROOT_DIR
macos.yml include generator in job name
macos.yml try --target
macos.yml include generator in name fixup
macos.yml test A
non-native.yml verbose cmake
macos.yml include generator in name fixup
non-native.yml debug 1
non-native.yml debug 2
non-native.yml test 1
macos.yml test B
non-native.yml test 2
non-native.yml test 3
macos cmake simplify try 1
macos cmake add link
non-native.yml test 4
non-native.yml tweak name
add 16045
macos cmake simplify 2
macos.yml alltypes test
macos.yml dis carthage
macos.yml autotools fixup
non-native.yml tweak jobs
macos.yml try simplify 1
macos.yml try simplify 1 --sysroot
Revert "macos.yml try simplify 1 --sysroot"
This reverts commit 9d24938.
macos.yml try simplify 1 !--target
macos.yml try listing sdks
macos.yml carthage test
macos.yml cleanup
macos.yml cleanup
macos.yml test
macos.yml cleanup
macos.yml cleanup
macos.yml debug
macos.yml cleanup
macos.yml try openssl
macos.yml test
macos.yml test 2
macos.yml test 3
macos.yml test 4
macos.yml test 5
openssl: try silence warnings
```
../../lib/vtls/openssl.c:1478:12: error: variable 'pri' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if(!cert) {
^~~~~
../../lib/vtls/openssl.c:1609:21: note: uninitialized use occurs here
EVP_PKEY_free(pri);
^~~
../../lib/vtls/openssl.c:1478:9: note: remove the 'if' if its condition is always false
if(!cert) {
^~~~~~~~~~~
../../lib/vtls/openssl.c:1508:20: note: initialize the variable 'pri' to silence this warning
EVP_PKEY *pri;
^
= NULL
../../lib/vtls/openssl.c:1478:12: error: variable 'x509' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if(!cert) {
^~~~~
../../lib/vtls/openssl.c:1610:17: note: uninitialized use occurs here
X509_free(x509);
^~~~
../../lib/vtls/openssl.c:1478:9: note: remove the 'if' if its condition is always false
if(!cert) {
^~~~~~~~~~~
../../lib/vtls/openssl.c:1319:15: note: initialize the variable 'x509' to silence this warning
X509 *x509;
^
= NULL
../../lib/vtls/openssl.c:1478:12: error: variable 'ca' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if(!cert) {
^~~~~
../../lib/vtls/openssl.c:1611:24: note: uninitialized use occurs here
sk_X509_pop_free(ca, X509_free);
^~
/Users/runner/work/curl/curl/bld/../Carthage/Checkouts/OpenSSL/iphoneos/include/OpenSSL/x509.h:93:84: note: expanded from macro 'sk_X509_pop_free'
^~
../../lib/vtls/openssl.c:1478:9: note: remove the 'if' if its condition is always false
if(!cert) {
^~~~~~~~~~~
../../lib/vtls/openssl.c:1509:7: note: variable 'ca' is declared here
STACK_OF(X509) *ca = NULL;
^
/Users/runner/work/curl/curl/bld/../Carthage/Checkouts/OpenSSL/iphoneos/include/OpenSSL/safestack.h:31:25: note: expanded from macro 'STACK_OF'
^
3 errors generated.
```
https://github.com/curl/curl/actions/runs/12848460369/job/35825811633?pr=16043#step:10:31
macos.yml test 6
non-native.yml cleanup
openssl: try silence warnings random fixup
non-native.yml cleanup
non-native.yml fixup
non-native.yml fixup
non-native.yml dumpvars
non-native.yml fixups
try zstd
cleanup
non-native.yml try native with vcpkg
non-native.yml try native with vcpkg 2
version
non-native.yml fix ssl
non-native.yml fixup
cleanup
cleanups
non-native.yml try psl
install more deps
verbose
autotools: brotli detection issue, disable brotli vcpkg
brotlicommon is not detected or used. likely works only when the
offered brotli is a shared lib.
```
configure:23838: checking for BrotliDecoderDecompress in -lbrotlidec
configure:23861: /usr/local/lib/android/sdk/ndk/27.2.12479018/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android35-clang -o conftest -Qunused-arguments -Werror-implicit-function-declaration -O2 -pedantic -Wall -Wextra -Wpointer-arith -Wwrite-strings -Wshadow -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wfloat-equal -Wsign-compare -Wno-multichar -Wundef -Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -Wcast-align -Wno-system-headers -Wshorten-64-to-32 -Wunused -Waddress -Wattributes -Wbad-function-cast -Wconversion -Wdiv-by-zero -Wformat-security -Wempty-body -Wmissing-field-initializers -Wmissing-noreturn -Wold-style-definition -Wredundant-decls -Wtype-limits -Wunreachable-code -Wunused-parameter -Wignored-qualifiers -Wvla -Wsign-conversion -Wno-error=sign-conversion -Wshift-sign-overflow -Wlanguage-extension-token -Wformat=2 -Wenum-conversion -Wsometimes-uninitialized -Wmissing-variable-declarations -Wheader-guard -Wunused-const-variable -Wpragmas -Wdouble-promotion -Wcomma -Wassign-enum -Wextra-semi-stmt -Wimplicit-fallthrough -D_GNU_SOURCE -I/usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../include -L/usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib conftest.c -lbrotlidec -lz >&5
conftest.c:39:30: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
39 | char BrotliDecoderDecompress ();
| ^
| void
conftest.c:43:2: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
43 | ;
| ^
2 warnings generated.
ld.lld: error: undefined symbol: BrotliDefaultAllocFunc
>>> referenced by state.c:22 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/state.c:22)
>>> state.c.o:(BrotliDecoderStateInit) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
>>> referenced by state.c:22 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/state.c:22)
>>> state.c.o:(BrotliDecoderStateInit) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
ld.lld: error: undefined symbol: BrotliDefaultFreeFunc
>>> referenced by state.c:22 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/state.c:22)
>>> state.c.o:(BrotliDecoderStateInit) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
>>> referenced by state.c:22 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/state.c:22)
>>> state.c.o:(BrotliDecoderStateInit) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
ld.lld: error: undefined symbol: BrotliSharedDictionaryAttach
>>> referenced by decode.c:1561 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/decode.c:1561)
>>> decode.c.o:(BrotliDecoderAttachDictionary) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
ld.lld: error: undefined symbol: _kBrotliContextLookupTable
>>> referenced by decode.c:1200 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/decode.c:1200)
>>> decode.c.o:(BrotliDecoderDecompressStream) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
>>> referenced by decode.c:1200 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/decode.c:1200)
>>> decode.c.o:(BrotliDecoderDecompressStream) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
>>> referenced by decode.c:1200 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/decode.c:1200)
>>> decode.c.o:(SafeDecodeLiteralBlockSwitch) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
>>> referenced 3 more times
ld.lld: error: undefined symbol: _kBrotliPrefixCodeRanges
>>> referenced by decode.c:904 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/decode.c:904)
>>> decode.c.o:(BrotliDecoderDecompressStream) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
>>> referenced by decode.c:904 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/decode.c:904)
>>> decode.c.o:(BrotliDecoderDecompressStream) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
>>> referenced by decode.c:904 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/decode.c:904)
>>> decode.c.o:(SafeDecodeCommandBlockSwitch) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
>>> referenced 11 more times
ld.lld: error: undefined symbol: BrotliTransformDictionaryWord
>>> referenced by decode.c:2152 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/decode.c:2152)
>>> decode.c.o:(ProcessCommands) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
>>> referenced by decode.c:2152 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/decode.c:2152)
>>> decode.c.o:(SafeProcessCommands) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
ld.lld: error: undefined symbol: BrotliSharedDictionaryCreateInstance
>>> referenced by state.c:89 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/state.c:89)
>>> state.c.o:(BrotliDecoderStateInit) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
ld.lld: error: undefined symbol: BrotliSharedDictionaryDestroyInstance
>>> referenced by state.c:154 (/usr/local/share/vcpkg/buildtrees/brotli/src/v1.1.0-958bece74c.clean/c/dec/state.c:154)
>>> state.c.o:(BrotliDecoderStateCleanup) in archive /usr/local/share/vcpkg/installed/arm64-android/lib/pkgconfig/../../lib/libbrotlidec.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:23861: $? = 1
configure: failed program was:
```
https://github.com/curl/curl/actions/runs/12849964867/job/35829117222?pr=16043#step:8:1168
debug, fix link, add comments
debug, fix link, add comments
add boringssl
try fix
add boringssl fixup
try fix 2
try fix 3
try fix 4
try fix 5
try silencing obnoxious cmake warning
Meaningful output just cannot be seen, among the wall of warnings:
```
CMake Deprecation Warning at /usr/local/lib/android/sdk/ndk/27.2.12479018/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Call Stack (most recent call first):
/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake:209 (include)
/home/runner/work/curl/curl/bld/CMakeFiles/3.31.3/CMakeSystem.cmake:6 (include)
/home/runner/work/curl/curl/bld/CMakeFiles/CMakeScratch/TryCompile-nXTWT2/CMakeLists.txt:5 (project)
```
What is the point of repeating this a hundred times on each run?
It also isn't applying to curl's cmake script, but to Android's,
which we cannot easily change. (unless maybe by manually installing
a beta, if this has been fixed there.)
Highly annoying.
try fix 6
try fix 7
try fix 8
Revert "try fix 8"
This reverts commit e9e5f6b.
Revert "try fix 7"
This reverts commit a791e7c.
try fix 9
try boringssl fix 1
try boringssl fix 2
merge ios into non-native
cm: add stdc++ for BoringSSL
make it opt-in till we understand the drawbacks
cleanup
cleanups
cleanups
cleanups
fixup
fixup
fixups
fixup
fixup
just disable zstd 1
fixups
more readable, short job names
cleanup
cleanups
cleanups
cleanups
cleanups
cleanups
libressl-1
cleanups
libressl-2
typo
experiment -DCMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH=OFF
verbose
Revert "experiment -DCMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH=OFF"
This reverts commit efea0e6.
pipe to tar
cpu
pipe to tar fixup
libressl fixup
libressl fixup try 1
libressl fixup try 2
libressl fixup try 3
libressl fixup try 4
libressl fixup try 5
libressl fixup debug 1
libressl fixup try 6
libressl fixup try 7
libressl fixup try 8
libressl fixup try 9
libressl fixup try a
cleanups
libressl fixup debug 2
libressl fixup debug 3
libressl fixup debug 3a
libressl fixup debug 3b
cleanups
libressl fixup debug 4
libressl fixup debug 4a
enable cache
cleanups
cleanups
libressl fixup debug 4b
cleanups
libressl fixup debug 4c
libressl fixup debug 4d
libressl fixup debug 4e
libressl fixup debug 4f
libressl fixup debug 4f
libressl fixup debug 4g
libressl fixup debug 5
libressl fixup debug 5a
libressl fixup debug 6
libressl fixup debug 7
test-1
test-2
test-3
test-4
test-5
test-6
test-7
test-8
finalize-1
Foo: Bar
finalize-2
finalize-3
finalize-4
finalize-5
finalize-6
finalize-7
finalize-8
finalize-9
finalize-a
```
CMake Error in src/CMakeLists.txt:
-- Generating done (0.2s)
The custom command generating
/Users/runner/work/curl/curl/bld/src/tool_hugehelp.c
is attached to multiple targets:
curl
curltool
but none of these is a common dependency of the other(s). This is not
allowed by the Xcode "new build system".
CMake Generate step failed. Build files cannot be regenerated correctly.
Error: Process completed with exit code 1.
```
https://github.com/curl/curl/actions/runs/12840127495/job/35808354148?pr=16043#step:5:1797
This reverts commit 9e649db.
This reverts commit 701ef33. Needs more work, many targets fail, incuding the GNU Makefile counterpart of the Xcode generator build: ``` [100%] Linking C executable units.app/units cd /Users/runner/work/curl/curl/bld/tests/unit && /opt/homebrew/bin/cmake -E cmake_link_script CMakeFiles/units.dir/link.txt --verbose=1 Undefined symbols for architecture arm64: "_hugehelp", referenced from: _operate in libcurltool.a[2](unity_0_c.c.o) "_showhelp", referenced from: _tool_help in libcurltool.a[2](unity_0_c.c.o) _tool_help in libcurltool.a[2](unity_0_c.c.o) ld: symbol(s) not found for architecture arm64 ``` https://github.com/curl/curl/actions/runs/12874833803/job/35895032436
To make curltool not rely on generated sources: `tool_hugehelp.c` and `tool_ca_embed.c` Xcode generator doesn't support having two targets depending on the same custom commands. Follow-up to 12a6de2 curl#16043
CMake builds using the Xcode generator broke with an error saying it doesn't support multiple targets depending on the same custom commands. These custom commands are generating `tool_hugehelp.c` and `tool_c_embed.c` for the curl tool and libcurltool. `unit1394` and `unit1604` tests use libcurltool to test tool-specific functions. They don't need hugehelp and ca-embed. It's thus safe to disable and exclude them when compiling the sources for libcurltool. Use the `UNITTESTS` macro to detect a libcurltool build within C. After this patch these sources are solely used for building the curl tool. Making the build compatible with the CMake Xcode generator. Apply the change to autotools too to keep build systems synchronized. Follow-up to 12a6de2 #16043 Closes #16068
- `.gitignore`: delete, dedupe and move rules upwards. Ref: 6389ba8 #13311 - `.gitignore`: fix generated test sources. Follow-up to 71cf0d1 #14772 - `.gitignore`: replace exe listings with a wildcard. - lib: move `setup-*.h` from `EXTRA_DIST` to `CURL_HFILES`. - `makedebug.bat`: uppercase an argument to match docs. - GHA/non-native: delete stray env. Follow-up to 12a6de2 #16043 - sort source lists. Closes #16093
The Xcode configure phase is slow. In most cases it's >10x slower than the GNU Makefile configuration. This is after days of attempts to make it faster. With GNU Makefile it takes 20-30 seconds, while Xcode can take 3 to 10 minutes, which sometimes makes the job run out of it time limit and fail. 9m33s: https://github.com/curl/curl/actions/runs/13280738423/job/37078441164 8m18s: https://github.com/curl/curl/actions/runs/13281140850/job/37079589779 2m50s: https://github.com/curl/curl/actions/runs/13280725335/job/37078375179 Follow-up to 12a6de2 curl#16043
The Xcode configure phase is slow. In most cases it's >10x slower than the GNU Makefile configuration. This is after days of attempts to make it faster. With GNU Makefile it takes 20-30 seconds, while Xcode can take 3 to 10 minutes, which sometimes makes the job run out of its time limit and fail. CMake recommends this generator, but with such poor, and inconsistent performance, it isn't practical. It helped detecting an Xcode-specific CMake script issue, but aside from that it's not adding much value. 9m33s: https://github.com/curl/curl/actions/runs/13280738423/job/37078441164 8m18s: https://github.com/curl/curl/actions/runs/13281140850/job/37079589779 2m50s: https://github.com/curl/curl/actions/runs/13280725335/job/37078375179 Follow-up to 12a6de2 #16043 Closes #16302
…vcpkg iOS: - add jobs with autotools, CMake, CMake Xcode generator. The Xcode generator is >10x slower than Unix Makefiles. Keep it because it's the one recommended by CMake and for having its own quirks we may want to know about. - build, cache and use LibreSSL for these jobs. With workaround for an iOS build issue fixed in master. - make Xcode generator work by explicitly disabling code signing. - make tests and examples build with the Xcode generator by setting `-DMACOSX_BUNDLE_GUI_IDENTIFIER=se.curl`, to avoid "Bundle identifier is missing" errors. - cmake: disable `CURL_USE_PKGCONFIG` by default for Apple device. - cmake: add `stdc++` library for BoringSSL and AWS-LC, with `OPENSSL_USE_STATIC_LIBS=ON` set. - cmake: add workaround for Xcode generator issue, where it cannot handle two targets depending on one custom command. A better fix may be dropping `tool_hugehelp.c` and `tool_ca_embed.c` from curltool library. For a future PR. Android: - add vcpkg to Android jobs, enable dependencies. Assisted-by: Tal Regev via curl#16045 - make vcpkg work with autotools. - pass `--with-brotli` to autotools to detect the vcpkg-supplied brotli. - enable BoringSSL for Android and add a job with it. - silence 457 CMake configure warnings about the Android NDK CMake scripts targeting freshly deprecated CMake versions. These were much more involved than imagined. Basically nothing works out of the box, and when combined, everything becomes a unique edge case. autotools builds were a much easier to make work than CMake ones. Also: - GHA/non-native: re-sync names to be shorter and more aligned with other workflows. - GHA: add `persist-credentials: false` where missing. Unresolved issues: - `OPENSSL_ROOT_DIR` ignored/mis-used when pointing it to LibreSSL. CMake seems to prepend the sysroot to the passed absolute directory. Found no workaround. - CMake when combined with Android, both the Google-recommended method and the built-in CMake method fail to provide a way to avoid `pkg-config` packages at system directories. Failed to find a knob that can remove `/usr/include` from the search path. The workaround is to disable zstd. (I enabled it by default in this release, maybe premature?: f2adb3b curl#15431) Disabling `pkg-config` doesn't work because vcpkg dependencies do not link without it. - CMake's Xcode generator is slow because each `try_compile()` feature check springs a new CMake + Xcode project taking a long time to run, just to compile single-liner C files. A known issue, with no solution. `-DCMAKE_MACOSX_BUNDLE=OFF` did not help, limiting build types to a single one (e.g. `Debug`) also had no effect. make | Xcode | GHA run :---- | :---- | :-------------------------------------------------------------------- 16s | 2m57s | https://github.com/curl/curl/actions/runs/12866334102/job/35868712426 23s | 4m13s | https://github.com/curl/curl/actions/runs/12868128013/job/35874212461 16s | 3m39s | https://github.com/curl/curl/actions/runs/12859073531/job/35849041880 14s | 2m23s | https://github.com/curl/curl/actions/runs/12858298423/job/35847201313 15s | 2m36s | https://github.com/curl/curl/actions/runs/12858058492/job/35846669761 19s | 3m19s | https://github.com/curl/curl/actions/runs/12868919430/job/35876601168 Closes curl#16043
Also drop whitespaces/alignment. Reported-by: Tal Regev Follow-up to 12a6de2 curl#16043
CMake builds using the Xcode generator broke with an error saying it doesn't support multiple targets depending on the same custom commands. These custom commands are generating `tool_hugehelp.c` and `tool_c_embed.c` for the curl tool and libcurltool. `unit1394` and `unit1604` tests use libcurltool to test tool-specific functions. They don't need hugehelp and ca-embed. It's thus safe to disable and exclude them when compiling the sources for libcurltool. Use the `UNITTESTS` macro to detect a libcurltool build within C. After this patch these sources are solely used for building the curl tool. Making the build compatible with the CMake Xcode generator. Apply the change to autotools too to keep build systems synchronized. Follow-up to 12a6de2 curl#16043 Closes curl#16068
- `.gitignore`: delete, dedupe and move rules upwards. Ref: 6389ba8 curl#13311 - `.gitignore`: fix generated test sources. Follow-up to 71cf0d1 curl#14772 - `.gitignore`: replace exe listings with a wildcard. - lib: move `setup-*.h` from `EXTRA_DIST` to `CURL_HFILES`. - `makedebug.bat`: uppercase an argument to match docs. - GHA/non-native: delete stray env. Follow-up to 12a6de2 curl#16043 - sort source lists. Closes curl#16093
The Xcode configure phase is slow. In most cases it's >10x slower than the GNU Makefile configuration. This is after days of attempts to make it faster. With GNU Makefile it takes 20-30 seconds, while Xcode can take 3 to 10 minutes, which sometimes makes the job run out of its time limit and fail. CMake recommends this generator, but with such poor, and inconsistent performance, it isn't practical. It helped detecting an Xcode-specific CMake script issue, but aside from that it's not adding much value. 9m33s: https://github.com/curl/curl/actions/runs/13280738423/job/37078441164 8m18s: https://github.com/curl/curl/actions/runs/13281140850/job/37079589779 2m50s: https://github.com/curl/curl/actions/runs/13280725335/job/37078375179 Follow-up to 12a6de2 curl#16043 Closes curl#16302
… feature detections
When using llvm/clang combined with AWS-LC/BoringSSL and
`OPENSSL_USE_STATIC_LIBS=ON`.
Passing the stdc++ library to other feature detection may break them,
ending the configure stage with weird errors.
As in this example seen with quiche 0.30.0 (+ cmake 4.4.3) on Linux:
```
[...]
-- Performing Test HAVE_FSETXATTR_5
CMake Error at /home/runner/work/curl/curl/bld/CMakeFiles/CMakeTmp/CMakeLists.txt:30 (target_link_libraries):
Target "cmTC_503bd" links to:
Threads::Threads
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
CMake Error at CMake/Macros.cmake:44 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
CMakeLists.txt:1700 (curl_internal_test)
```
Ref: https://github.com/curl/curl/actions/runs/36243669911/job/108408815423#step:21:1729
The `CMakeFiles/CMakeConfigureLog.yaml` log shows no error message, just
a failure with exit code 1.
Follow-up to 12a6de2 curl#16043
Cherry-picked from curl#23088
…ctions only
When using llvm/clang combined with AWS-LC/BoringSSL and
`OPENSSL_USE_STATIC_LIBS=ON`.
Passing the stdc++ library to other feature detections may break them,
ending the configure stage with a weird error.
As in this example seen with quiche 0.30.0 (+ cmake 4.4.3) on Linux:
```
[...]
-- Performing Test HAVE_FSETXATTR_5
CMake Error at curl/bld/CMakeFiles/CMakeTmp/CMakeLists.txt:30 (target_link_libraries):
Target "cmTC_503bd" links to:
Threads::Threads
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
CMake Error at CMake/Macros.cmake:44 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
CMakeLists.txt:1700 (curl_internal_test)
```
Ref: https://github.com/curl/curl/actions/runs/36243669911/job/108408815423#step:21:1729
`CMakeFiles/CMakeConfigureLog.yaml` shows no error message, just a
failure with exit code 1.
Follow-up to 12a6de2 #16043
Cherry-picked from #23088
Closes #23122
Replace manual LibreSSL configuration with the standard `OPENSSL_ROOT_DIR` method, by passing CMake the additional settings necessary to make it work as expected in this cross-build scenario (i.e. avoid sysroot interfering with the dependency detection.) Refs: https://cmake.org/cmake/help/v3.19/variable/CMAKE_FIND_ROOT_PATH.html https://cmake.org/cmake/help/v3.19/variable/CMAKE_FIND_ROOT_PATH_MODE_LIBRARY.html https://cmake.org/cmake/help/v3.19/variable/CMAKE_FIND_ROOT_PATH_MODE_INCLUDE.html Also: - confirmed, that without the new settings, it continues to fails as was seen in January 2025 with an earlier CMake versions. Follow-up to 12a6de2 #16043 Closes #23522
iOS:
The Xcode generator is >10x slower than Unix Makefiles. Keep it
because it's the one recommended by CMake and for having its own
quirks we may want to know about.
With workaround for an iOS build issue fixed in master.
-DMACOSX_BUNDLE_GUI_IDENTIFIER=se.curl, to avoid"Bundle identifier is missing" errors.
CURL_USE_PKGCONFIGby default for Apple device.stdc++library for BoringSSL and AWS-LC, withOPENSSL_USE_STATIC_LIBS=ONset.handle two targets depending on one custom command. A better fix may
be dropping
tool_hugehelp.candtool_ca_embed.cfrom curltoollibrary. For a future PR.
Android:
Assisted-by: Tal Regev via Add vcpkg to android ci #16045
--with-brotlito autotools to detect the vcpkg-supplied brotli.scripts targeting freshly deprecated CMake versions.
These were much more involved than imagined. Basically nothing works out
of the box, and when combined, everything becomes a unique edge case.
autotools builds were a much easier to make work than CMake ones.
Also:
other workflows.
persist-credentials: falsewhere missing.Unresolved issues:
OPENSSL_ROOT_DIRignored/mis-used when pointing it to LibreSSL.CMake seems to prepend the sysroot to the passed absolute directory.
Found no workaround.
and the built-in CMake method fail to provide a way to avoid
pkg-configpackages at system directories. Failed to find a knobthat can remove
/usr/includefrom the search path. The workaround isto disable zstd. (I enabled it by default in this release, maybe
premature?: f2adb3b cmake: extend zlib's
AUTOoption to brotli, zstd and enable if found #15431)Disabling
pkg-configdoesn't work because vcpkg dependencies do notlink without it.
try_compile()featurecheck springs a new CMake + Xcode project taking a long time to run,
just to compile single-liner C files. A known issue, with no solution.
-DCMAKE_MACOSX_BUNDLE=OFFdid not help, limiting build types toa single one (e.g.
Debug) also had no effect.macos.yml[→ GHA: move iOS jobs from non-native to macos workflow #17912] and rename toapple.yml?CURL_USE_PKGCONFIGfor Apple cross-OS targets.stdc++for clang builds automatically for BoringSSL.Maybe enable with
OPENSSL_USE_STATIC_LIBS=ON?./configureto look forbrotlilibs.To avoid the CMake Xcode-generator specific workaround.
Future PR, it's not that simple.
https://github.com/curl/curl/actions/runs/12874833803
→ src: omit hugehelp and ca-embed from libcurltool #16068
Failed experiment:
projects not building. Then one OpenSSL fork started working, taking
1.5GB disk space, then failing with compiler warnings about
uninitialized variables in curl's
openssl.c. The fork also possiblyrequires a case-insenitive file-system, which is the default on macOS,
but not mandatory.