[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] condor_compile and C++ (g++?) problem



On 11/1/07, Jonathan D. Proulx <jon@xxxxxxxxxxxxx> wrote:
> HI,
>
> I'm trying to relink someoneless code using condor_compile:
>
> condor_compile g++ -o final *.o
>
> but I run into a number of errors similar to this (different functions
> same errors):
>
> ModelMath.o: In function `Computation::AssimObservation(blitz::Array<double, 2>&, std::vector<int, std::allocator<int> > const&, blitz::Array<double, 1> const&, blitz::Array<double, 2> const&, int, blitz::Array<double, 1>&, int, int)':
> ModelMath.cpp:(.text+0x21d6): undefined reference to `__cxa_guard_acquire'
> ModelMath.cpp:(.text+0x2217): undefined reference to `__cxa_guard_release'
> ModelMath.cpp:(.text+0x2280): undefined reference to `__cxa_guard_abort'
> ModelMath.cpp:(.text+0x22b1): undefined reference to `__cxa_guard_acquire'
> ModelMath.cpp:(.text+0x22f2): undefined reference to `__cxa_guard_release'
> ModelMath.cpp:(.text+0x235b): undefined reference to `__cxa_guard_abort'
>
> They link fine without condor_compile.  Is there something I can do,
> or ask the author to do, to get this to link with condor?
>

Try compiling the code with
-fno-threadsafe-statics
as a workaround and hope that your code doesn't have two threads that
call the same constructor with a static class in it at the same time.

Looks like the C++ libraries in Condor have a different ABI from the
one on your system.

Dave