[bug #64806] "invalid output sync mutex" on windows
robin_glattauer <[email protected]> Tue, 28 Apr 2026 15:49:39 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.make.bugs |
|---|---|
| Message-ID | <[email protected]> |
--8323329-1350490027-1777405779=:2979955 Content-Type: TEXT/plain; CHARSET=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-Disposition: inline Follow-up Comment #35, bug #64806 (group make):=0A=0AHi, is it possible tha= t the sync mutex output issue happens in _w32os.c_ in=0Amethod _osync_get_m= utex_, when you do:=0A=0A=0Asprintf (mutex, "0x%Ix", (unsigned long long)(D= WORD_PTR)osync_handle);=0A=0A=0ABecause: "%I" is Microsoft specific. See=0A= https://learn.microsoft.com/en-us/cpp/c-runtime-library/format-specificatio= n-syntax-printf-and-wprintf-functions?view=3Dmsvc-170=0AThere they say:=0A>= Microsoft-specific: The I (uppercase i), I32, I64, and w argument size=0A>= modifier prefixes are Microsoft extensions and are not ISO C-compatible. = =0A=0ASo the issue could be that in none-MSVC-compiler settings (looking at= mingw),=0Athe %I is interpreted as something else and thus results in a st= ring that is=0Asimply wrong - like the garbage string shown below.=0A=0AI c= ome to that conclusion, because I am running on mingw (via MSYS) and I get= =0Aa similar issue.=0AAnd when I run with _--debug=3Dv_, I get=0A=0A=0ARead= ing makefile 'Makefile'...=0AUsing jobserver controller gmake_semaphore_341= 60=0AUsing output-sync mutex=0AUpdating makefiles....=0A=0A=0ASo in the pla= ce where it should print the mutex hex number I get nothing. Not=0Athe same= as the "=EF=BF=BD*V8=EF=BF=BD=02" below, but close enough.=0A=0ARelated: m= y bug report at msys2/MINGW-packages:=0Ahttps://github.com/msys2/MINGW-pack= ages/issues/29218=0A=0A=0A=0A __________________________________________= _____________=0A=0AReply to this item at:=0A=0A <https://savannah.gnu.org/= bugs/?64806>=0A=0A_______________________________________________=0AMessage= sent via Savannah=0Ahttps://savannah.gnu.org/=0A --8323329-1350490027-1777405779=:2979955 Content-Type: APPLICATION/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCafEPUwAKCRCqLAuaBUf3 TsSSAP976xW2bpOL2EdTlQISx5KIJ4OoAAiP3MT6VduUisninQEAs+QDSZ+rdozI zd85tW830OlqRLZc6LR0gYyaphJ4qgQ= =B1cw -----END PGP SIGNATURE----- --8323329-1350490027-1777405779=:2979955--