debug build: epee-related build error on macOS M1
I am trying to build the source tagged `v0.18.3.4` on a MacBook Air M1 running macOS 14.6.1 (23G93).

I installed dependencies using Homebrew as per the README. All dependencies are up-to-date as of today.

My command: `make debug`

The error:

```
[ 32%] Building CXX object contrib/epee/src/CMakeFiles/obj_epee_readline.dir/readline_buffer.cpp.o
[ 32%] Built target obj_epee_readline
[ 33%] Linking CXX shared library libepee_readline.dylib
ld: warning: -undefined error is deprecated
Undefined symbols for architecture arm64:
  "epee::string_tools::trim_right(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>&)", referenced from:
      handle_line(char*) in readline_buffer.cpp.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [contrib/epee/src/libepee_readline.dylib] Error 1
make[2]: *** [contrib/epee/src/CMakeFiles/epee_readline.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [debug] Error 2
```

The same error also occurs when building using dependencies provided by Nix (unstable channel) instead of Homebrew.

I am attaching the full build log:
[build.log](https://github.com/user-attachments/files/17007333/build.log)