Skip to content

i686-pc-mingw32 build fatal runtime error: Could not unwind stack, error = 5 #11138

@Cynede

Description

@Cynede
compile: i686-pc-mingw32/rt/stage1/rust_try.o
link: i686-pc-mingw32/rt/stage1/rustrt.lib
cp: i686-pc-mingw32/stage1/bin/rustc/i686-pc-mingw32/bin/rustrt.lib
compile: i686-pc-mingw32/rt/stage1/arch/i386/morestack.o
link: i686-pc-mingw32/rt/stage1/arch/i386/libmorestack.a
cp: i686-pc-mingw32/stage1/bin/rustc/i686-pc-mingw32/bin/libmorestack.a
compile_and_link: i686-pc-mingw32/stage1/bin/rustc/i686-pc-mingw32/bin/std.dll
warning: removing previous 'std-*.dll' libraries: i686-pc-mingw32/stage1/bin/rustc/i686-pc-mingw32/b
in//std-04ff901e-0.9-pre.dll
warning: removing previous 'libstd-*.rlib' libraries: i686-pc-mingw32/stage1/bin/rustc/i686-pc-mingw
32/bin//libstd-04ff901e-0.9-pre.rlib
error: linking with `gcc` failed: exit code: 1
note: gcc arguments: '-m32' '-LD:\Heather\Contrib\P\rust\i686-pc-mingw32\stage1\bin\rustc\i686-pc-mi
ngw32\bin' '-o' 'i686-pc-mingw32\stage1\bin\rustc\i686-pc-mingw32\bin\std-04ff901e-0.9-pre.dll' 'i68
6-pc-mingw32\stage1\bin\rustc\i686-pc-mingw32\bin\std.o' 'i686-pc-mingw32\stage1\bin\rustc\i686-pc-m
ingw32\bin\std.metadata.o' '-shared-libgcc' '-LD:\Heather\Contrib\P\rust\.rust' '-LD:\Heather\Contri
b\P\rust' '-lrustrt' '-shared' '-lmorestack'
note: D:\Heather\Contrib\P\rust\i686-pc-mingw32\stage1\bin\rustc\i686-pc-mingw32\bin/rustrt.lib(rust
_cxx_glue.o): In function `rust_try':
d:/Heather/Contrib/P/rust/src/rt/rust_cxx_glue.cpp:21: undefined reference to `__cxa_begin_catch'
d:/Heather/Contrib/P/rust/src/rt/rust_cxx_glue.cpp:21: undefined reference to `__cxa_end_catch'
D:\Heather\Contrib\P\rust\i686-pc-mingw32\stage1\bin\rustc\i686-pc-mingw32\bin/rustrt.lib(rust_cxx_g
lue.o): In function `rust_begin_unwind':
d:/Heather/Contrib/P/rust/src/rt/rust_cxx_glue.cpp:30: undefined reference to `__cxa_allocate_except
ion'
d:/Heather/Contrib/P/rust/src/rt/rust_cxx_glue.cpp:30: undefined reference to `typeinfo for unsigned
 int'
d:/Heather/Contrib/P/rust/src/rt/rust_cxx_glue.cpp:30: undefined reference to `__cxa_throw'
D:\Heather\Contrib\P\rust\i686-pc-mingw32\stage1\bin\rustc\i686-pc-mingw32\bin/rustrt.lib(rust_cxx_g
lue.o):rust_cxx_glue.cpp:(.gcc_except_table+0x10): undefined reference to `typeinfo for unsigned int
'
D:\Heather\Contrib\P\rust\i686-pc-mingw32\stage1\bin\rustc\i686-pc-mingw32\bin/rustrt.lib(rust_cxx_g
lue.o):rust_cxx_glue.cpp:(.eh_frame+0x13): undefined reference to `__gxx_personality_v0'
collect2.exe: error: ld returned 1 exit status

error: aborting due to previous error
task 'rustc' failed at 'explicit failure', D:\Heather\Contrib\P\rust\src\libsyntax\diagnostic.rs:102


You've met with a terrible fate, haven't you?

fatal runtime error: Could not unwind stack, error = 5

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
make: *** [i686-pc-mingw32/stage1/bin/rustc/i686-pc-mingw32/bin/std.dll] Error 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions