Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cygwin: #error "Boost.Stacktrace requires _Unwind_Backtrace function. #88

Open
andry81 opened this issue Feb 20, 2020 · 4 comments
Open

Comments

@andry81
Copy link

andry81 commented Feb 20, 2020

Boost: 1.72.0
OS: Windows 7 x64, cygwin dll 3.1.2
Compiler: cygwin/gcc 7.4.0

PATH: "C:/Windows/system32"
PATH: "C:/Windows"
PATH: "C:/Windows/system32/Wbem"
PATH: "c:/cygwin/3.0.x/bin"
PATH: "c:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/bin"
>pushd "d:/_3dparty/cygwin_gcc_x86/utility/boost/boost_1_72_0-build"
>"d:/_3dparty/_src/utility/boost/boost_1_72_0/b2.exe" "-sBOOST_ROOT=d:/_3dparty/_src/utility/boost/boost_1_72_0"  variant=release,debug toolset=gcc architecture=x86 address-model=32 link=shared runtime-link=shared threading=multi debug-symbols=on "--build-dir=__build-cygwin_gcc-32" stage
Performing configuration checks

    - default address-model    : 32-bit
    - default architecture     : x86
    - default address-model    : 32-bit
    - default architecture     : x86
    - C++11 mutex              : yes
    - lockfree boost::atomic_flag : yes
    - Boost.Config Feature Check: cxx11_auto_declarations : yes
    - Boost.Config Feature Check: cxx11_constexpr : yes
    - Boost.Config Feature Check: cxx11_defaulted_functions : yes
    - Boost.Config Feature Check: cxx11_final : yes
    - Boost.Config Feature Check: cxx11_hdr_mutex : yes
    - Boost.Config Feature Check: cxx11_hdr_tuple : yes
    - Boost.Config Feature Check: cxx11_lambdas : yes
    - Boost.Config Feature Check: cxx11_noexcept : yes
    - Boost.Config Feature Check: cxx11_nullptr : yes
    - Boost.Config Feature Check: cxx11_rvalue_references : yes
    - Boost.Config Feature Check: cxx11_template_aliases : yes
    - Boost.Config Feature Check: cxx11_thread_local : yes
    - Boost.Config Feature Check: cxx11_variadic_templates : yes
    - has_icu builds           : no
...
gcc.compile.c++ __build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden\windbg_cached.o
In file included from ./boost/stacktrace/safe_dump_to.hpp:217:0,
                 from ./boost/stacktrace/frame.hpp:20,
                 from ./boost/stacktrace/detail/frame_msvc.ipp:15,
                 from libs\stacktrace\build\..\src\windbg_cached.cpp:10:
./boost/stacktrace/detail/collect_unwind.ipp:33:2: error: #error "Boost.Stacktrace requires `_Unwind_Backtrace` function. Define `_GNU_SOURCE` macro or `BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED` if _Unwind_Backtrace is available without `_GNU_SOURCE`."
 #error "Boost.Stacktrace requires `_Unwind_Backtrace` function. Define `_GNU_SOURCE` macro or `BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED` if _Unwind_Backtrace is available without `_GNU_SOURCE`."
  ^~~~~

    "g++"   -fvisibility-inlines-hidden -m32 -mthreads -O3 -finline-functions -Wno-inline -Wall -g -fvisibility=hidden -march=i686  -DBOOST_ALL_NO_LIB=1 -DBOOST_STACKTRACE_DYN_LINK=1 -DNDEBUG  -I"." -c -o "__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden\windbg_cached.o" "libs\stacktrace\build\..\src\windbg_cached.cpp"

