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

Re: [HTCondor-users] RHEL Devtoolset compatibility

I think condor_compile doesn't know about your environment (it's a
linkage error), have you
tried with condor_compile .... -lstdc++ ?


On Fri, Aug 23, 2013 at 11:26 AM, Paul Dannenberg
<paul.dannenberg@xxxxxxxxx> wrote:
> 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>
> 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
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/htcondor-users/