Date: Mon, 25 May 2020 18:31:35 +0000 From: bugzilla-noreply@freebsd.org To: haskell@FreeBSD.org Subject: [Bug 241849] lang/ghc: Enable USE_PTHREAD_FOR_ITIMER Message-ID: <bug-241849-16154-Xq9tVdIdO0@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-241849-16154@https.bugs.freebsd.org/bugzilla/> References: <bug-241849-16154@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241849 Kevin Zheng <kevinz5000@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209025|0 |1 is obsolete| | --- Comment #7 from Kevin Zheng <kevinz5000@gmail.com> --- Created attachment 214847 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D214847&action= =3Dedit Patch Hi again, This issue is still present in the ghc-8.8.3 in ports. Some quick investiga= tion reveals that USE_PTHREAD_FOR_ITIMER is only set if THREADED_RTS is defined; that is, when ghc is run with the `-threaded` option: https://gitlab.haskell.org/ghc/ghc/-/commit/ec8a463d1ff948ba9b1b0fbb538f7d5= a237bf44a >From the context, Linux is the only OS where USE_PTHREAD_FOR_ITIMER depends= on THREADED_RTS also being set. This seems to be because on Linux, GHC uses so= me timerfd thing. FreeBSD, like the rest of the OS's, should always define USE_PTHREAD_FOR_ITIMER. The patch to correct this locally is attached. I wi= ll defer to haskell@, but would prefer this to be applied locally with a PORTREVISION bump because of the long time it takes to update a version from upstream. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241849-16154-Xq9tVdIdO0>