https://bugs.winehq.org/show_bug.cgi?id=56956 Bug ID: 56956 Summary: MSVC cl.exe 19.* fails to flush intermediate file Product: Wine Version: 9.11 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt Assignee: wine-bugs(a)winehq.org Reporter: loothelion(a)nvidia.com Distribution: --- Created attachment 76772 --> https://bugs.winehq.org/attachment.cgi?id=76772 a trivial C program to reproduce the issue When using any MSVC 19.* version (I've tested several) compilation of an object now fails with the following message: c1: fatal error C1088: Cannot flush compiler intermediate file: 'C:\users\lmiddlebrook\Temp\_CL_c8f4abecex': Bad file descriptor I used git-bisect and found that the regression commit is: commit 1163e399376ab74eb38a6068daba69497b6b14be (HEAD) Author: Shengdun Wang <uwgghhbcad(a)gmail.com> Date: Wed Jun 12 13:01:31 2024 +0200 ucrtbase: Fix FILE _flag values. dlls/msvcrt/msvcrt.h | 8 ++++++++ dlls/ucrtbase/tests/file.c | 2 +- include/msvcrt/stdio.h | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) I've attached my example C program (a basic hello world). I use the following command-line to repro: cl.exe -c z:/tmp/test.c -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.