openembedded / meta-openembedded

MIT License
415 stars 712 forks source link

Issues running ntpsec on kirkstone #561

Open marcospanghero opened 2 years ago

marcospanghero commented 2 years ago

Hi, seems to be that the ntpsec meta layer builds fine but does not run as expected. Once the process is started, even in command line, ntpd hangs right after locking in RAM and never proceeds.

root@cyclone5:~# ntpd -d 5 -D 5 -n 2022-04-04T16:16:22 ntpd[467]: INIT: ntpd ntpsec-1.2.1: Starting 2022-04-04T16:16:22 ntpd[467]: INIT: Command line: ntpd -d 9 -D 9 -n 2022-04-04T16:16:22 ntpd[467]: INIT: precision = 2.050 usec (-19) 2022-04-04T16:16:22 ntpd[467]: INIT: successfully locked into RAM

I am working on a de0-nano-soc fpga, but that seems not to be the issue. All other features seem to be building fine.

Any idea?

marcospanghero commented 2 years ago

So, I found my own answer. The issue apparently come from building with seccomp enabled. This seems to be a know bug with glibc. One quick fix is to disable seccomp, but probably a better patch is needed

kraj commented 2 years ago

Usually this just means some syscall is filtered