Project

General

Profile

Bug #1744

errors building DummyLB.C with Intel compiler on golub

Added by Jim Phillips 6 days ago. Updated 5 days ago.

Status:
New
Priority:
High
Assignee:
-
Category:
Load Balancing
Target version:
Start date:
11/13/2017
Due date:
% Done:

0%


Description

module load intel/17.0
./build charm++ net-linux-x86_64 ibverbs iccstatic --no-build-shared --enable-randomized-msgq --with-prio-type=int --enable-error-checking -debug

../bin/charmc  -debug  -I.   -c -o DummyLB.o DummyLB.C
In file included from charm++.h(1107),
                 from LBDatabase.decl.h(3),
                 from LBDatabase.h(100),
                 from BaseLB.h(9),
                 from CentralLB.h(9),
                 from DummyLB.h(9),
                 from DummyLB.C(6):
ckmemcheckpoint.h(76): error: more than one instance of overloaded function "std::to_string" matches the argument list:
            function "std::to_string(long long)" 
            function "std::to_string(unsigned long long)" 
            function "std::to_string(long double)" 
            argument types are: (int)
        fname = "/tmp/ckpt" + std::to_string(CkMyPe()) + "-" + std::to_string(idx) + "-XXXXXX";
                              ^

In file included from charm++.h(1107),
                 from LBDatabase.decl.h(3),
                 from LBDatabase.h(100),
                 from BaseLB.h(9),
                 from CentralLB.h(9),
                 from DummyLB.h(9),
                 from DummyLB.C(6):
ckmemcheckpoint.h(76): error: more than one instance of overloaded function "std::to_string" matches the argument list:
            function "std::to_string(long long)" 
            function "std::to_string(unsigned long long)" 
            function "std::to_string(long double)" 
            argument types are: (int)
        fname = "/tmp/ckpt" + std::to_string(CkMyPe()) + "-" + std::to_string(idx) + "-XXXXXX";
                                                               ^

../bin/../include/pup_stl.h(212): error: class "std::vector<SDAG::Closure *, std::allocator<SDAG::Closure *>>" has no member "shrink_to_fit" 
          v.shrink_to_fit();
            ^
          detected during instantiation of "void PUP::operator|(PUP::er &, std::vector<T, std::allocator<T>> &) [with T=SDAG::Closure *]" at line 168 of "sdag.h" 

../bin/../include/pup_stl.h(212): error: class "std::vector<unsigned short, std::allocator<unsigned short>>" has no member "shrink_to_fit" 
          v.shrink_to_fit();
            ^
          detected during instantiation of "void PUP::operator|(PUP::er &, std::vector<T, std::allocator<T>> &) [with T=unsigned short]" at line 169 of "sdag.h" 

../bin/../include/pup_stl.h(212): error: class "std::vector<int, std::allocator<int>>" has no member "shrink_to_fit" 
          v.shrink_to_fit();
            ^
          detected during instantiation of "void PUP::operator|(PUP::er &, std::vector<T, std::allocator<T>> &) [with T=int]" at line 171 of "sdag.h" 

../bin/../include/pup_stl.h(212): error: class "std::vector<std::list<int, std::allocator<int>>, std::allocator<std::list<int, std::allocator<int>>>>" has no member "shrink_to_fit" 
          v.shrink_to_fit();
            ^
          detected during instantiation of "void PUP::operator|(PUP::er &, std::vector<T, std::allocator<T>> &) [with T=std::list<int, std::allocator<int>>]" at line 264 of "sdag.h" 

../bin/../include/pup_stl.h(212): error: class "std::vector<std::list<SDAG::Buffer *, std::allocator<SDAG::Buffer *>>, std::allocator<std::list<SDAG::Buffer *, std::allocator<SDAG::Buffer *>>>>" has no member "shrink_to_fit" 
          v.shrink_to_fit();
            ^
          detected during instantiation of "void PUP::operator|(PUP::er &, std::vector<T, std::allocator<T>> &) [with T=std::list<SDAG::Buffer *, std::allocator<SDAG::Buffer *>>]" at line 265 of "sdag.h" 

../bin/../include/pup_stl.h(212): error: class "std::vector<std::list<SDAG::Continuation *, std::allocator<SDAG::Continuation *>>, std::allocator<std::list<SDAG::Continuation *, std::allocator<SDAG::Continuation *>>>>" has no member "shrink_to_fit" 
          v.shrink_to_fit();
            ^
          detected during instantiation of "void PUP::operator|(PUP::er &, std::vector<T, std::allocator<T>> &) [with T=std::list<SDAG::Continuation *, std::allocator<SDAG::Continuation *>>]" at line 266 of "sdag.h" 

compilation aborted for DummyLB.C (code 2)
Fatal Error by charmc in directory /scratch/users/jcphill/charm-6.8.2-debug-build-2017-Nov-13-7172-net-linux-x86_64-ibverbs-iccstatic/charm-6.8.2/net-linux-x86_64-ibverbs-iccstatic/tmp
   Command icpc -DCMK_GFORTRAN -I../bin/../include -D__CHARMC__=1 -I. -O0 -g -std=c++11 -DCMK_GFORTRAN -I./../include -D__CHARMC__=1 -O0 -g -c DummyLB.C -o DummyLB.o returned error code 2

History

#1 Updated by Sam White 6 days ago

I think you need to load gcc as well as intel/17.0 to get more modern C++ headers with C++11 support

#2 Updated by Jim Phillips 5 days ago

Yup, that fixed it. Thanks.

Also available in: Atom PDF