...failed gcc.compile.c++ __build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden\windbg_cached.o...
...skipped <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg_cached-gcc7-mt-x32-1_72.dll.a for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>windbg_cached.o...
...skipped <pD:\_3dparty\cygwin_gcc_x86\utility\boost\boost_1_72_0-build\stage\lib>libboost_stacktrace_windbg_cached-gcc7-mt-x32-1_72.dll.a for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg_cached-gcc7-mt-x32-1_72.dll.a...
...skipped <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg_cached-variant-gcc7-mt-x32-1_72-shared.cmake for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg_cached-gcc7-mt-x32-1_72.dll.a...
...skipped <pD:\_3dparty\cygwin_gcc_x86\utility\boost\boost_1_72_0-build\stage\lib\cmake\boost_stacktrace_windbg_cached-1.72.0>libboost_stacktrace_windbg_cached-variant-gcc7-mt-x32-1_72-shared.cmake for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg_cached-variant-gcc7-mt-x32-1_72-shared.cmake...
...skipped <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>cygboost_stacktrace_windbg_cached-gcc7-mt-x32-1_72.dll for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>windbg_cached.o...
...skipped <pD:\_3dparty\cygwin_gcc_x86\utility\boost\boost_1_72_0-build\stage\lib>cygboost_stacktrace_windbg_cached-gcc7-mt-x32-1_72.dll for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>cygboost_stacktrace_windbg_cached-gcc7-mt-x32-1_72.dll...
common.copy D:\_3dparty\cygwin_gcc_x86\utility\boost\boost_1_72_0-build\stage\lib\cmake\boost_locale-1.72.0\libboost_locale-variant-gcc7-mt-x32-1_72-shared.cmake
__build-cygwin_gcc-32\boost\bin.v2\libs\locale\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden\libboost_locale-variant-gcc7-mt-x32-1_72-shared.cmake
Скопировано файлов:         1.
gcc.compile.c++ __build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden\windbg.o
In file included from ./boost/stacktrace/safe_dump_to.hpp:217:0,
                 from ./boost/stacktrace/frame.hpp:20,
                 from ./boost/stacktrace/detail/frame_msvc.ipp:15,
                 from libs\stacktrace\build\..\src\windbg.cpp:9:
./boost/stacktrace/detail/collect_unwind.ipp:33:2: error: #error "Boost.Stacktrace requires `_Unwind_Backtrace` function. Define `_GNU_SOURCE` macro or `BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED` if _Unwind_Backtrace is available without `_GNU_SOURCE`."
 #error "Boost.Stacktrace requires `_Unwind_Backtrace` function. Define `_GNU_SOURCE` macro or `BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED` if _Unwind_Backtrace is available without `_GNU_SOURCE`."
  ^~~~~

    "g++"   -fvisibility-inlines-hidden -m32 -mthreads -O3 -finline-functions -Wno-inline -Wall -g -fvisibility=hidden -march=i686  -DBOOST_ALL_NO_LIB=1 -DBOOST_STACKTRACE_DYN_LINK=1 -DNDEBUG  -I"." -c -o "__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden\windbg.o" "libs\stacktrace\build\..\src\windbg.cpp"

...failed gcc.compile.c++ __build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden\windbg.o...
...skipped <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg-gcc7-mt-x32-1_72.dll.a for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>windbg.o...
...skipped <pD:\_3dparty\cygwin_gcc_x86\utility\boost\boost_1_72_0-build\stage\lib>libboost_stacktrace_windbg-gcc7-mt-x32-1_72.dll.a for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg-gcc7-mt-x32-1_72.dll.a...
...skipped <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg-variant-gcc7-mt-x32-1_72-shared.cmake for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg-gcc7-mt-x32-1_72.dll.a...
...skipped <pD:\_3dparty\cygwin_gcc_x86\utility\boost\boost_1_72_0-build\stage\lib\cmake\boost_stacktrace_windbg-1.72.0>libboost_stacktrace_windbg-variant-gcc7-mt-x32-1_72-shared.cmake for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg-variant-gcc7-mt-x32-1_72-shared.cmake...
...skipped <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>cygboost_stacktrace_windbg-gcc7-mt-x32-1_72.dll for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>windbg.o...
...skipped <pD:\_3dparty\cygwin_gcc_x86\utility\boost\boost_1_72_0-build\stage\lib>cygboost_stacktrace_windbg-gcc7-mt-x32-1_72.dll for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\release\debug-symbols-on\target-os-cygwin\threading-multi\visibility-hidden>cygboost_stacktrace_windbg-gcc7-mt-x32-1_72.dll...
gcc.compile.c++ __build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden\windbg.o
In file included from ./boost/stacktrace/safe_dump_to.hpp:217:0,
                 from ./boost/stacktrace/frame.hpp:20,
                 from ./boost/stacktrace/detail/frame_msvc.ipp:15,
                 from libs\stacktrace\build\..\src\windbg.cpp:9:
