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

[HTCondor-users] RHEL Devtoolset compatibility



I'm trying to run some c++ code I wrote using condor's standard universe. I was wondering if I could use the condor_compile command with RHEL's devtoolset. My code compiles perfectly using the devtoolset when I compile as follows. First, in terminal, I type:

scl enable devtoolset-1.1 'bash'

followed by g++ <my c++ files> -std=c++0x

Unfortunately, when I then try

condor_compile g++ DataReader.cpp DataWriter.cpp Euler.cpp SimulationRunner.cpp -std=c++0x

I get the following message regarding one of my files, Euler.cpp:

Euler.cpp:(.text._ZNSt4listIdSaIdEE9_M_insertIIRKdEEEvSt14_List_iteratorIdEDpOT_[_ZNSt4listIdSaIdEE9_M_insertIIRKdEEEvSt14_List_iteratorIdEDpOT_]+0x45): undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)'
/tmp/ccpwHHaG.o: In function `std::list<double, std::allocator<double> >::_M_erase(std::_List_iterator<double>)':
Euler.cpp:(.text._ZNSt4listIdSaIdEE8_M_eraseESt14_List_iteratorIdE[_ZNSt4listIdSaIdEE8_M_eraseESt14_List_iteratorIdE]+0x18): undefined reference to `std::__detail::_List_node_base::_M_unhook()'
collect2: error: ld returned 1 exit status

If I do not use the devtoolset, condor_compile works however, I would rather use the devtoolset. Is there anyway to get condor_compile working while using the devtoolset? My system specifications are:

Scientific Linux release 6.4 (Carbon)
condor-7.8.7-86173.x86_64
devtoolset-1.1-1-13.el6.noarch