Error in installing

56 views
Skip to first unread message

Abhishek Patwardhan

unread,
Feb 20, 2017, 4:55:22 AM2/20/17
to pluto-de...@googlegroups.com, Akilesh B, Ramakrishna Upadrasta
Hi,


---------- Forwarded message ----------
From: Akilesh B <cs13...@iith.ac.in>
Date: Mon, Feb 20, 2017 at 3:17 PM
Subject: Error in installing
To: pluto-de...@googlegroups.com
Cc: Ramakrishna Upadrasta <ramak...@iith.ac.in>, Abhishek Patwardhan <cs15mte...@iith.ac.in>


Hi,

I am encountering the below error:
----------------------------------------------------------------------------------
scan.cc:5073:35: error: ‘pet_scop* PetScan::extract’ is not a static data member of ‘struct PetScan’
 struct pet_scop *PetScan::extract(StmtRange stmt_range, bool block,
                                   ^
scan.cc:5073:35: error: ‘StmtRange’ was not declared in this scope
scan.cc:5073:57: error: expected primary-expression before ‘bool’
 struct pet_scop *PetScan::extract(StmtRange stmt_range, bool block,
                                                         ^
scan.cc:5074:2: error: expected primary-expression before ‘bool’
  bool skip_declarations)
  ^
scan.cc:5074:24: error: expression list treated as compound expression in initializer [-fpermissive]
  bool skip_declarations)
                        ^
scan.cc:5075:1: error: expected ‘,’ or ‘;’ before ‘{’ token
 {
---------------------------------------------------------------------------

It looks to me like a Clang version issue. I have installed clang-3.8 and used following commands for configuration: ./configure  --with-clang=system --with-clang-exec-prefix=/usr/bin/clang-3.8


Thanks
Akilesh B


Thanks and Regards,
= Abhishek.

Uday R Bondhugula

unread,
Feb 20, 2017, 6:46:43 AM2/20/17
to pluto-de...@googlegroups.com, cs15mte...@iith.ac.in, cs13...@iith.ac.in, Ramakrishna Upadrasta


On Monday 20 February 2017 03:25 PM, 'Abhishek Patwardhan' via Pluto
> and used following commands for configuration: .*/configure
> --with-clang=system --with-clang-exec-prefix=/usr/bin/clang-3.8*

You'll need clang 3.4 (as the README says); it won't work with later
versions. It'll take some time (at least a few weeks) for Pluto to be
updated to use the latest pet version, which will work with recent clang
versions.

~ Uday

>
>
> Thanks
> Akilesh B
>
>
> Thanks and Regards,
> = Abhishek.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Pluto development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to pluto-developm...@googlegroups.com
> <mailto:pluto-developm...@googlegroups.com>.
> To post to this group, send email to pluto-de...@googlegroups.com
> <mailto:pluto-de...@googlegroups.com>.
> Visit this group at *MailScanner has detected definite fraud in the
> website at "groups.google.com". Do /not/ trust this website:*
> https://groups.google.com/group/pluto-development
> <https://groups.google.com/group/pluto-development>.
> For more options, visit *MailScanner has detected definite fraud in the
> website at "groups.google.com". Do /not/ trust this website:*
> https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.

Akilesh

unread,
Mar 2, 2017, 2:36:45 AM3/2/17
to Pluto development, cs13...@iith.ac.in, ramak...@iith.ac.in
Hi,

Thank you for your suggestion, we built llvm with clang-3.4.

1) $llvm-config --version   gives 3.4svn

2) $which clang    gives    /home/akilesh/Compiler/llvm_build/bin/clang (llvm_build is the directory of llvm build with clang-3.4)

3) $clang --version           outputs:

clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix


Then, I configure pluto using " ./configure --with-clang-prefix=/home/akilesh/Compiler/llvm_build"  (This step is successful). However, when I run make after this, I am getting the below error:

program.c: In function ‘pet_to_pluto_stmts’:
program.c:4545:18: error: ‘struct pet_stmt’ has no member named ‘stmt_text’
         if (pstmt->stmt_text) {
                  ^
program.c:4546:34: error: ‘struct pet_stmt’ has no member named ‘stmt_text’
             int len=(strlen(pstmt->stmt_text));
                                  ^
program.c:4548:37: error: ‘struct pet_stmt’ has no member named ‘stmt_text’
             strcpy(stmt->text, pstmt->stmt_text);
                                     ^
program.c:4550:23: error: ‘struct pet_stmt’ has no member named ‘stmt_text’
             free(pstmt->stmt_text);
                       ^
program.c:4551:18: error: ‘struct pet_stmt’ has no member named ‘stmt_text’
             pstmt->stmt_text = NULL;


When we looked into the pet source code (https://github.com/Meinersbur/pet/blob/master/include/pet.h) (https://polly.llvm.org/doxygen/structpet__stmt.html) it looks that there is no member named 'stmt_text'. Is there any issue with PET version. Could you please suggest a workaround for this?


Thanks
Akilesh, Abhishek (IIT H)

aravind acharya

unread,
Mar 2, 2017, 4:00:31 AM3/2/17
to Akilesh, Pluto development, Ramakrishna Upadrasta
Hi Akhilesh,
    I guess the pet patches have not been applied. You need to apply the patches after 
updating git submodules. The patches can be applied using the script

$ ./apply_patches.sh

Regards,
Aravind

--
You received this message because you are subscribed to the Google Groups "Pluto development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pluto-development+unsubscribe@googlegroups.com.
To post to this group, send email to pluto-development@googlegroups.com.
Visit this group at https://groups.google.com/group/pluto-development.
For more options, visit https://groups.google.com/d/optout.

Uday Reddy B

unread,
Mar 2, 2017, 4:05:40 AM3/2/17
to Akilesh, ramak...@iith.ac.in, Pluto development
You missed running apply_patches.sh. Please follow the README (or the instructions on the website).

~ Uday

Sent from my Nexus5

--
You received this message because you are subscribed to the Google Groups "Pluto development" group.

Akilesh

unread,
Mar 3, 2017, 5:24:55 AM3/3/17
to Pluto development, cs13...@iith.ac.in, ramak...@iith.ac.in
Thanks for your prompt response, it worked.


On Monday, February 20, 2017 at 3:25:22 PM UTC+5:30, abhi111226 wrote:
Reply all
Reply to author
Forward
0 new messages