Failed to build O2Physics for boost on Mac Sonoma

Dear expert,

I’m trying to build O2Physics on macOS Sonoma (M1 Pro) with 15.4 Xcode, but it failed when boost is built.
You can see the error message below, and I also attached the full log.

Thanks in advance,
Jinjoo

ld: warning: -single_module is obsolete
ld: warning: -single_module is obsolete
Undefined symbols for architecture arm64:
“std::exception_ptr::__from_native_exception_pointer(void*)”, referenced from:
boost::asio::detail::thread_info_base::capture_current_exception() in syslog_backend.o
“___cxa_init_primary_exception”, referenced from:
boost::asio::detail::thread_info_base::capture_current_exception() in syslog_backend.o
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
…failed clang-darwin.link.dll build-boost/boost/bin.v2/libs/log/build/clang-darwin-18/release/cxxstd-17-iso/threading-multi/visibility-hidden/libboost_log.dylib…
…skipped <p/Users/jseo/alice/sw/INSTALLROOT/251abe61bad02ba5246102e2daafce734df395e4/osx_arm64/boost/v1.83.0-alice2-local1/lib>libboost_log.dylib for lack of <pbuild-boost/boost/bin.v2/libs/log/build/clang-darwin-18/release/cxxstd-17-iso/threading-multi/visibility-hidden>libboost_log.dylib…
clang-darwin.compile.c++ build-boost/boost/bin.v2/libs/log/build/clang-darwin-18/release/cxxstd-17-iso/threading-multi/visibility-hidden/setup/settings_parser.o

log.txt (622.7 KB)

I resolved this issue following this solution: