Compilation from source fails
Opened this issue · 11 comments
Compilation from the source fails.
$ocelot> ./build.py
g++ -o .release_build/ocelot/ir/implementation/Kernel.os -c -O2 -Wall -Werror
-std=c++0x -I/home/users/pushkar/local/include -D_DEBUG -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -fPIC -I.release_build -I.
-I/usr/include -I/home/users/pushkar/local/include
ocelot/ir/implementation/Kernel.cpp
ocelot/ir/implementation/Kernel.cpp:93:82: error: no 'void
ir::Kernel::insertParameter(const ir::Parameter&, bool)' member function
declared in class 'ir::Kernel'
scons: *** [.release_build/ocelot/ir/implementation/Kernel.os] Error 1
scons: building terminated because of errors.
-Pushkar
Original issue reported on code.google.com by topgun...@gmail.com
on 13 Aug 2011 at 11:02
Which version of Ocelot are you using?
'svn info' should tell you...
Original comment by gregory....@gatech.edu
on 18 Aug 2011 at 2:55
Path: .
URL: http://gpuocelot.googlecode.com/svn/trunk/ocelot
Repository Root: http://gpuocelot.googlecode.com/svn
Repository UUID: ec522b64-56cd-11de-8d7d-01d876f1962d
Revision: 1374
Node Kind: directory
Schedule: normal
Last Changed Author: arkerr
Last Changed Rev: 1372
Last Changed Date: 2011-08-13 11:42:09 -0400 (Sat, 13 Aug 2011)
Original comment by topgun...@gmail.com
on 18 Aug 2011 at 3:19
Even the trunk HEAD (revision 1392) has the same issue.
Thanks,
Pushkar
Original comment by topgun...@gmail.com
on 18 Aug 2011 at 3:22
I'm not sure if I understand this error.
There is clearly a definition of that function in
ocelot/ir/interface/Kernel.h:61
Original comment by SolusStu...@gmail.com
on 2 Sep 2011 at 1:52
Perhaps your compiler does not like the use of default arguments? Which
version of gcc are you using?
Original comment by SolusStu...@gmail.com
on 2 Sep 2011 at 1:53
The g++ version is,
g++ (SUSE Linux) 4.5.0 20100604 [gcc-4_5-branch revision 160292]
Original comment by topgun...@gmail.com
on 2 Sep 2011 at 3:25
Seems like while building the compiler was picking up old header files from the
installed location rather than from the source. Manually deleting them did
result in a successful build.
But now OcelotConfig -l does not list anything (any library) nor does
OcelotConfig -p report anything. And, manually linking libocelot does not work,
the program simply segfaults (It used to work earlier).
Original comment by topgun...@gmail.com
on 10 Sep 2011 at 1:38
Can you compile it in debug mode and post a stack trace?
Original comment by mailsud...@gmail.com
on 16 Sep 2011 at 8:00
Are there any updates to this?
Original comment by gregory....@gatech.edu
on 2 Feb 2012 at 5:37
Original comment by gregory....@gatech.edu
on 2 Feb 2012 at 5:37
- Added labels: Priority-Low
- Removed labels: Priority-Medium
Attached here is the backtrace as viewed in gdb.
Thanks,
Pushkar
Original comment by topgun...@gmail.com
on 2 Feb 2012 at 8:53
Attachments: