[chrony-dev] Compiling tests on macOS X

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


When compiling the tests (make check) I am getting a lot of errors related to the use of angle brackets
e.g.
bryan@number9 chronyd-pristine % make check
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C test/unit check
../util.c:21:10: error: 'util.c' file not found with <angled> include; use
      "quotes" instead
#include <util.c>
         ^~~~~~~~
         "util.c"

After many pages of this I see:

../regress.c:20:10: error: 'regress.c' file not found with <angled> include; use
      "quotes" instead
#include <regress.c>
         ^~~~~~~~~~~
         "regress.c"
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
gcc -I../..   -O2 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Wmissing-prototypes -Wall -pthread -c addrfilt.c
..
..
..


I have tried using CFLAGS=-isystem<directory> but that does not seem to help.

My compiler is:

bryan@number9 chronyd-pristine % clang --version
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Any one have any suggestions on compiler options that will work around this?

-- 
Bryan Christianson
bryan@xxxxxxxxxxxxx




--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/