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

[Condor-users] condor_compile error, Dock 6.2, Condor 7.0.1



Hi,

i'm having problems compiling the DOCK 6.2 using condor_compile from
Condor 7.0.1. I'm working under Debian 4.0 inside coLinux. I copied my
/usr/bin/ld to /usr/bin/ld.real and placed the condor/lib/ld under
/usr/bin instead.

After changing to dock6/src, I started the build process using
 make clean
 condor_compile make

The last few lines from the (failing) build are:
 trace.o: In function `__tcf_1':
 trace.cpp:(.text+0x12): undefined reference to
`std::basic_string<char,  std::char_traits<char>, std::allocator<char>
>::_Rep::_S_empty_rep_storage'
 trace.cpp:(.text+0x2e): undefined reference to
`__gnu_cxx::__exchange_and_add(int  volatile*, int)'
 collect2: ld returned 1 exit status

 make[1]: *** [dock6] Error 1
 make[1]: Leaving directory `/usr/local/dock6/src/dock'
 make: *** [dock6] Error 2

In the rest of the build output are TONS of "undefined reference"
errors ( or warnings? don't know, i'm not so familar with c++):
amber_typer.o: In function `AMBER_TYPER::input_parameters(Parameter_Reader&, boo
l, bool)':
amber_typer.cpp:(.text+0x7e5): undefined reference to `std::basic_string<char, s
td::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
amber_typer.cpp:(.text+0x82e): undefined reference to `__gnu_cxx::__exchange_and
_add(int volatile*, int)'
amber_typer.cpp:(.text+0x919): undefined reference to `std::basic_string<char, s
td::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
amber_typer.cpp:(.text+0x92d): undefined reference to `std::basic_string<char, s
td::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
amber_typer.cpp:(.text+0x943): undefined reference to `std::basic_string<char, s
td::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
...
amber_typer.cpp:(.text+0x10be): undefined reference to `__gnu_cxx::__exchange_an
d_add(int volatile*, int)'
amber_typer.cpp:(.text+0x10f8): undefined reference to `__gnu_cxx::__exchange_an
d_add(int volatile*, int)'
amber_typer.cpp:(.text+0x1121): undefined reference to `__gnu_cxx::__exchange_an
d_add(int volatile*, int)'
...
base_mpi.o: In function `char* std::basic_string<char, std::char_traits<char>, s
td::allocator<char> >::_S_construct<char*>(char*, char*, std::allocator<char> co
nst&, std::forward_iterator_tag)':
..
base_mpi.o: In function `std::basic_string<char, std::char_traits<char>, std::al
locator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char
> >(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<
char> > const&)':
..
dockmol.o: In function `DOCKMol::allocate_arrays(int, int)':
dockmol.cpp:(.text+0x2441): undefined reference to `std::basic_string<char, std:
:char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
dockmol.cpp:(.text+0x24c1): undefined reference to `std::basic_string<char, std:
:char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
dockmol.cpp:(.text+0x24f1): undefined reference to `std::basic_string<char, std:
:char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
dockmol.cpp:(.text+0x2521): undefined reference to `std::basic_string<char, std:
:char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
dockmol.cpp:(.text+0x2551): undefined reference to `std::basic_string<char, std:
:char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
dockmol.o:dockmol.cpp:(.text+0x25e1): more undefined references to `std::basic_s
tring<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_s
torage' follow
..
utils.cpp:(.text._ZNSt6vectorI9PARAMETERSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_[std::vector<PARAMETER,
std::allocator<PARAMETER>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<PARAMETER*,
std::vector<PARAMETER, std::allocator<PARAMETER> > >, PARAMETER
const&)]+0x63b): undefined reference to
`__gnu_cxx::__exchange_and_add(int volatile*, int)'

>From what i know, an undefined reference error for std::basic_string
means that a C compiler is used instead of a C++ compiler (?) But that
doesn't help much as I have _no_ idea where in this complex make
script some parameters or else could be wrong.

A normal "make" works just fine, all the binaries are built.

I am using gcc version 4.1
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

I also tried to use g++ 3.3 by installing it via apt-get install and
changing all occurences of g++/gcc/etc. to g++-3.3/gcc-3.3 in
dock6/install/config.h but that won't work either.


I would very much appreciate _any_ help ! Thank you,

-
Gerald