./boost/stacktrace/detail/collect_unwind.ipp:33:2: error: #error "Boost.Stacktrace requires `_Unwind_Backtrace` function. Define `_GNU_SOURCE` macro or `BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED` if _Unwind_Backtrace is available without `_GNU_SOURCE`."
 #error "Boost.Stacktrace requires `_Unwind_Backtrace` function. Define `_GNU_SOURCE` macro or `BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED` if _Unwind_Backtrace is available without `_GNU_SOURCE`."
  ^~~~~

    "g++"   -fvisibility-inlines-hidden -m32 -mthreads -O0 -fno-inline -Wall -g -fvisibility=hidden -march=i686  -DBOOST_ALL_NO_LIB=1 -DBOOST_STACKTRACE_DYN_LINK=1  -I"." -c -o "__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden\windbg.o" "libs\stacktrace\build\..\src\windbg.cpp"

...failed gcc.compile.c++ __build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden\windbg.o...
...skipped <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg-gcc7-mt-d-x32-1_72.dll.a for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>windbg.o...
...skipped <pD:\_3dparty\cygwin_gcc_x86\utility\boost\boost_1_72_0-build\stage\lib>libboost_stacktrace_windbg-gcc7-mt-d-x32-1_72.dll.a for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg-gcc7-mt-d-x32-1_72.dll.a...
...skipped <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg-variant-gcc7-mt-d-x32-1_72-shared.cmake for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg-gcc7-mt-d-x32-1_72.dll.a...
...skipped <pD:\_3dparty\cygwin_gcc_x86\utility\boost\boost_1_72_0-build\stage\lib\cmake\boost_stacktrace_windbg-1.72.0>libboost_stacktrace_windbg-variant-gcc7-mt-d-x32-1_72-shared.cmake for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg-variant-gcc7-mt-d-x32-1_72-shared.cmake...
...skipped <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>cygboost_stacktrace_windbg-gcc7-mt-d-x32-1_72.dll for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>windbg.o...
...skipped <pD:\_3dparty\cygwin_gcc_x86\utility\boost\boost_1_72_0-build\stage\lib>cygboost_stacktrace_windbg-gcc7-mt-d-x32-1_72.dll for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>cygboost_stacktrace_windbg-gcc7-mt-d-x32-1_72.dll...
gcc.compile.c++ __build-cygwin_gcc-32\boost\bin.v2\libs\serialization\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden\xml_grammar.o
gcc.compile.c++ __build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden\windbg_cached.o
In file included from ./boost/stacktrace/safe_dump_to.hpp:217:0,
                 from ./boost/stacktrace/frame.hpp:20,
                 from ./boost/stacktrace/detail/frame_msvc.ipp:15,
                 from libs\stacktrace\build\..\src\windbg_cached.cpp:10:
./boost/stacktrace/detail/collect_unwind.ipp:33:2: error: #error "Boost.Stacktrace requires `_Unwind_Backtrace` function. Define `_GNU_SOURCE` macro or `BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED` if _Unwind_Backtrace is available without `_GNU_SOURCE`."
 #error "Boost.Stacktrace requires `_Unwind_Backtrace` function. Define `_GNU_SOURCE` macro or `BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED` if _Unwind_Backtrace is available without `_GNU_SOURCE`."
  ^~~~~

    "g++"   -fvisibility-inlines-hidden -m32 -mthreads -O0 -fno-inline -Wall -g -fvisibility=hidden -march=i686  -DBOOST_ALL_NO_LIB=1 -DBOOST_STACKTRACE_DYN_LINK=1  -I"." -c -o "__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden\windbg_cached.o" "libs\stacktrace\build\..\src\windbg_cached.cpp"

...failed gcc.compile.c++ __build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden\windbg_cached.o...
...skipped <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg_cached-gcc7-mt-d-x32-1_72.dll.a for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>windbg_cached.o...
...skipped <pD:\_3dparty\cygwin_gcc_x86\utility\boost\boost_1_72_0-build\stage\lib>libboost_stacktrace_windbg_cached-gcc7-mt-d-x32-1_72.dll.a for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg_cached-gcc7-mt-d-x32-1_72.dll.a...
...skipped <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg_cached-variant-gcc7-mt-d-x32-1_72-shared.cmake for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg_cached-gcc7-mt-d-x32-1_72.dll.a...
...skipped <pD:\_3dparty\cygwin_gcc_x86\utility\boost\boost_1_72_0-build\stage\lib\cmake\boost_stacktrace_windbg_cached-1.72.0>libboost_stacktrace_windbg_cached-variant-gcc7-mt-d-x32-1_72-shared.cmake for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>libboost_stacktrace_windbg_cached-variant-gcc7-mt-d-x32-1_72-shared.cmake...
...skipped <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>cygboost_stacktrace_windbg_cached-gcc7-mt-d-x32-1_72.dll for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>windbg_cached.o...
...skipped <pD:\_3dparty\cygwin_gcc_x86\utility\boost\boost_1_72_0-build\stage\lib>cygboost_stacktrace_windbg_cached-gcc7-mt-d-x32-1_72.dll for lack of <p__build-cygwin_gcc-32\boost\bin.v2\libs\stacktrace\build\gcc-7.4.0\debug\target-os-cygwin\threading-multi\visibility-hidden>cygboost_stacktrace_windbg_cached-gcc7-mt-d-x32-1_72.dll...

All other libraries builds without errors.

@apolukhin
Copy link
Member

Have you tried defining _GNU_SOURCE ?

@andry81
Copy link
Author

andry81 commented Feb 20, 2020

Have you tried defining _GNU_SOURCE ?

I don't build specifically this library, I just wanted to build the boost library as a whole. And I think it's should be built without errors by default without any macroses for a specific library, so I reported the issue.

@RamakrishnanOSS
Copy link

Have you tried defining _GNU_SOURCE ?

I had the same problem. I did tried with -D_GNU_SOURCE=1 it did worked. But what could be the root cause of this _GNU_SOURCE is not enabled ?

May be Cygwin support can be added to stacktrace lib itself.
Thanks.

killerwife referenced this issue in cmangos/mangos-tbc Jan 5, 2021
cala added a commit to cmangos/mangos-classic that referenced this issue Jan 9, 2021
* Work around an issue in boost/stacktrace that occurs only on macOS and was preventing building the core. Thanks @killerwife for researching it. See:
boostorg/stacktrace#88
https://github.com/precice/precice/pull/877/files#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aR298
cala added a commit to cmangos/mangos-tbc that referenced this issue Jan 9, 2021
* Work around an issue in boost/stacktrace that occurs only on macOS and was preventing building the core. Thanks @killerwife for researching it. See:
boostorg/stacktrace#88
https://github.com/precice/precice/pull/877/files#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aR298
cala added a commit to cmangos/mangos-wotlk that referenced this issue Jan 9, 2021
* Work around an issue in boost/stacktrace that occurs only on macOS and was preventing building the core. Thanks @killerwife for researching it. See:
boostorg/stacktrace#88
https://github.com/precice/precice/pull/877/files#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aR298
@pdimov
Copy link
Member

pdimov commented Jun 1, 2021

backtrace.cpp defines _GNU_SOURCE:

#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif

but windbg.cpp and windbg_cached.cpp do not. It's possible to define this from the outside, e.g. in the build system, but it would probably be more consistent to define it in the source files, at least when __CYGWIN__ is defined, to match what backtrace.cpp does.

Warlockbugs pushed a commit to Warlockbugs/cmangos-authserver that referenced this issue Jun 1, 2021
* Work around an issue in boost/stacktrace that occurs only on macOS and was preventing building the core. Thanks @killerwife for researching it. See:
boostorg/stacktrace#88
https://github.com/precice/precice/pull/877/files#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aR298
simogasp added a commit to alicevision/CCTag that referenced this issue Oct 7, 2022
simogasp added a commit to alicevision/CCTag that referenced this issue Oct 9, 2022
bharathr98 added a commit to bharathr98/sdpb that referenced this issue Mar 7, 2024
Avoids issue with boost/stacktrace when building on macOS. See boostorg/stacktrace#88 and comments therein.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants