[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build Errors with Timeservice + Ubuntu 16.04

From: Gary E. Miller
Subject: Re: Build Errors with Timeservice + Ubuntu 16.04
Date: Wed, 3 Jun 2020 17:06:12 -0700

Yo Dan!

On Wed, 3 Jun 2020 19:34:07 -0400
Dan Williams <> wrote:

> > What is your ENTIRE build procedure?  With logs please.
> >  
> As you wish!   I've attached a build log from a clean repo.   It
> starts with 'git clone', and ends with the output of 'scons check'
> (see attachment: "gpsd-build.txt")

I don't use Ubuntu, so the pip and apt for your entire system are not

Why are you buliding detatched HEAD?  If you are pulling git, then
use all the bug fixes in git HEAD.  Especially if you use a u-blox

What is your receiver?

I'm sure you saw these:

    WARNING: asciidoctor not found.
    WARNING: Some documentation and html will not be built.

Why did you turn off all the drivers?

    ashtech = False (default True): Ashtech support
    earthmate = False (default True): DeLorme EarthMate Zodiac support

And turn off xgps and other clients?

    xgps = False (default True): include xgps and xgpsspeed.
    gpsdclients = False (default True): gspd client programs

You have python off, which breaks all the regression tests:

    python = False (default True): build Python support and modules.
    GPS regression tests suppressed because socket_export or python is off.

So you broke the regressions by building that way.

> > > 2. gpsd doesn't update the shm segments (according to either 'ipcs
> > > -mt' or 'ntpshmmon')  
> >
> > If you can't build it, you certainly can't run it!  First things
> > first.
> >
> >  
> Haha, yea, fair enough.   Anyway, I'm just including it for context--
> to let you know what else I've tried.

You save everyone time and effort when you stop at the first error.

> > > 1. Start with any Ubuntu OS
> > > 2. Download gpsd from source / git
> > > 3. checkout latest stable release (assumed to be 3.20)
> > > 4. build with 'timeservice=yes`*  
> >
> > timeservice=yes is for Raspberry Pi HATs.  Are you running on a
> > Raspberry Pi?
> >
> >  
> Ahhh!  That would have been nice to know.  The documentation doesn't
> mention that!

Ah, sorry, that doc.  The other one is for the RasPi.

> I'm referring first to:

Which you did not follow exactly.

> and the SConstruct definition, itself:
> )

You conflate timeservice the flag, with timeservice the concepts.  I admit
the various docs do so as well.

> In that case, what's the "default" flags to enable PPS + shm + time
> reporting?

That default is:
        scons -c && scons && scons install

Timeservice is not even close to any easonable defaults.

You enabled a very cut down version not for general use.  Then you
want the extras you removed to work.

> ( It definitely wasn't available in the apt-get version, nor in the
> vanilla builds, without 'timeservice' )

Because no one needs it.  It mostly turns off a bunch of stuff, and
turns on Raspberry Pi HAT mode.  Eric is a big fan of it, but I never,
ever, tell anyone to use it.

> The computer we're using is a relatively standard x86_64 embedded /
> industrial computer:

No GPIO, but serial.  It should be OK.

> FWIW, other environment things that may or may not matter:

Nah, nothing odd in there.

How do you start gpsd?

While gpsd is running, send the results of these three items, as root,
not sudo:

    # pstree -paul | fgrep gpsd
    # netstat -apn | fgrep 2947
    # gpspipe -w -n 30

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgp7NVSqcYV2K.pgp
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]