rlocone
Posts: 1
Joined: Tue May 01, 2018 1:17 pm

GPS + PPS + NTP / Compile error

Tue May 01, 2018 1:34 pm

Hello All,

I'm attempting to follow the directions on this project and encountering compiling segmentation faults. This is preventing me from proceeding into the next steps of the project.

Project
https://ava.upuaut.net/?p=726

Compiling source from ntp-4.2.8p10.tar.gz

Error
http.c: In function 'evhttp_append_to_last_header':
http.c:4857:1: internal compiler error: Segmentation fault

Hardware
Pi 3 B+

I have no clue what to do next or how to even troubleshoot this.

Any help would be appreciated.

Thanks for your time and attention,
https://twitter.com/rlocone

User avatar
topguy
Posts: 4997
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: GPS + PPS + NTP / Compile error

Wed May 02, 2018 11:04 am

My first guess is that the Pi ran out of memory. Which Pi model are your using.
- Dont boot into Desktop, run the compile via console or SSH/putty.
- change your CPU/GPU memory split.

beta-tester
Posts: 1209
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

Re: GPS + PPS + NTP / Compile error

Fri May 04, 2018 7:05 am

do you really need to compile ntpd?
i was using the one o the stretch packaging and it was working with PPS out of the box. (the package of Jessie and Wheezy i had to compile by myself to get PPS working)

but because of the high requirements of ntpd to get ntp working without internetconnection i switched to chrony as ntp server/client.
see here my tiny project RPi-GPS-PPS-StratumOne

if you really want to stick to ntpd, then take a look to the commit, where i dropped ntpd support in my script...
got rid of ntpd part - completely switched to chronyd instead of ntpd as option (everything, that is marked redish is the ntpd part)
BTW: ntp-4.2.8p11.tar.gz is currently the most recent version.

topguy wrote:
Wed May 02, 2018 11:04 am
My first guess is that the Pi ran out of memory. Which Pi model are your using.
- Dont boot into Desktop, run the compile via console or SSH/putty.
- change your CPU/GPU memory split.
i don't think you run out of memory. i compiled the ntp-4.2.8p8.tar.gz (or 4.2.8pp9) in the past on a RPi1B rev.1 that has only 256MB ram in total. then it should work on a RPi3 without problems, even you setted the memory split to max RAM for the gpu.
but yes, i didn't run it on the desktop, i only installed Raspbian-Stretch-lite (console only)...
and only with make, not make -j4 (only one job at the time not 4)
{ I only give negative feedback }
RPi Model B (rev1, 256MB) & B (rev2, 512MB) & B+, RPi2B (1GB), 64GB microSDXC1 class 10, HDMI 1920x1080, keyboard-mouse-combo (wireless), PiCamera, ethernet-cable, 5V/1.2A power supply, Wifi dongle (rt5370)

Return to “Networking and servers”