svn commit: r418247 - in head/devel/gps: . files

Alexey Dokuchaev danfe at FreeBSD.org
Mon Jul 11 12:50:19 UTC 2016


On Mon, Jul 11, 2016 at 07:45:01AM -0500, John Marino wrote:
> On 7/11/2016 07:23, Alexey Dokuchaev wrote:
> > On Fri, Jul 08, 2016 at 10:28:04PM +0000, John Marino wrote:
> >> New Revision: 418247
> >> URL: https://svnweb.freebsd.org/changeset/ports/418247
> >>
> >> Log:
> >>   devel/gps: Fix compiler error highlight on FreeBSD
> >>
> >>   On DragonFly, GPS has been properly highlighting code errors during
> >>   compilation, but on FreeBSD nothing happens.  Luckily Rod Kay has been
> >>   persistent in diagnosing the cause and he finally isolated it to a
> >>   too-short timeout interval for Expect calls.  The timeout period was
> >>   set to 1 millisecond, the absolute shortest interval possible.  While
> >>   Linux and DF could complete the function call during this time, FreeBSD
> >>   requires at least 10 milliseconds to do the same.
> >
> > Fascinating.  Did you guys try to understand what makes Linux and DF over
> > a magnitude faster than FreeBSD?  Is there something that needs to be
> > fixed?
> 
> I didn't spend much time on it because it's nothing that can be fixed
> with regard to GPS.  I believe the timeout of "1" is itself a logic
> mistake that FreeBSD exposed.

That's understood, right.

> With a cursory glance, I'd guess the problem is centered around polling
> file descriptors -- I'd particularly suspect the __gnat_expect_poll
> function in gcc/ada/expect.c to hold the answer.
> 
> short answer: yes, the implementation of the culprit should be improved
> at the OS-level but you are talking about FreeBSD 12.  I wrote this
> descriptive commit in the hopes it would catch someone's eye.

Noted.  (Thanks for doing a great job with your commit logs, they are of
top notch.  Keep it up.)

./danfe


More information about the svn-ports-all mailing list