From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 783363858C27; Thu, 5 Nov 2020 14:00:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 783363858C27 From: "markus.boeck02 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/97729] [11 Regression] Link failure due to basic_stringbuf and others when building DLL on MinGW Date: Thu, 05 Nov 2020 14:00:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: markus.boeck02 at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2020 14:00:54 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97729 --- Comment #2 from Markus B=C3=B6ck --- Created attachment 49507 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49507&action=3Dedit config.h Applied the patch and it fixed the issue regarding the undefined references. Still getting the multiple definitions of exception_ptr: /mnt/c/GCC-Build/NewestLinux/bin/x86_64-w64-mingw32-ld: ../libsupc++/.libs/libsupc++convenience.a(nested_exception.o): in function `std::__exception_ptr::exception_ptr::~exception_ptr()': C:/GCC-Build-Array/gcc/build-host-x86_64/x86_64-w64-mingw32/libstdc++-v3/li= bsupc++/C:/GCC-Build-Array/gcc/build-host-x86_64/x86_64-w64-mingw32/libstdc= ++-v3/include/bits/exception_ptr.h:194: multiple definition of `std::__exception_ptr::exception_ptr::~exception_ptr= ()'; ../libsupc++/.libs/libsupc++convenience.a(eh_ptr.o):C:/GCC-Build-Array/gcc/= build-host-x86_64/x86_64-w64-mingw32/libstdc++-v3/libsupc++/C:/GCC-Build-Ar= ray/gcc/build-host-x86_64/x86_64-w64-mingw32/libstdc++-v3/include/bits/exce= ption_ptr.h:194: first defined here /mnt/c/GCC-Build/NewestLinux/bin/x86_64-w64-mingw32-ld: ../src/c++11/.libs/libc++11convenience.a(future.o): in function `std::__exception_ptr::exception_ptr::exception_ptr()': C:/GCC-Build-Array/gcc/build-host-x86_64/x86_64-w64-mingw32/libstdc++-v3/sr= c/c++11/C:/GCC-Build-Array/gcc/build-host-x86_64/x86_64-w64-mingw32/libstdc= ++-v3/include/bits/std_mutex.h:105: multiple definition of `std::__exception_ptr::exception_ptr::exception_ptr(= )'; ../libsupc++/.libs/libsupc++convenience.a(eh_ptr.o):C:/GCC-Build-Array/gcc/= build-host-x86_64/x86_64-w64-mingw32/libstdc++-v3/libsupc++/C:/GCC-Build-Ar= ray/gcc/build-host-x86_64/x86_64-w64-mingw32/libstdc++-v3/include/bits/exce= ption_ptr.h:176: first defined here I am using a cross compiler setup (though in WSL 1) as well so I'd be curio= us what leads to the differences in reproducability as this is not the first t= ime this has happened. I'll attach my config.h if that helps. The MinGW version= I use is current trunk.=