You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building boost 1.85.0 on macOS with GCC, we get a compilation error as follows:
libs/stacktrace/build/../src/from_exception.cpp:29:2: error: #error On this platform memory leaks are possible if capturing stacktrace from exceptions is enabled and exceptions are thrown concurrently and libc++ runtime is used. Define `BOOST_STACKTRACE_LIBCXX_RUNTIME_MAY_CAUSE_MEMORY_LEAK` to suppress this error if the library would not be used with libc++ runtime (for example, it would be only used with GCC runtime). Otherwise, disable the boost_stacktrace_from_exception library build (for example by `./b2 boost.stacktrace.from_exception=off` option).
29 | #error On this platform memory leaks are possible if capturing stacktrace from \
| ^~~~~
...failed updating 1 target...
Note that the Conan recipe will define this symbol, according to the following logic in the recipe:
if self._stacktrace_from_exception_available and is_apple_os(self) and str(self.settings.compiler.libcxx) == "libc++":
To me this seems backwards: the memory leak exists only in the libc++ runtime, hence if anything we should define the symbol (and hence allow compilation) only if we are not using that runtime. As it stands we can only compile against the problematic runtime.
Description
Building boost 1.85.0 on macOS with GCC, we get a compilation error as follows:
Note that the Conan recipe will define this symbol, according to the following logic in the recipe:
To me this seems backwards: the memory leak exists only in the libc++ runtime, hence if anything we should define the symbol (and hence allow compilation) only if we are not using that runtime. As it stands we can only compile against the problematic runtime.
Package and Environment Details
Conan profile
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=23
compiler.libcxx=libstdc++11
compiler.version=13.2
os=Macos
[buildenv]
CC=/opt/homebrew/bin/gcc-13
CXX=/opt/homebrew/bin/g++-13
Steps to reproduce
conan install . --output-folder=build.dbg --build=missing --profile gcc13
Logs
Click to expand log
The text was updated successfully, but these errors were encountered: