The port is blocked at the moment by the file parser.y
```
parser.y:227:3: error: use of undeclared identifier 'locale_t'
locale_t locale = newlocale (LC_NUMERIC_MASK, "C", NULL);
```
locale_t is a POSIX-typedef define in GNU C in xlocale.h. parser.y includes locale.h that includes xlocale.h.
xlocale.h is included in locale.h if __USE_XOPEN2K8 is defined. Users are not supposed to use the __USE_XXX macros, instead one has to use _GNU_SOURCE to enable __USE_GNU and _POSIX_C_SOURCE=200809L (or greater) to enable __USE_XOPEN2K8.
clang on Mac OS doesn't use the GNU part on default. So, we need to experiment with the flags _GNU_SOURCE and/or _POSIX_C_SOURCE in CMakeLists.txt (set(_GNU_SOURCE true) , etc.).
One comment found on stackoverflow:
> When __USE_GNU is defined, __USE_XOPEN2K8 is always defined as well, unless you are explicitly defining or undefining these macros, which you must not do. Use _GNU_SOURCE, _XOPEN_SOURCE {500,600,700,...} etc. macros before including the first header instead. This is the recommended way to select the GNU feature set in glibc headers, together with defining it on the command line (-D_GNU_SOURCE).
>
> Alternatively, you can try specifying GNU extension usage to gcc through the -std command line switch (gnu89, gnu99, and so forth).