gtcasl / gpuocelot

GPUOCelot: A dynamic compilation framework for PTX
http://gpuocelot.gatech.edu/
BSD 3-Clause "New" or "Revised" License
280 stars 69 forks source link

Compilation from source fails #55

Open jwang323 opened 9 years ago

jwang323 commented 9 years ago

From topgun...@gmail.com on August 13, 2011 19:02:16

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 -DSTDC_LIMIT_MACROS -DSTDC_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: http://code.google.com/p/gpuocelot/issues/detail?id=56

jwang323 commented 9 years ago

From gregory....@gatech.edu on August 18, 2011 07:55:48

Which version of Ocelot are you using?

'svn info' should tell you...

jwang323 commented 9 years ago

From topgun...@gmail.com on August 18, 2011 08:19:43

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)

jwang323 commented 9 years ago

From topgun...@gmail.com on August 18, 2011 08:22:12

Even the trunk HEAD ( revision 1392 ) has the same issue.

Thanks, Pushkar

jwang323 commented 9 years ago

From SolusStu...@gmail.com on September 01, 2011 18:52:53

I'm not sure if I understand this error.

There is clearly a definition of that function in ocelot/ir/interface/Kernel.h:61

jwang323 commented 9 years ago

From SolusStu...@gmail.com on September 01, 2011 18:53:51

Perhaps your compiler does not like the use of default arguments? Which version of gcc are you using?

jwang323 commented 9 years ago

From topgun...@gmail.com on September 01, 2011 20:25:36

The g++ version is, g++ (SUSE Linux) 4.5.0 20100604 [gcc-4_5-branch revision 160292 ]

jwang323 commented 9 years ago

From topgun...@gmail.com on September 09, 2011 18:38:33

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).

jwang323 commented 9 years ago

From mailsud...@gmail.com on September 16, 2011 13:00:42

Can you compile it in debug mode and post a stack trace?

jwang323 commented 9 years ago

From gregory....@gatech.edu on February 02, 2012 09:37:29

Are there any updates to this?

jwang323 commented 9 years ago

From gregory....@gatech.edu on February 02, 2012 09:37:49

Labels: -Priority-Medium Priority-Low

jwang323 commented 9 years ago

From topgun...@gmail.com on February 02, 2012 12:53:31

Attached here is the backtrace as viewed in gdb.

Thanks, Pushkar

Attachment: backtrace.txt