nguyenminhduc9988 / gpuocelot

Automatically exported from code.google.com/p/gpuocelot
0 stars 0 forks source link

failure to build against current hydralize #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. check out a fresh hydrazine using:

 svn checkout http://hydrazine.googlecode.com/svn/trunk/ hydrazine-read-only

as instructed in the Installation Guide

2. check out a fresh copy of gpuocelot
3. build and install hydrazine. only lbhydrazine.a is installed using the
standard "make install" target
4. attempt to build gpuocelot. the build fails looking for
hydrazine/implementation/debug.h:

make  all-am
make[1]: Entering directory `/home/dank/local/gpuocelot-read-only/ocelot'
/bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.   
 -I ./ocelot/cuda/include -Wall -ansi -Werror -std=c++0x -g -O2 -MT
libocelot_la-DataflowGraph.lo -MD -MP -MF
.deps/libocelot_la-DataflowGraph.Tpo -c -o libocelot_la-DataflowGraph.lo
`test -f 'ocelot/analysis/implementation/DataflowGraph.cpp' || echo
'./'`ocelot/analysis/implementation/DataflowGraph.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I ./ocelot/cuda/include -Wall
-ansi -Werror -std=c++0x -g -O2 -MT libocelot_la-DataflowGraph.lo -MD -MP
-MF .deps/libocelot_la-DataflowGraph.Tpo -c
ocelot/analysis/implementation/DataflowGraph.cpp  -fPIC -DPIC -o
.libs/libocelot_la-DataflowGraph.o
In file included from ocelot/analysis/implementation/DataflowGraph.cpp:10:
./ocelot/analysis/interface/DataflowGraph.h:15:44: error:
hydrazine/implementation/debug.h: No such file or directory
ocelot/analysis/implementation/DataflowGraph.cpp: In constructor
‘analysis::DataflowGraph::NoProducerException::NoProducerException(unsigned
int)’:
ocelot/analysis/implementation/DataflowGraph.cpp:56: error: aggregate
‘std::stringstream message’ has incomplete type and cannot be defined
ocelot/analysis/implementation/DataflowGraph.cpp: In member function
‘analysis::DataflowGraph::Instruction
analysis::DataflowGraph::convert(ir::PTXInstruction&)’:

What is the expected output? What do you see instead?

A successful build.

What version of the product are you using? On what operating system?

SVN as of 2010-04-13 on Debian Linux Unstable, using the llvm-snapshot LLVM
packages.

Please provide any additional information below.

Hit me on aim or gtalk (nickblackandmild, dankamongmen@gmail.com), if you'd
like, and we ought be able to track in on it pretty quickly. Thanks.

Original issue reported on code.google.com by dankamongmen on 13 Apr 2010 at 9:44

GoogleCodeExporter commented 9 years ago
That should be "hydrazine" in the Subject -- sorry!

Original comment by dankamongmen on 13 Apr 2010 at 9:44

GoogleCodeExporter commented 9 years ago
Let me add that the configure script apparently doesn't check for hydrazine, 
meaning
it also likely can't have its include or link paths set. Someone set us up the
autoconf macro!

Original comment by dankamongmen on 13 Apr 2010 at 9:45

GoogleCodeExporter commented 9 years ago
The include path variable needs to be tweaked to point to hydrazine's include 
files.
Or you can copy hydrazine into the Ocelot directory, which is what I did.
I had the same problem and added a note about this at the very bottom of the 
install
page.
http://code.google.com/p/gpuocelot/wiki/Installation

Original comment by worleyl...@gmail.com on 13 Apr 2010 at 5:37

GoogleCodeExporter commented 9 years ago
if that's the recommended procedure, why not just induct hydrazine as an 
external?

http://svnbook.red-bean.com/en/1.0/ch07s03.html

Original comment by dankamongmen on 13 Apr 2010 at 5:56

GoogleCodeExporter commented 9 years ago
Thanks for the tip. Hydrazine is now included as an external repository in the 
new
branch.

Original comment by gregory....@gatech.edu on 1 May 2010 at 1:20