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

Re: [Condor-users] Linking problem with stdc++



We had this problem compiling Octave 2.1.73 for Condor as well.

The way we ended up getting round it was to use gcc 3.3, g++ 3.3 and g77 3.4. In the end we had to create a completely clean box and have only these compilers on it - we couldn't get it to compile with gcc 4.0 and then link against 3.3 libraries - although we didn't exhaustively attempt this.

My guess is that Condor is compiled with 3.3? So any newer libraries might not contain the same calling arrangements, hence the error?


On 17/05/07, Tomas Grigera <tgrigera@xxxxxxxxxxxxxxxxxx> wrote:

I'm having the same problem (on Debian w/ gcc 3.4 or 4.x). It seems that condor_compile is forgetting some libraries, since the problem is cured by explicitly mentioning a couple of gcc's libraries in the link commnad.

Tomas



On 5/16/07, Richard O'Shaughnessy < oshaughn@xxxxxxxxxxxxxxxx> wrote:
Hi all,

I have been trying to condor_compile a program that uses stdc++...it
works fine on almost all my machines, but an installation of 6.8.4
has obvious link errors that suggest the std namespace isn't being
properly resolved.

Can anyone suggest why this fails here, but works everywhere else?

(I've tried this with a few different compilers (g++, g++4, pathCC)
and had the same issue with all of them.)

testparams.o(.text+0x37): In function `main':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::_Rep::_S_empty_rep_storage'
testparams.o (.text+0x43): In function `main':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::_Rep::_S_empty_rep_storage'
testparams.o(.text+0xb3): In function `main':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::_Rep::_S_empty_rep_storage'
testparams.o(.text+0x961): In function `main':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::_Rep::_S_empty_rep_storage'
testparams.o(.text+0x999): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int
volatile*, int)'
testparams.o(.text+0x9ba): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int
volatile*, int)'
testparams.o(.text+0x9e1): In function `main':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::_Rep::_S_empty_rep_storage'
testparams.o(.text+0xa04): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int
volatile*, int)'
testparams.o(.text+0xa42): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int
volatile*, int)'
testparams.o(.text+0xa63): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int
volatile*, int)'
testparams.o(.text+0xa93): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int
volatile*, int)'
testparams.o(.text+0xaa3): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int
volatile*, int)'
testparams.o(.text+0xac9): more undefined references to
`__gnu_cxx::__exchange_and_add(int volatile*, int)' follow

....
        utility-readkeys.o
(.gnu.linkonce.t._ZNSt3mapISs10aParameterSt4lessISsESaISt4pairIKSsS0_EEE
ixERS4_+0x2f3): In function `std::map<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, aParameter,
std::less<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >,
std::allocator<std::pair<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const, aParameter> >
>::operator[](std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)':
: undefined reference to `__gnu_cxx::__exchange_and_add(int
volatile*, int)'


This same code works
_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at either
https://lists.cs.wisc.edu/archive/condor-users/
http://www.opencondor.org/spaces/viewmailarchive.action?key=CONDOR


_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at either
https://lists.cs.wisc.edu/archive/condor-users/
http://www.opencondor.org/spaces/viewmailarchive.action?key=CONDOR