> On 2020-02-25 01:18, Jon Turney wrote : > > On 24/02/2020 23:35, JonY wrote: >> On 2/24/20 8:21 PM, Achim Gratz wrote: >>> JonY writes: >>>> gcc-9.2.0-2 has been uploaded for Cygwin. This version is the same as >>>> -1, just repackaged and marked as stable. >>> >>> This version of gcc requires a newer binutils than defined as current in >>> the Cygwin repo, so until this gets corrected one needs to manually >>> switch to the test version binutils-2.31.1-1. > > binutils-2.31.1-1 has been promoted from test to current. >
In order to compile cleanly the last snapshot with gcc 9.2.0, i had to apply the following patch (see below). Otherwise one get an uninitialized variable together with a missing __attribute__. Regards, Denis Excoffier. diff -cNr cygwin-snapshot-20200221-1o/winsup/cygwin/exec.cc cygwin-snapshot-20200221-1p/winsup/cygwin/exec.cc *** cygwin-snapshot-20200221-1o/winsup/cygwin/exec.cc Mon Jun 27 13:27:22 2016 --- cygwin-snapshot-20200221-1p/winsup/cygwin/exec.cc Wed Feb 26 08:42:33 2020 *************** *** 85,91 **** { return spawnve (_P_OVERLAY, path, argv, envp); } ! EXPORT_ALIAS (execve, _execve) /* For newlib */ extern "C" int execvp (const char *file, char * const *argv) --- 85,92 ---- { return spawnve (_P_OVERLAY, path, argv, envp); } ! //EXPORT_ALIAS (execve, _execve) /* For newlib */ ! extern "C" __typeof (execve) _execve __attribute__ ((alias("execve"), nothrow)); extern "C" int execvp (const char *file, char * const *argv) diff -cNr cygwin-snapshot-20200221-1o/winsup/cygwin/posix_timer.cc cygwin-snapshot-20200221-1p/winsup/cygwin/posix_timer.cc *** cygwin-snapshot-20200221-1o/winsup/cygwin/posix_timer.cc Fri Mar 8 12:58:25 2019 --- cygwin-snapshot-20200221-1p/winsup/cygwin/posix_timer.cc Wed Feb 26 08:41:33 2020 *************** *** 81,87 **** LONG timer_tracker::disarm_overrun_event () { ! LONG ret; AcquireSRWLockExclusive (&srwlock); if (overrun_count != OVR_DISARMED) --- 81,87 ---- LONG timer_tracker::disarm_overrun_event () { ! LONG ret = 0; AcquireSRWLockExclusive (&srwlock); if (overrun_count != OVR_DISARMED) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple