fiber icon indicating copy to clipboard operation
fiber copied to clipboard

Error compiling fiber using mingw-toolkit on Windows

Open DreamLand7707 opened this issue 1 year ago • 0 comments

I use “x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0” to build boost-fiber like this: ./b2 --prefix=E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64 toolset=gcc-custom --with-fiber address-model=64 variant=release link=shared and in project-config.jam, there is

# Boost.Build Configuration 
# Automatically generated by bootstrap.bat 
 
import option ; 
 
using msvc ; 

using gcc : custom : E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/gcc.exe :
    <cc>E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/gcc.exe
    <cxx>E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/g++.exe
    <cxxflags>-O2
    <cflags>-O2 ;
 
option.set keep-going : false ; 

This is the message of gcc -v

E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/gcc.exe -v
Using built-in specs.
COLLECT_GCC=E:\x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0\mingw64\bin\gcc.exe
COLLECT_LTO_WRAPPER=E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/14.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-14.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/buildroot/x86_64-1410-posix-seh-ucrt-rt_v12-rev0/mingw64 --enable-host-shared --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --enable-libstdcxx-filesystem-ts=yes --disable-libssp --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-Builds project' --with-bugurl=https://github.com/niXman/mingw-builds LD_FOR_TARGET=/c/buildroot/x86_64-1410-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/ld.exe --with-boot-ldflags='-pipe -fno-ident -L/c/buildroot/x86_64-1410-posix-seh-ucrt-rt_v12-rev0/mingw64/opt/lib -L/c/buildroot/prerequisites/x86_64-zlib-static/lib -L/c/buildroot/prerequisites/x86_64-w64-mingw32-static/lib  -Wl,--disable-dynamicbase -static-libstdc++ -static-libgcc'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.1.0 (x86_64-posix-seh-rev0, Built by MinGW-Builds project)

This is g++ -v:

E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/g++.exe -v
Using built-in specs.
COLLECT_GCC=E:\x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0\mingw64\bin\g++.exe
COLLECT_LTO_WRAPPER=E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/14.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-14.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/buildroot/x86_64-1410-posix-seh-ucrt-rt_v12-rev0/mingw64 --enable-host-shared --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --enable-libstdcxx-filesystem-ts=yes --disable-libssp --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-Builds project' --with-bugurl=https://github.com/niXman/mingw-builds LD_FOR_TARGET=/c/buildroot/x86_64-1410-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/ld.exe --with-boot-ldflags='-pipe -fno-ident -L/c/buildroot/x86_64-1410-posix-seh-ucrt-rt_v12-rev0/mingw64/opt/lib -L/c/buildroot/prerequisites/x86_64-zlib-static/lib -L/c/buildroot/prerequisites/x86_64-w64-mingw32-static/lib  -Wl,--disable-dynamicbase -static-libstdc++ -static-libgcc'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.1.0 (x86_64-posix-seh-rev0, Built by MinGW-Builds project)

**I got error message : **

Performing configuration checks

    - default address-model    : 64-bit [1]
    - default architecture     : x86 [1]

Building the Boost C++ Libraries.


    - has std::atomic_ref      : no [2]
    - has -Wl,--no-undefined   : yes [2]
    - has statx                : no [2]
    - has statx syscall        : no [2]
    - has BCrypt API           : yes [2]
    - cxx11_rvalue_references  : yes [2]
    - cxx11_scoped_enums       : yes [2]
    - cxx11_noexcept           : yes [2]
    - cxx11_nullptr            : yes [2]
    - cxx11_defaulted_functions : yes [2]
    - cxx11_defaulted_moves    : yes [2]
    - cxx11_deleted_functions  : yes [2]
    - cxx11_function_template_default_args : yes [2]
    - cxx11_final              : yes [2]
    - cxx11_override           : yes [2]
    - has init_priority attribute : yes [2]
    - has stat::st_blksize     : no [2]
    - has stat::st_mtim        : no [2]
    - has stat::st_mtimensec   : no [2]
    - has stat::st_mtimespec   : no [2]
    - has stat::st_birthtim    : no [2]
    - has stat::st_birthtimensec : no [2]
    - has stat::st_birthtimespec : no [2]
    - has fdopendir(O_NOFOLLOW) : no [2]
    - has dirent::d_type       : no [2]
    - has POSIX *at APIs       : no [2]
    - has fallocate            : no [2]
    - compiler supports SSE2   : yes [2]
    - compiler supports SSE4.1 : yes [2]
    - cxx11_static_assert      : yes [2]
    - has synchronization.lib  : yes [2]
    - cxx11_auto_declarations  : yes [2]
    - cxx11_constexpr          : yes [2]
    - cxx11_hdr_mutex          : yes [2]
    - cxx11_hdr_tuple          : yes [2]
    - cxx11_lambdas            : yes [2]
    - cxx11_template_aliases   : yes [2]
    - cxx11_thread_local       : yes [2]
    - cxx11_variadic_templates : yes [2]

