clang will default to the host if no target is specified, which causes compile test failures if arch-specific CFLAGS are used for a non-host arch.
-- v4: configure: Test PE compilers after setting their target argument.
From: Billy Laws blaws05@gmail.com
clang will default to the host if no target is specified, which causes compile test failures if arch-specific CFLAGS are used for a non-host arch. --- configure.ac | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/configure.ac b/configure.ac index 23d3f8fbc49..d1f1c08b08d 100644 --- a/configure.ac +++ b/configure.ac @@ -838,14 +838,9 @@ do AS_VAR_COPY([${wine_arch}_LDFLAGS],[LDFLAGS]) AS_VAR_SET([${wine_arch}_EXTRACFLAGS],["-D__WINE_PE_BUILD -Wall"])
- target="" - AS_VAR_PUSHDEF([wine_cv_crosscc],[ac_cv_${wine_arch}_crosscc]) AS_VAR_IF([${wine_arch}_CC],[false],[], - [AC_CACHE_CHECK([whether $CC works],[wine_cv_crosscc], - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], - [AS_VAR_SET([wine_cv_crosscc],[yes])],[AS_VAR_SET([wine_cv_crosscc],[no])])])]) - AS_VAR_IF([wine_cv_crosscc],[yes], - [set x $CC + [target="" + set x $CC shift while test $# -ge 1 do @@ -870,6 +865,7 @@ do fi llvm_extra_cflags="-target $llvm_target -fuse-ld=lld" llvm_extra_ldflags="" + llvm_cflags="" case $llvm_target in *windows) llvm_cflags="-Wl,-subsystem:console -Wl,-WX" ;; esac @@ -885,9 +881,14 @@ do AS_VAR_APPEND([${wine_arch}_EXTRACFLAGS],[" $llvm_extra_cflags"]) AS_VAR_APPEND([${wine_arch}_LDFLAGS],[" $llvm_extra_ldflags"]) CFLAGS="$llvm_extra_cflags $llvm_cflags" + else + AS_VAR_PUSHDEF([wine_cv_crosscc], [wine_cv_${wine_arch}_crosscc]) + AC_CACHE_CHECK([whether $CC works], wine_cv_crosscc, + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], [AS_VAR_SET([wine_cv_crosscc],[yes])], [AS_VAR_SET([wine_cv_crosscc],[no])])]) + AS_VAR_IF([wine_cv_crosscc], [no], [AS_VAR_SET([target],[])]) + AS_VAR_POPDEF([wine_cv_crosscc]) fi - AS_VAR_SET([${wine_arch}_TARGET],[$target])]) - AS_VAR_POPDEF([wine_cv_crosscc]) + ])
if test -z "$target" then @@ -897,6 +898,7 @@ This is an error since --enable-archs=$wine_arch was requested.])]) continue fi
+ AS_VAR_SET([${wine_arch}_TARGET],[$target]) AS_VAR_PUSHDEF([wine_cv_crosscc_c99],[ac_cv_${wine_arch}_crosscc_c99]) AC_MSG_CHECKING([for $CC option to enable C99 features]) AC_CACHE_VAL([wine_cv_crosscc_c99],
Hi,
It looks like your patch introduced the new failures shown below. Please investigate and fix them before resubmitting your patch. If they are not new, fixing them anyway would help a lot. Otherwise please ask for the known failures list to be updated.
The tests also ran into some preexisting test failures. If you know how to fix them that would be helpful. See the TestBot job for the details:
The full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=147243
Your paranoid android.
=== debian11b (64 bit WoW report) ===
kernel32: comm.c:1586: Test failed: Unexpected time 1001, expected around 500
On Fri Jul 19 18:03:19 2024 +0000, Billy Laws wrote:
changed this line in version 1 of the diff
Addressed