[parisc-linux] Re: build failure of stlport 5.0.2 on hppa

Matthias Klose doko at cs.tu-berlin.de
Wed Aug 30 01:27:38 MDT 2006


[ CCing parisc-linux ]

  Matthias

Petr Ovtchenkov writes:
> On Wednesday 30 August 2006 00:18, you wrote:
> > Hi Petr,
> > 
> > 
> > compiling the library with USE_STATIC_LIBGCC=1 leads to other error messages:
> > 
> > obj/gcc/shared/test_main.o: In function `main':
> > ../../../test/unit/cppunit/test_main.cpp:138: undefined reference to
> > `_Unwind_Resume'
> > obj/gcc/shared/test_main.o: In function `~Reporter':
> > ../../../test/unit/cppunit/cppunit_mini.h:31: undefined reference to
> > `_Unwind_Resume'
> > ../../../test/unit/cppunit/cppunit_mini.h:31: undefined reference to
> > `_Unwind_Resume'
> > obj/gcc/shared/accum_test.o: In function `~TestFixture':
> > ../../../test/unit/cppunit/cppunit_mini.h:41: undefined reference to
> > `_Unwind_Resume'
> > obj/gcc/shared/accum_test.o: In function
> > `stlpmtx_std::__node_alloc<false, 0>::deallocate(void*, unsigned
> > int)':
> > ../../../stlport/stl/_alloc.h:311: undefined reference to `_Unwind_Resume'
> > obj/gcc/shared/accum_test.o:../../../test/unit/accum_test.cpp:42: more
> > undefined references to `_Unwind_Resume' follow
> > 
> > Do you have an idea, what is wrong?
> 
> During modern gcc build process, depends on --enable-shared/--disable-shared options
> it produces following libs:
> 
> 1. --enable-shared: 
>    a) link with shared
>       libgcc_s.so --- runtime gcc support
>       libsupc++.a --- C++ language support
>    b) link with static
>       libgcc.a    --- runtime gcc support
>       libgcc_eh.a --- C++ exceptions support, if you use static libgcc
>       libsupc++.a --- C++ language support
> 
> 2. --disable-shared:
>       libgcc.a    --- runtime gcc support, C++ exceptions support
>       libsupc++.a --- C++ language support
> 
> But on some platform (I treat it as bug in gcc build) not all support
> functions present in correct place. Looks like this is you case.
> 
> See gmake/lib/gcc.mak and gmake/app/gcc.mak for link sequence and my
> comments. Note, that when we build libstlport*, we import whole
> libsupc++.a, so no needs to mention libsupc++.a when link application
> with libstlport*.
> 
>   - ptr



More information about the parisc-linux mailing list