Skip to Content.
Sympa Menu

charm - Re: [charm] CkLoop build error

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] CkLoop build error


Chronological Thread 
  • From: Tom Quinn <trq AT astro.washington.edu>
  • To: "Diener, Matthias" <mdiener AT illinois.edu>
  • Cc: "charm AT lists.cs.illinois.edu" <charm AT lists.cs.illinois.edu>
  • Subject: Re: [charm] CkLoop build error
  • Date: Thu, 15 Aug 2019 21:15:44 -0700 (PDT)
  • Authentication-results: illinois.edu; spf=none smtp.mailfrom=trq AT astro.washington.edu; dmarc=none

I figured out the problem: there was a left-over CkLoop.decl.h and CkLoop.def.h in the src/libs/ck-libs/ckloop directory. These got linked over into the build directory instead of being regenerated. Thanks for the help.

Tom Quinn Astronomy, University of Washington
Internet:
trq AT astro.washington.edu
Phone: 206-685-9009

On Thu, 15 Aug 2019, Diener, Matthias wrote:

Hi Tom,

The const was added to ckGetElements() in early May (commit b69ba03).
It is possible that the CkLoop.decl.h file wasn't regenerated
correctly.
Can you please try removing the "netlrts-linux-x86_64/" folder and
rebuilding charm?

Thank you,
Matthias
--
Matthias Diener
Postdoctoral Researcher in Computer Science
University of Illinois at Urbana-Champaign

On Sat, Aug 10, 2019 at 1:44 PM Tom Quinn
<trq AT astro.washington.edu>
wrote:

On the latest master, "build ChaNGa" gives:

make -C libs/ck-libs/ckloop
make[1]: Entering directory
'/home/trq/peak/src/charm/netlrts-linux-x86_64/tmp/libs/ck-libs/ckloop'
../../../../bin/charmc -O3 -lpthread -I../../../../tmp -o CkLoop.o
CkLoop.C
In file included from CkLoopAPI.h:4,
from CkLoop.h:8,
from CkLoop.C:1:
CkLoop.decl.h: In member function ‘int*
CProxySection_FuncCkLoop::ckGetElements() const’:
CkLoop.decl.h:409:48: error: invalid conversion from ‘const int*’ to
‘int*’ [-fpermissive]
409 | { return CProxySection_NodeGroup::ckGetElements(); }
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
| |
| const int*
CkLoop.decl.h: In member function ‘int*
CProxySection_FuncCkLoop::ckGetElements(int) const’:
CkLoop.decl.h:411:48: error: invalid conversion from ‘const int*’ to
‘int*’ [-fpermissive]
411 | { return CProxySection_NodeGroup::ckGetElements(i); }
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
| |
| const int*
Fatal Error by charmc in directory
/home/trq/peak/src/charm/netlrts-linux-x86_64/tmp/libs/ck-libs/ckloop
Command g++ -DCMK_GFORTRAN -I../../../../bin/../include -D__CHARMC__=1
-I../../../../tmp -O3 -fno-stack-protector -fno-lifetime-dse -c CkLoop.C
-o CkLoop.o returned error code 1

Tom Quinn Astronomy, University of Washington
Internet:
trq AT astro.washington.edu
Phone: 206-685-9009



Archive powered by MHonArc 2.6.19.

Top of Page