some tests are failed in the MinGW

20 views
Skip to first unread message

anlex N

unread,
Jul 14, 2024, 10:29:34 PM7/14/24
to Abseil.io
95% tests passed, 12 tests failed out of 221 Total Test time (real) = 498.16 sec The following tests FAILED: 58 - absl_symbolize_test (Failed) 82 - absl_hash_test (Failed) 88 - absl_absl_log_basic_test (Failed) 91 - absl_log_basic_test (Failed) 97 - absl_log_sink_test (Failed) 98 - absl_log_streamer_test (Failed) 133 - absl_random_internal_explicit_seed_seq_test (Failed) 134 - absl_random_internal_salted_seed_seq_test (Failed) 171 - absl_charconv_test (Failed) 174 - absl_str_format_test (Failed) 179 - absl_str_format_convert_test (Failed) 208 - absl_time_test (Exit code 0xc0000409 ) Errors while running CTest Output from these tests are in: E:/workspace/github.com/abseil/abseil-cpp/build/cmake/Testing/Temporary/LastTest.log Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely. FAILED: CMakeFiles/test.util C:\WINDOWS\system32\cmd.exe /C "cd /D E:\workspace\github.com\abseil\abseil-cpp\build\cmake && E:\software\msys2\ucrt64\bin\ctest.exe --force-new-ctest-process " ninja: build stopped: subcommand failed.
LastTest.7z

Andy Getzendanner

unread,
Jul 22, 2024, 3:44:30 PM7/22/24
to anlex N, Abseil.io
We don't really support mingw, but we'd probably take PRs to improve compatibility so long as they don't make the code worse for other platforms or clutter things up too terribly.  I did run these on my system out of curiosity and took a quick look at the results:

absl_symbolize_test
Patches welcome =).
 
absl_hash_test
absl_absl_log_basic_test
absl_log_basic_test
absl_log_sink_test
absl_log_streamer_test
These all pass for me on gcc-14.1 with mingw runtime 12.0.0 on Windows 11 x86_64.  Feel free to share your versions too, but I don't expect to have time to investigate further.   

absl_random_internal_explicit_seed_seq_test
absl_random_internal_salted_seed_seq_test
Yeah, this isn't portable: std::random_device urandom("/dev/urandom");

absl_charconv_test
I think we might need to include mingw in the #ifdef _MSC_FULL_VER block up top.
 
absl_str_format_test
absl_str_format_convert_test
Patches welcome =).

absl_time_test
RAW: Check LoadTimeZone(name, &tz) failed: America/Los_Angeles 

anlex N

unread,
Jul 22, 2024, 9:26:22 PM7/22/24
to Andy Getzendanner, Abseil.io
Hello teacher, This is my [msys2 UCRT64 (for MinGW) environment](https://www.msys2.org/docs/environments/):

```shell
me@DOOR UCRT64 ~
$ env
ProgramFiles(x86)=C:\Program Files (x86)
!::=::\
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
SHELL=/usr/bin/bash
NUMBER_OF_PROCESSORS=8
FPS_BROWSER_USER_PROFILE_STRING=Default
PROCESSOR_LEVEL=6
TERM_PROGRAM_VERSION=3.7.4
MINGW_PREFIX=/ucrt64
TRACEDESIGNTIME=true
PKG_CONFIG_PATH=/ucrt64/lib/pkgconfig:/ucrt64/share/pkgconfig
USERDOMAIN_ROAMINGPROFILE=DOOR
HOSTNAME=DOOR
PROGRAMFILES=C:\Program Files
MSYSTEM=UCRT64
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
ORIGINAL_TEMP=/e/Temp
MINGW_CHOST=x86_64-w64-mingw32
OS=Windows_NT
HOMEDRIVE=C:
MSYSTEM_CARCH=x86_64
USERDOMAIN=DOOR
PWD=/home/angle-n
USERPROFILE=C:\Users\angle-n
MANPATH=/ucrt64/local/man:/ucrt64/share/man:/usr/local/man:/usr/share/man:/usr/man:/share/man
PRINTER=Adobe PDF
TZ=Asia/Shanghai
MINGW_PACKAGE_PREFIX=mingw-w64-ucrt-x86_64
ALLUSERSPROFILE=C:\ProgramData
ORIGINAL_PATH=/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/
CommonProgramW6432=C:\Program Files\Common Files
HOME=/home/angle-n
USERNAME=angle-n
VBOX_MSI_INSTALL_PATH=E:\software\virtualbox\
OneDrive=C:\Users\angle-n\OneDrive
EFC_5272=1
COMSPEC=C:\WINDOWS\system32\cmd.exe
APPDATA=C:\Users\angle-n\AppData\Roaming
SYSTEMROOT=C:\WINDOWS
LOCALAPPDATA=C:\Users\angle-n\AppData\Local
COMPUTERNAME=DOOR
INFOPATH=/ucrt64/local/info:/ucrt64/share/info:/usr/local/info:/usr/share/info:/usr/info:/share/info
GRADLE_USER_HOME=E:\software\.gradle
ANDROID_HOME=E:\software\Android\Sdk
TERM=xterm
LOGONSERVER=\\DOOR
ZES_ENABLE_SYSMAN=1
ACLOCAL_PATH=/ucrt64/share/aclocal:/usr/share/aclocal
USER=angle-n
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
TEMP=/tmp
MSYSTEM_CHOST=x86_64-w64-mingw32
ORIGINAL_TMP=/e/Temp
SHLVL=1
PROCESSOR_REVISION=8e0b
DriverData=C:\Windows\System32\Drivers\DriverData
ANDROID_USER_HOME=E:\software\Android\.android
COMMONPROGRAMFILES=C:\Program Files\Common Files
LC_CTYPE=en_US.UTF-8
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 142 Stepping 11, GenuineIntel
SESSIONNAME=Console
PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\] \[\e[33m\]\w\[\e[0m\]\n\$
PKG_CONFIG_SYSTEM_LIBRARY_PATH=/ucrt64/lib
HOMEPATH=\Users\angle-n
XDG_DATA_DIRS=/ucrt64/share/:/usr/local/share/:/usr/share/
MSYSCON=mintty.exe
TMP=/tmp
CONFIG_SITE=/etc/config.site
PATH=/ucrt64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
ProgramW6432=C:\Program Files
MSYSTEM_PREFIX=/ucrt64
WINDIR=C:\WINDOWS
FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer
PROCESSOR_ARCHITECTURE=AMD64
PUBLIC=C:\Users\Public
PKG_CONFIG_SYSTEM_INCLUDE_PATH=/ucrt64/include
SYSTEMDRIVE=C:
OLDPWD=/
TERM_PROGRAM=mintty
ProgramData=C:\ProgramData
_=/usr/bin/env
```

What MinGW do you use? Andy teacher.

Andy Getzendanner

unread,
Jul 23, 2024, 2:23:38 PM7/23/24
to anlex N, Abseil.io
My results are from a GCC cross-compiler targeting MINGW64 (msvcrt).  I bet at least some of the difference between your results and mine is due to different libcs.
Reply all
Reply to author
Forward
0 new messages