GPUOcelot Build Issue

88 views
Skip to first unread message

selvaprakash p

unread,
Sep 13, 2017, 10:41:21 AM9/13/17
to gpuocelot

I'm trying to install GPUOCELOT. Whwn I'm trying to build the file in the directory gpuocelot-master/ocelot. I'm getting the following error. It would be great help if some could help me with the same.

UBUNTU 14.04

~/gpuocelot-master/ocelot$ sudo ./build.py
scons -Q
Build rules for Ocelot....
Failed to get SVN repository version!
Not installing Ocelot.
config_h_build([".release_build/configure.h"], ["configure.h.in"])
g++ -o .release_build/ocelot/ir/implementation/Module.os -c -O2 -Wall -Werror -std=c++0x -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -Ihydrazine -I. -I/usr/include -I/usr/include -I/usr/lib/llvm-3.4/include -I.release_build -I. ocelot/ir/implementation/Module.cpp
In file included from ./ocelot/parser/interface/PTXLexer.h:11:0,
                 from ./ocelot/parser/interface/PTXParser.h:16,
                 from ocelot/ir/implementation/Module.cpp:10:
.release_build/ptxgrammar.hpp:352:14: error: 'PTXLexer' is not a member of 'parser'
 int yyparse (parser::PTXLexer& lexer, parser::PTXParser::State& state);
              ^
.release_build/ptxgrammar.hpp:352:32: error: 'lexer' was not declared in this scope
 int yyparse (parser::PTXLexer& lexer, parser::PTXParser::State& state);
                                ^
.release_build/ptxgrammar.hpp:352:47: error: 'parser::PTXParser' has not been declared
 int yyparse (parser::PTXLexer& lexer, parser::PTXParser::State& state);
                                               ^
.release_build/ptxgrammar.hpp:352:65: error: 'state' was not declared in this scope
 int yyparse (parser::PTXLexer& lexer, parser::PTXParser::State& state);
                                                                 ^
.release_build/ptxgrammar.hpp:352:70: error: expression list treated as compound expression in initializer [-fpermissive]
 int yyparse (parser::PTXLexer& lexer, parser::PTXParser::State& state);
                                                                      ^
scons: *** [.release_build/ocelot/ir/implementation/Module.os] Error 1
Build failed...
Build failed

Yonatan Mamo

unread,
Jun 8, 2020, 11:03:23 AM6/8/20
to gpuocelot
I'm also having the same issue is there a fix for this yet

Yonatan Mamo

unread,
Jun 8, 2020, 11:30:42 AM6/8/20
to gpuocelot
I had the same problem too. Try building the file with the "no llvm" flag. And also use '-w' flag to ignore warnings just in case

On Wednesday, September 13, 2017 at 4:41:21 PM UTC+2, selvaprakash p wrote:
Reply all
Reply to author
Forward
0 new messages