Problem solved. I didn't delete MSYS2 gcc's libraries and it was these libraries that were linked rather than mingwbuilds' libraries. However, even GCC itself does not ask for libgcc_s_dw2, the libgomp DLL from MSYS2 packages still asks for it, as well as other packages. Hence the DLL must not be removed.
------------------ Best regards, lh_mouse 2016-10-14 ------------------------------------------------------------- 发件人:"lhmouse"<lh_mo...@126.com> 发送日期:2016-10-14 01:21 收件人:Msys2,mingw-w64-public 抄送: 主题:[Msys2-users] Bootstrap gcc for i686 with SJLJ exception model in MSYS2 ? Today I tried bootstrapping GCC 6.2.1 using PKGBUILD modified from the MSYS2 one for gcc-git package. I changed the line https://github.com/lhmouse/MINGW-packages/blob/master/mingw-w64-gcc-git/PKGBUILD#L148 from `local _conf="--disable-sjlj-exceptions --with-dwarf2"` to `local _conf="--enable-sjlj-exceptions"`, and the 3-stage bootstrap started at the end of stage 1 with thousands of undefined references to _Unwind_* functions. I tried both MSYS2 toolchains (with DWARF) and mingw-builds toolchains (with SJLJ) and the latter failed with fewer yet the same errors. Do you have any ideas why this error happened? -------------- Best regards, lh_mouse 2016-10-14 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Msys2-users mailing list msys2-us...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/msys2-users ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public