-
-
Notifications
You must be signed in to change notification settings - Fork 7k
autotools: add support for mingw UWP builds #16020
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` gcc.exe: fatal error: cannot read spec file 'D:acurlcurlgcc-specs-uwp': No such file or directory compilation terminated. make[1]: *** [Makefile:3154: libcurl_la-timediff.lo] Error 1 libtool: compile: windres -I../../include -i ../../lib/libcurl.rc -o libcurl.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I../../include -I../lib -I../../lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -DWINSTORECOMPAT -DWINAPI_FAMILY=WINAPI_FAMILY_APP -fvisibility=hidden -specs=D:acurlcurlgcc-specs-uwp -Werror-implicit-function-declaration -O2 -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wbad-function-cast -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef -Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -Wold-style-definition -Wstrict-aliasing=3 -Wattributes -Wdiv-by-zero -Wformat-security -Wmissing-field-initializers -Wmissing-noreturn -Wunreachable-code -Wunused-parameter -Wpragmas -Wredundant-decls -Wcast-align -Waddress -Wtype-limits -Wold-style-declaration -Wmissing-parameter-type -Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion -Wsign-conversion -Wno-error=sign-conversion -Wvla -ftree-vrp -Wno-pedantic-ms-format -Wdouble-promotion -Wtrampolines -Wformat=2 -Warray-bounds=2 -Wshift-negative-value -Wshift-overflow=2 -Wnull-dereference -fdelete-null-pointer-checks -Wduplicated-cond -Wunused-const-variable -Wduplicated-branches -Wrestrict -Walloc-zero -Wformat-truncation=2 -Wimplicit-fallthrough -Warith-conversion -Wenum-conversion -Wno-system-headers -Werror -pedantic-errors -c libcurl_unity.c -DDLL_EXPORT -DPIC -o .libs/libcurl_la-libcurl_unity.o gcc.exe: fatal error: cannot read spec file 'D:acurlcurlgcc-specs-uwp': No such file or directory compilation terminated. ``` https://github.com/curl/curl/actions/runs/12809659016/job/35714988411#step:10:31
``` D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: socksd-socksd.o:socksd.c:(.rdata$.refptr.in6addr_any[.refptr.in6addr_any]+0x0): undefined reference to `in6addr_any' ``` https://github.com/curl/curl/actions/runs/12810353428/job/35717243068?pr=16019#step:12:182
This reverts commit 10519db.
vszakats
added a commit
that referenced
this pull request
Jan 17, 2025
pps83
pushed a commit
to pps83/curl
that referenced
this pull request
Apr 26, 2025
To match cmake builds. - GHA/windows: allow autotools UWP builds. - detect UWP and add to `buildinfo.txt`. Consider it enabled if `CPPFLAGS` contains `-DWINSTORECOMPAT`. - disable telnet with UWP. - enable Unicode with UWP. - do not use `wldap32` with UWP. - do not enable `USE_WIN32_CRYPTO` with UWP. - make sure to link to `ws2_32` in UWP builds. To fix `undefined reference to `in6addr_any'` when linking `tests/server` programs. More in the comment. Closes curl#16020
pps83
pushed a commit
to pps83/curl
that referenced
this pull request
Apr 26, 2025
- limit UWP detection to native Windows. - add missing double-quotes to variable. - drop interlock and sync order in buildinfo flags. Follow-up to 56a74fa curl#16014 Follow-up to f7bb6c1 curl#16020 Closes curl#16027
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To match cmake builds.
buildinfo.txt.Consider it enabled if
CPPFLAGScontains-DWINSTORECOMPAT.wldap32with UWP.USE_WIN32_CRYPTOwith UWP.ws2_32in UWP builds.To fix
undefined reference toin6addr_any'when linkingtests/server` programs. More in the comment.w/o whitespace: https://github.com/curl/curl/pull/16020/files?w=1