This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question on libgcc_eh
- From: Takis Psarogiannakopoulos <takis at XFree86 dot Org>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 28 Feb 2003 01:28:59 -0500 (EST)
- Subject: Question on libgcc_eh
Hi folks,
I am trying to build/port latest GCC-3.2.2 to the (ix86) DG/UX
OS and probably submit this port to the GCC project.
I have a question: To make the java compiler work correctly
we use the Sjlj model. Even if it is a bit slower that the
frame style, a fully funtional compiler is achived
(aka not only C/C++/objc but also java).
so wee to pass to configure the --enable-sjlj-exceptions.
However the "make bootstrap" fails in the following:
Entering directory
`etc etc libstdc++-v3/testsuite'
g++ -shared-libgcc -B(location) -nostdinc++ etc etc etc
abi_check.o: In function `main':
abi_check.o(.text+0x1bb7): undefined reference to `_Unwind_SjLj_Register'
abi_check.o(.text+0x4a00): undefined reference to `_Unwind_SjLj_Unregister'
abi_check.o(.text+0x4c1d): undefined reference to `_Unwind_SjLj_Resume'
Well these _Unwind_SjLj_* symbols are located in the libgcc_eh.a
For examble,
# nm libgcc_eh.a | grep _Unwind_SjLj_Resume
[37] | 1680| 256|FUNC |GLOB |0 |1 |_Unwind_SjLj_Resume
Anyone can tell me what is wrong here? Why it doesnt link the libgcc_eh.a
where it is obvious that is needed for a correct linking.
What is the idea of a libgcc_eh.a? I was under the impression that it was
always the libgcc.a that we were using!
Finally anyone has any idea what is the configuration variable (if
any) that I can define inside config/i386/dgux.h and resolve this issue?
Regards,
Takis