[1] gcc-custom
[2] gcc-custom/release/x86_64/python-3.12/threadapi-win32/threading-multi/visibility-hidden

Component configuration:

    - atomic                   : not building
    - charconv                 : not building
    - chrono                   : not building
    - cobalt                   : not building
    - container                : not building
    - context                  : not building
    - contract                 : not building
    - coroutine                : not building
    - date_time                : not building
    - exception                : not building
    - fiber                    : building
    - filesystem               : not building
    - graph                    : not building
    - graph_parallel           : not building
    - headers                  : not building
    - iostreams                : not building
    - json                     : not building
    - locale                   : not building
    - log                      : not building
    - math                     : not building
    - mpi                      : not building
    - nowide                   : not building
    - process                  : not building
    - program_options          : not building
    - python                   : not building
    - random                   : not building
    - regex                    : not building
    - serialization            : not building
    - stacktrace               : not building
    - system                   : not building
    - test                     : not building
    - thread                   : not building
    - timer                    : not building
    - type_erasure             : not building
    - url                      : not building
    - wave                     : not building
    - predef                   : not building

...patience...
...found 1472 targets...
...updating 23 targets...
gcc.link.dll bin.v2\libs\atomic\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\libboost_atomic-mgw-mt-x64-1_86.dll
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/lock_pool.o:lock_pool.cpp:(.text+0x106): undefined reference to `operator delete(void*, unsigned long long)'
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/lock_pool.o:lock_pool.cpp:(.text+0x2dd): undefined reference to `operator new(unsigned long long, std::nothrow_t const&)'
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/lock_pool.o:lock_pool.cpp:(.text+0x457): undefined reference to `__cxa_throw_bad_array_new_length'
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/lock_pool.o:lock_pool.cpp:(.text+0x50e): undefined reference to `operator delete(void*, unsigned long long)'
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/lock_pool.o:lock_pool.cpp:(.xdata+0x20): undefined reference to `__gxx_personality_seh0'
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/lock_pool.o:lock_pool.cpp:(.xdata+0x30): undefined reference to `__gxx_personality_seh0'
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/lock_pool.o:lock_pool.cpp:(.xdata+0x40): undefined reference to `__gxx_personality_seh0'
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/lock_pool.o:lock_pool.cpp:(.xdata+0x50): undefined reference to `__gxx_personality_seh0'
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/lock_pool.o:lock_pool.cpp:(.xdata+0x70): undefined reference to `__gxx_personality_seh0'
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/lock_pool.o:lock_pool.cpp:(.xdata+0x88): more undefined references to `__gxx_personality_seh0' follow
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/lock_pool.o:lock_pool.cpp:(.rdata$.refptr._ZSt7nothrow[.refptr._ZSt7nothrow]+0x0): undefined reference to `std::nothrow'
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/wait_on_address.o:wait_on_address.cpp:(.xdata+0x10): undefined reference to `__gxx_personality_seh0'
collect2.exe: error: ld returned 1 exit status

    "E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/gcc.exe"   -Wl,--out-implib,"bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/libboost_atomic-mgw-mt-x64-1_86.dll.a" -o "bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/libboost_atomic-mgw-mt-x64-1_86.dll"  -shared -Wl,--start-group "bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/lock_pool.o" "bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/find_address_sse2.o" "bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/find_address_sse41.o" "bin.v2/libs/atomic/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/wait_on_address.o"  -Wl,-Bstatic  -Wl,-Bdynamic  -Wl,--end-group -m64 -fvisibility=hidden -fvisibility-inlines-hidden -lkernel32

...failed gcc.link.dll bin.v2\libs\atomic\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\libboost_atomic-mgw-mt-x64-1_86.dll bin.v2\libs\atomic\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\libboost_atomic-mgw-mt-x64-1_86.dll.a...
...removing bin.v2\libs\atomic\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\libboost_atomic-mgw-mt-x64-1_86.dll.a
...skipped <pD:\library\boost_1_86_0\stage\lib>libboost_atomic-mgw-mt-x64-1_86.dll.a for lack of <pbin.v2\libs\atomic\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_atomic-mgw-mt-x64-1_86.dll.a...
...skipped <pbin.v2\libs\filesystem\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_filesystem-mgw-mt-x64-1_86.dll.a for lack of <pbin.v2\libs\atomic\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_atomic-mgw-mt-x64-1_86.dll.a...
...skipped <pD:\library\boost_1_86_0\stage\lib>libboost_filesystem-mgw-mt-x64-1_86.dll.a for lack of <pbin.v2\libs\filesystem\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_filesystem-mgw-mt-x64-1_86.dll.a...
...skipped <pbin.v2\libs\filesystem\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_filesystem-mgw-mt-x64-1_86.dll for lack of <pbin.v2\libs\atomic\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_atomic-mgw-mt-x64-1_86.dll.a...
...skipped <pD:\library\boost_1_86_0\stage\lib>libboost_filesystem-mgw-mt-x64-1_86.dll for lack of <pbin.v2\libs\filesystem\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_filesystem-mgw-mt-x64-1_86.dll...
...skipped <pD:\library\boost_1_86_0\stage\lib>libboost_atomic-mgw-mt-x64-1_86.dll for lack of <pbin.v2\libs\atomic\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_atomic-mgw-mt-x64-1_86.dll...
gcc.link.dll bin.v2\libs\context\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\libboost_context-mgw-mt-x64-1_86.dll
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/context/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/windows/stack_traits.o:stack_traits.c:(.text+0x3b): undefined reference to `__cxa_guard_acquire'
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/context/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/windows/stack_traits.o:stack_traits.c:(.text+0x5d): undefined reference to `__cxa_guard_release'
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin.v2/libs/context/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/windows/stack_traits.o:stack_traits.c:(.xdata+0xc): undefined reference to `__gxx_personality_seh0'
collect2.exe: error: ld returned 1 exit status

    "E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/gcc.exe"   -Wl,--out-implib,"bin.v2/libs/context/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/libboost_context-mgw-mt-x64-1_86.dll.a" -o "bin.v2/libs/context/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/libboost_context-mgw-mt-x64-1_86.dll"  -shared -Wl,--start-group "bin.v2/libs/context/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/asm/make_x86_64_ms_pe_gas.o" "bin.v2/libs/context/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/asm/jump_x86_64_ms_pe_gas.o" "bin.v2/libs/context/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/asm/ontop_x86_64_ms_pe_gas.o" "bin.v2/libs/context/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/dummy.o" "bin.v2/libs/context/build/gcc-custom/release/x86_64/threadapi-win32/threading-multi/visibility-hidden/windows/stack_traits.o"  -Wl,-Bstatic  -Wl,-Bdynamic  -Wl,--end-group -m64 -fvisibility=hidden -fvisibility-inlines-hidden

...failed gcc.link.dll bin.v2\libs\context\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\libboost_context-mgw-mt-x64-1_86.dll bin.v2\libs\context\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\libboost_context-mgw-mt-x64-1_86.dll.a...
...removing bin.v2\libs\context\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\libboost_context-mgw-mt-x64-1_86.dll.a
...skipped <pD:\library\boost_1_86_0\stage\lib>libboost_context-mgw-mt-x64-1_86.dll.a for lack of <pbin.v2\libs\context\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_context-mgw-mt-x64-1_86.dll.a...
...skipped <pD:\library\boost_1_86_0\stage\lib>libboost_context-mgw-mt-x64-1_86.dll for lack of <pbin.v2\libs\context\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_context-mgw-mt-x64-1_86.dll...
gcc.compile.c++ bin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\context.o
<built-in>: error: conflicting declaration of C function 'int __cxxabiv1::__cxa_thread_atexit(void (*)(), void*, void*)'
In file included from ./boost/context/detail/config.hpp:128,
                 from ./boost/context/fiber_fcontext.hpp:10,
                 from ./boost/context/fiber.hpp:12,
                 from ./boost/fiber/context.hpp:28,
                 from libs/fiber/src/context.cpp:7:
E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/14.1.0/include/c++/cxxabi.h:140:3: note: previous declaration 'int __cxxabiv1::__cxa_thread_atexit(void (*)(void*), void*, void*)'
  140 |   __cxa_thread_atexit(void (_GLIBCXX_CDTOR_CALLABI *)(void*), void*, void *) _GLIBCXX_NOTHROW;
      |   ^~~~~~~~~~~~~~~~~~~

    "E:/x86_64-14.1.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/gcc.exe"   -fvisibility-inlines-hidden -O2 -m64 -O3 -finline-functions -Wno-inline -Wall -fvisibility=hidden  -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1 -DBOOST_COBALT_USE_STD_PMR=1 -DBOOST_CONTEXT_DYN_LINK=1 -DBOOST_DISABLE_ASSERTS -DBOOST_FIBERS_DYN_LINK=1 -DBOOST_FIBERS_SOURCE -DBOOST_FILESYSTEM_DYN_LINK=1 -DNDEBUG -D_WIN32_WINNT=0x0601   -I"."  -c -o "bin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\context.o" "libs/fiber/src/context.cpp"

...failed gcc.compile.c++ bin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\context.o...
...skipped <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_fiber-mgw-mt-x64-1_86.dll.a for lack of <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>context.o...
...skipped <pD:\library\boost_1_86_0\stage\lib>libboost_fiber-mgw-mt-x64-1_86.dll.a for lack of <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_fiber-mgw-mt-x64-1_86.dll.a...
...skipped <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_fiber-variant-mgw-mt-x64-1_86-shared.cmake for lack of <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_fiber-mgw-mt-x64-1_86.dll.a...
...skipped <pD:\library\boost_1_86_0\stage\lib\cmake\boost_fiber-1.86.0>libboost_fiber-variant-mgw-mt-x64-1_86-shared.cmake for lack of <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_fiber-variant-mgw-mt-x64-1_86-shared.cmake...
...skipped <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_fiber-mgw-mt-x64-1_86.dll for lack of <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>context.o...
...skipped <pD:\library\boost_1_86_0\stage\lib>libboost_fiber-mgw-mt-x64-1_86.dll for lack of <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_fiber-mgw-mt-x64-1_86.dll...
...skipped <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>stage\boost_fiber-config.cmake for lack of <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_fiber-mgw-mt-x64-1_86.dll...
...skipped <pD:\library\boost_1_86_0\stage\lib\cmake\boost_fiber-1.86.0>boost_fiber-config.cmake for lack of <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>stage\boost_fiber-config.cmake...
...skipped <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>stage\boost_fiber-config-version.cmake for lack of <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_fiber-mgw-mt-x64-1_86.dll...
...skipped <pD:\library\boost_1_86_0\stage\lib\cmake\boost_fiber-1.86.0>boost_fiber-config-version.cmake for lack of <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>stage\boost_fiber-config-version.cmake...

...skipped 18 targets...
   <pD:\library\boost_1_86_0\stage\lib>libboost_atomic-mgw-mt-x64-1_86.dll
   <pD:\library\boost_1_86_0\stage\lib>libboost_atomic-mgw-mt-x64-1_86.dll.a
   <pD:\library\boost_1_86_0\stage\lib>libboost_context-mgw-mt-x64-1_86.dll
   <pD:\library\boost_1_86_0\stage\lib>libboost_context-mgw-mt-x64-1_86.dll.a
   <pD:\library\boost_1_86_0\stage\lib>libboost_fiber-mgw-mt-x64-1_86.dll
   <pD:\library\boost_1_86_0\stage\lib>libboost_fiber-mgw-mt-x64-1_86.dll.a
   <pD:\library\boost_1_86_0\stage\lib>libboost_filesystem-mgw-mt-x64-1_86.dll
   <pD:\library\boost_1_86_0\stage\lib>libboost_filesystem-mgw-mt-x64-1_86.dll.a
   <pD:\library\boost_1_86_0\stage\lib\cmake\boost_fiber-1.86.0>boost_fiber-config-version.cmake
   <pD:\library\boost_1_86_0\stage\lib\cmake\boost_fiber-1.86.0>boost_fiber-config.cmake
   <pD:\library\boost_1_86_0\stage\lib\cmake\boost_fiber-1.86.0>libboost_fiber-variant-mgw-mt-x64-1_86-shared.cmake
   <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_fiber-mgw-mt-x64-1_86.dll
   <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_fiber-mgw-mt-x64-1_86.dll.a
   <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_fiber-variant-mgw-mt-x64-1_86-shared.cmake
   <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>stage\boost_fiber-config-version.cmake
   <pbin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>stage\boost_fiber-config.cmake
   <pbin.v2\libs\filesystem\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_filesystem-mgw-mt-x64-1_86.dll
   <pbin.v2\libs\filesystem\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden>libboost_filesystem-mgw-mt-x64-1_86.dll.a

...failed updating 3 targets...
   gcc.compile.c++ bin.v2\libs\fiber\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\context.o
   gcc.link.dll bin.v2\libs\atomic\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\libboost_atomic-mgw-mt-x64-1_86.dll bin.v2\libs\atomic\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\libboost_atomic-mgw-mt-x64-1_86.dll.a
   gcc.link.dll bin.v2\libs\context\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\libboost_context-mgw-mt-x64-1_86.dll bin.v2\libs\context\build\gcc-custom\release\x86_64\threadapi-win32\threading-multi\visibility-hidden\libboost_context-mgw-mt-x64-1_86.dll.a

Does this mean I need to add some compile options to make this work?

DreamLand7707 avatar Oct 21 '24 19:10 DreamLand7707