pluto icon indicating copy to clipboard operation
pluto copied to clipboard

Compilation Syntax Error in Clan/source/parser.y

Open ghost opened this issue 5 years ago • 5 comments

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!

ghost avatar Oct 09 '19 18:10 ghost

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 avatar Mar 08 '20 11:03 bondhugula

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

$ bison --version

bondhugula avatar Mar 08 '20 11:03 bondhugula

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:[email protected]

On Sun, Mar 8, 2020 at 6:42 AM Uday Bondhugula [email protected] 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 .

ghost avatar May 26 '20 02:05 ghost

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

bondhugula avatar May 26 '20 03:05 bondhugula

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:[email protected]

On Mon, May 25, 2020 at 10:58 PM Uday Bondhugula [email protected] 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 .

ghost avatar May 27 '20 14:05 ghost