bondhugula / pluto

Pluto: An automatic polyhedral parallelizer and locality optimizer
http://pluto-compiler.sourceforge.net
MIT License
263 stars 65 forks source link

Compilation Syntax Error in Clan/source/parser.y #63

Open ghost opened 4 years ago

ghost commented 4 years ago

Hello,

I am trying to install pluto on Mac OS with intel 19.0.0.117 compilers. I am using the latest commit in the master branch. Following the installation steps, I successfully configure pluto with: ./configure CC=icc CXX=icpc. I get the following warnings and errors during compilation: make -j4

  CCLD     cloog
  CCLD     test/generate_test_advanced
ld: warning: directory not found for option '-L/lib'
ld: warning: directory not found for option '-L/lib'
Making all in clan
  YACC     source/parser.c
/Users/whj/Dev/pluto/clan/source/parser.y:226.27-34: syntax error, unexpected type, expecting string or identifier

Did I miss something? Thank you!

bondhugula commented 4 years ago

Sorry, if I didn't respond to this separately. Looks like this might be happening due to an old version of bison you may have. The configure check in clan was later fixed to enforce the right version, and will report an error now if that was the case.

bondhugula commented 4 years ago

Bison 2.4 or later is needed to build clan. If you still see this issue, could you report your bison version?

$ bison --version
ghost commented 4 years ago

Hello Uday,

Sorry for the late response. I was developing another cache tiling algorithm and switched back to Pluto recently. I still have this issue i.e. clan report syntax error where modulo "%" is used in array index like A[t%2][i][j][k]. I am using bison 3.4.2 Am I missing something here?

Thank you!

-- Hengjie Wang Ph.D Candidate Mechanical and Aerospace Engineering University of California, Irvine Email:frank.hengjie@gmail.com

On Sun, Mar 8, 2020 at 6:42 AM Uday Bondhugula notifications@github.com wrote:

Bison 2.4 or later is needed to build clan. If you still see this issue, could you report your bison version.

$ bison --version

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bondhugula/pluto/issues/63?email_source=notifications&email_token=ADH34ISFDJNU4KRCQ5YYMXLRGOACJA5CNFSM4I7DAFEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOETXAY#issuecomment-596196227, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADH34IUH3GZG43EPOH73ETDRGOACJANCNFSM4I7DAFEA .

bondhugula commented 4 years ago

The clan frontend doesn't support % in accesses. Instead, the pet frontend does. Can you try with --pet?

ghost commented 4 years ago

Hello Uday,

Using Pet solves the problem. Thank you so much.

-- Hengjie Wang Ph.D Candidate Mechanical and Aerospace Engineering University of California, Irvine Email:frank.hengjie@gmail.com

On Mon, May 25, 2020 at 10:58 PM Uday Bondhugula notifications@github.com wrote:

The clan frontend doesn't support % in accesses. Instead, the pet frontend does. Can you try with --pet?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bondhugula/pluto/issues/63#issuecomment-633794780, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADH34ITNOMO6DC3FR6BRHMTRTM45LANCNFSM4I7DAFEA .