From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 51D573858D39; Tue, 8 Aug 2023 11:40:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51D573858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691494849; bh=AOdYSG0dGi7ycFABfSjDl4jdXed4jVTW6AcgZ4dg9v4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WWYxjtYadzOBjYfKzaluKhDcvMnfxpC4+9clj0nA4D3j+vEBW8M7nsJgw0z4oFxsJ qvmrxid8yarimZPUN0PMfKz471/r+C/3yWKssaWun17UjyFZL8uZvHoUczaCcGx7zC p6+3ruOLDK6BskxCRaqQu+gkjK8grH3i64Pru3xU= From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/110779] SysClock can not read the clock Date: Tue, 08 Aug 2023 11:40:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110779 --- Comment #9 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #8 from Gaius Mulley --- > Created attachment 55703 > --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55703&action=3Dedit > Proposed fix (addendum) > > Here is a patch which tests for all the functions and structs in wrapcloc= k.cc. That patch does restore i386-pc-solaris2.11 bootstrap, thanks. Testsuite results are good, with two exceptions: for 32-bit compilation (only, 64-bit is fine), two tests reliably time out at all optimization levels: WARNING: gm2/iso/run/pass/m2date.mod execution, -O program timed out. WARNING: gm2/iso/run/pass/testclock2.mod execution, -O program timed out. Running them under truss shows that the last system call each is 5032: clock_settime(3, 0x080975F0) Err#1 EPERM [sys_ti= me] Running testclock2.mod under gdb shows Thread 2 received signal SIGINT, Interrupt. [Switching to Thread 1 (LWP 1)] 0x08064ad4 in daysInMonth (year=3D42582828, month=3D7) at /vol/gcc/src/hg/master/local/libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/SysC= lock.mod:225 225 BEGIN (gdb) bt #0 0x08064ad4 in daysInMonth (year=3D42582828, month=3D7) at /vol/gcc/src/hg/master/local/libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/SysC= lock.mod:225 #1 0x08065152 in daysInYear (year=3D42582828, month=3D,=20 day=3D) at /vol/gcc/src/hg/master/local/libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/SysC= lock.mod:132 #2 ExtractDate (day=3D@0x808748c: 0, month=3D@0x8087484: 0, year=3D@0x8087= 480: 0,=20 days=3D53508608997914) at /vol/gcc/src/hg/master/local/libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/SysC= lock.mod:152 #3 m2iso_SysClock_GetClock (userData=3D...) at /vol/gcc/src/hg/master/local/libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/SysC= lock.mod:204 #4 0x0805f652 in _M2_testclock2_init () #5 0x08068d7a in m2pim_M2Dependent_ConstructModules ( applicationmodule=3D0x805c2b4, libname=3D0x805c2bf,=20 overrideliborder=3D0x805c2d8, argc=3D1, argv=3D0xfeffdafc, envp=3D0xfef= fdb04) at /vol/gcc/src/hg/master/local/libgm2/libm2pim/../../gcc/m2/gm2-libs/M2Depend= ent.mod:809 #6 0x0805fca9 in _M2_init () #7 0x0805fcee in main () That year value seems very strange.=