From: <no...@so...> - 2002-06-18 01:22:42
|
Bugs item #570127, was opened at 2002-06-18 01:41 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=570127&group_id=2435 Category: gcc Group: Known bugs Status: Open Resolution: None Priority: 5 Submitted By: Wirawan Purwanto (wirawan0) Assigned to: Danny Smith (dannysmith) Summary: Improper unwind-sjlj.o (libgcc.a) Initial Comment: This error pertains the new mingw build of gcc 3.1. I got tons of link error when building a C++ program, and I pinpointed the source of error from incorrectly compiled unwind-sjlj.o, as shown below: $ ar x libgcc.a unwind-sjlj.o $ objdump -ad unwind- sjlj.o unwind-sjlj.o: file format pe-i386 unwind- sjlj.o Disassembly of section .text: (blank---no code generated at all) $ ls -al unwind-sjlj.o -rw-r--r-- 1 Administ None 252 Jun 13 14:41 unwind-sjlj.o (Note the unusually small object file size.) A sample error message is given below: x:/usr/local/lib/libstdc++.a(new_opv.o): In function `Znaj': /home/projects/cygwin.gcc3/i686-pc-cygwin/libstdc++- v3/libsupc++/../../../../gcc-3.0.3/libstdc++- v3/libsupc++/new_opv.cc:35: undefined reference to `_Unwind_SjLj_Register' /home/projects/cygwin.gcc3/i686-pc- cygwin/libstdc++-v3/libsupc++/../../../../gcc-3.0.3/libstdc++- v3/libsupc++/new_opv.cc:36: undefined reference to `_Unwind_SjLj_Unregister' /home/projects/cygwin.gcc3/i686- pc-cygwin/libstdc++-v3/libsupc++/../../../../gcc-3.0.3/libstdc++- v3/libsupc++/new_opv.cc:36: undefined reference to `_Unwind_SjLj_Resume' Could you have this fixed in later builds? Wirawan ---------------------------------------------------------------------- Comment By: Luke Dunstan (infidel) Date: 2002-06-18 09:22 Message: Logged In: YES user_id=30442 If you look carefully at your error messages you will notice that you are trying to link with an incorrect libstdc++ library from a Cygwin gcc 3.0.3 compiler. If you don't know why, you could post the output of compiling and linking with gcc "-v" option, but I think the mailing list would be a better place because this is not a bug. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=570127&group_id=2435 |