charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Phil Miller <mille121 AT illinois.edu>
- Cc: "charm AT lists.cs.illinois.edu" <charm AT lists.cs.illinois.edu>
- Subject: Re: [charm] CkLoop build error
- Date: Fri, 16 Aug 2019 09:40:14 -0400
- Authentication-results: illinois.edu; spf=pass smtp.mailfrom=unmobile AT gmail.com; dkim=pass header.d=illinois-edu.20150623.gappssmtp.com header.s=20150623; dmarc=none header.from=illinois.edu
Here's a thought on preventing these sorts of hassles:
During each build, run
find src -name '*.{decl,def}.h'
and the same for examples/ and tests/, and error out if anything is found. They're never going to be desirable
On Fri, Aug 16, 2019 at 12:16 AM Tom Quinn <trq AT astro.washington.edu> wrote:
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
>
- [charm] CkLoop build error, Tom Quinn, 08/10/2019
- <Possible follow-up(s)>
- Re: [charm] CkLoop build error, Diener, Matthias, 08/15/2019
- Re: [charm] CkLoop build error, Tom Quinn, 08/15/2019
- Re: [charm] CkLoop build error, Phil Miller, 08/16/2019
- Re: [charm] CkLoop build error, Tom Quinn, 08/15/2019
Archive powered by MHonArc 2.6.19.