# Compiling REPP on an M-series Mac

**URL:** <https://delphinqa.ling.washington.edu/t/compiling-repp-on-an-m-series-mac/1216>\
**Category:** ACE\
**Created:** [November 20, 2026, 5:30am UTC](https://delphinqa.ling.washington.edu/t/compiling-repp-on-an-m-series-mac/1216 "2026-11-20T05:30:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![isaacjs2](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@isaacjs2](https://delphinqa.ling.washington.edu/u/isaacjs2)\
**Post date:** [November 20, 2026, 5:30am UTC](https://delphinqa.ling.washington.edu/t/compiling-repp-on-an-m-series-mac/1216/1 "2026-11-20T05:30:52Z")

</div>

Hi all,

I’m having some trouble compiling ACE from source on Mac OS. For context, there was a discussion at the DELPH-IN summit this summer about the maintenance/documentation of DELPH-IN tools and one of the priorities identified was being able to compile ACE from source. I’ve started working on this, and I was able to successfully compile ACE from source in an Ubuntu 20.04 Docker container, so it’s possible that the answer here is “Linux is good enough”.

As for my actual issue, I’m getting an error while trying to compile REPP:

```auto
isaac@Isaacs-MacBook-Pro repp-0.2.2 % make all  
Making all in include
make[1]: Nothing to be done for `all'.
Making all in librepp
/bin/sh ../libtool --tag=CC --mode=compile /opt/homebrew/bin/gcc-16 -DPACKAGE_NAME=\"repp\" -DPACKAGE_TARNAME=\"repp\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"repp\ 0.2.2\" -DPACKAGE_BUGREPORT=\"sweaglesw@sweaglesw.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"repp\" -DVERSION=\"0.2.2\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LIBBOOST_REGEX=1 -DHAVE_LOCALE_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MALLOC=1 -DHAVE_REALLOC=1 -DHAVE_BZERO=1 -DHAVE_REGCOMP=1 -DHAVE_SETLOCALE=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRRCHR=1 -I. -I /opt/homebrew/include -Wall -DVERSION=\"0.2.2\" -DPROG="\"repp\"" -I../include -g -O2 -MT load_repp.lo -MD -MP -MF .deps/load_repp.Tpo -c -o load_repp.lo load_repp.c
libtool: compile: /opt/homebrew/bin/gcc-16 -DPACKAGE_NAME=\"repp\" -DPACKAGE_TARNAME=\"repp\" -DPACKAGE_VERSION=\"0.2.2\" "-DPACKAGE_STRING=\"repp 0.2.2\"" -DPACKAGE_BUGREPORT=\"sweaglesw@sweaglesw.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"repp\" -DVERSION=\"0.2.2\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LIBBOOST_REGEX=1 -DHAVE_LOCALE_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MALLOC=1 -DHAVE_REALLOC=1 -DHAVE_BZERO=1 -DHAVE_REGCOMP=1 -DHAVE_SETLOCALE=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRRCHR=1 -I. -I /opt/homebrew/include -Wall -DVERSION=\"0.2.2\" -DPROG=\"repp\" -I../include -g -O2 -MT load_repp.lo -MD -MP -MF .deps/load_repp.Tpo -c load_repp.c -fno-common -DPIC -o .libs/load_repp.o
In file included from /opt/homebrew/include/boost/regex/config.hpp:66,
                 from /opt/homebrew/include/boost/cregex.hpp:23,
                 from /opt/homebrew/include/boost/regex.h:22,
                 from load_repp.c:8:
/opt/homebrew/include/boost/assert.hpp:32:1: error: unknown type name 'namespace'
   32 | namespace boost
      | ^ ~~~~~~~~
/opt/homebrew/include/boost/assert.hpp:33:1: error: expected '=', ',', ';', 'asm' or ' __attribute__' before '{' token
   33 | {
      | ^
make[1]: *** [load_repp.lo] Error 1
make: *** [all-recursive] Error 1

```

My internet searching found that the error is coming from the fact that ‘namespace’ is a C++ (but not C) keyword, but I have not found a solution.

Other potentially relevant details:

- As the title says, I’m doing this on an M-series/Apple silicon Macbook
- When running ./configure, I’m using the flags `CC=/opt/homebrew/bin/gcc-16 LDFLAGS="-L /opt/homebrew/lib" CPPFLAGS="-I /opt/homebrew/include"` to point to homebrew’s versions of gcc (since the default gcc is actually clang, as mentioned in other posts) and the Boost Regex library

@sweaglesw do you have any thoughts?

Thanks!

---

<div class="post-metadata">

**Author:** ![sweaglesw](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@sweaglesw](https://delphinqa.ling.washington.edu/u/sweaglesw)\
**Post date:** [November 20, 2026, 8:11am UTC](https://delphinqa.ling.washington.edu/t/compiling-repp-on-an-m-series-mac/1216/2 "2026-11-20T08:11:19Z")

</div>

I ran into the same issue compiling ACE on an M2 a couple of days ago (had not tried for a few years). The problem is that Boost v5 decided they don’t care about supporting pure C callers for their boost-regex library anymore. The relevant functions are still present in the ABI, but there’s no header file available anymore that compiles with a regular C compiler. I navigated around it, but not in a way that I recommend in general: I replaced the /usr/include/boost/regex.h header with an older one that still declares the C API. That probably breaks some other entities trying to compile against it. I believe a long term solution would be to either port all the ACE-related regex calls to something else like PCRE or build some C++ glue that exposes the old boost API to compile in with ACE. I’m not at the moment about to tackle either option…
