Error Compiling Pluto on Mac

30 views
Skip to first unread message

Hengjie

unread,
Oct 10, 2019, 3:15:18 PM10/10/19
to Pluto development
Hello,

This is Hengjie. I am very interested in using pluto to tile my stencil application.
I met some errors during my installation. It would help a lot if you could share some insights. Thank you!

I am trying to build the master branch of Pluto (latest commit 3c3149d) on Mac. The compiler is gcc and g++ of Apple LLVM version 10.0.0. 
The configure is successful but I got the following errors during compilation:

pet.cc:600:20: error: allocating an object of abstract class type 'PragmaValueBoundsHandler'

                vb_handler = new PragmaValueBoundsHandler(ctx, *sema);

                                 ^

/usr/local/Cellar/llvm/9.0.0/include/clang/Lex/Pragma.h:74:16: note: unimplemented pure virtual method 'HandlePragma' in 'PragmaValueBoundsHandler'

  virtual void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,

               ^

pet.cc:608:27: error: allocating an object of abstract class type 'PragmaParameterHandler'

                PP.AddPragmaHandler(new PragmaParameterHandler(*sema, context,

                                        ^

/usr/local/Cellar/llvm/9.0.0/include/clang/Lex/Pragma.h:74:16: note: unimplemented pure virtual method 'HandlePragma' in 'PragmaParameterHandler'

  virtual void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,

               ^

pet.cc:612:13: error: allocating an object of abstract class type 'PragmaPencilHandler'

                        PH = new PragmaPencilHandler(independent);

                                 ^

/usr/local/Cellar/llvm/9.0.0/include/clang/Lex/Pragma.h:74:16: note: unimplemented pure virtual method 'HandlePragma' in 'PragmaPencilHandler'

  virtual void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,

               ^

pet.cc:1097:27: error: allocating an object of abstract class type 'PragmaScopHandler'

                PP.AddPragmaHandler(new PragmaScopHandler(scops));

                                        ^

/usr/local/Cellar/llvm/9.0.0/include/clang/Lex/Pragma.h:74:16: note: unimplemented pure virtual method 'HandlePragma' in 'PragmaScopHandler'

  virtual void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,

               ^

pet.cc:1098:27: error: allocating an object of abstract class type 'PragmaEndScopHandler'

                PP.AddPragmaHandler(new PragmaEndScopHandler(scops));

                                        ^

/usr/local/Cellar/llvm/9.0.0/include/clang/Lex/Pragma.h:74:16: note: unimplemented pure virtual method 'HandlePragma' in 'PragmaEndScopHandler'

  virtual void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,

               ^

pet.cc:1099:27: error: allocating an object of abstract class type 'PragmaLiveOutHandler'

                PP.AddPragmaHandler(new PragmaLiveOutHandler(*sema,

                                        ^

/usr/local/Cellar/llvm/9.0.0/include/clang/Lex/Pragma.h:74:16: note: unimplemented pure virtual method 'HandlePragma' in 'PragmaLiveOutHandler'

  virtual void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,

Sven Verdoolaege

unread,
Oct 10, 2019, 3:45:28 PM10/10/19
to Hengjie, Pluto development
On Thu, Oct 10, 2019 at 12:15:18PM -0700, Hengjie wrote:
> Hello,
>
> This is Hengjie. I am very interested in using pluto to tile my
> stencil application.
> I met some errors during my installation. It would help a lot if you could
> share some insights. Thank you!
>
> I am trying to build the master branch of Pluto (latest commit 3c3149d) on
> Mac. The compiler is gcc and g++ of Apple LLVM version 10.0.0.
> The configure is successful but I got the following errors during
> compilation:
>
> pet.cc:600:20: error: allocating an object of abstract class type
> 'PragmaValueBoundsHandler'
>
> vb_handler = new PragmaValueBoundsHandler(ctx, *sema);
>
> ^

Update the pet submodule or use an older version of clang
(see pet/README for the last supported version).

skimo

Uday Bondhugula

unread,
Oct 10, 2019, 5:25:51 PM10/10/19
to Pluto development


On Friday, October 11, 2019 at 12:45:18 AM UTC+5:30, Hengjie wrote:
Hello,

This is Hengjie. I am very interested in using pluto to tile my stencil application.
I met some errors during my installation. It would help a lot if you could share some insights. Thank you!

I am trying to build the master branch of Pluto (latest commit 3c3149d) on Mac. The compiler is gcc and g++ of Apple LLVM version 10.0.0. 
The configure is successful but I got the following errors during compilation:

As Sven mentioned, you are using a more recent version of clang than is supported by the pet submodule included in Pluto. The pet submodule of Pluto's git master trunk is based on pet-0.11.2 (from Mar 2019), and is supported to work with up until clang 8.0. 

~ Uday
Reply all
Reply to author
Forward
0 new messages