compilation error after updated from cvs:

Building PowerPC.td register information header with tblgen
Included from PowerPC.td:22:
Parsing PowerPCInstrInfo.td:53: Variable not defined: 'GPRC'!
make[3]: *** [PowerPCGenRegisterInfo.h.inc] Error 1
make[3]: Leaving directory `/pool/tmp/ssrc/llvm/lib/Target/PowerPC'

maybe I just have to "make clean" and/or ./configure

BTW, would it be nice to put Depend, Release and Debug
into .cvsignore for other llvm fans too?

Yup, unfortunately the dependencies are confused in that directory due to
a file or two that moved. Please just do 'make clean' in
lib/Target/PowerPC and it should be ok.

-Chris

Building PowerPC.td register information header with tblgen
Included from PowerPC.td:22:
Parsing PowerPCInstrInfo.td:53: Variable not defined: 'GPRC'!
make[3]: *** [PowerPCGenRegisterInfo.h.inc] Error 1
make[3]: Leaving directory `/pool/tmp/ssrc/llvm/lib/Target/PowerPC'

maybe I just have to "make clean" and/or ./configure

Yeah, you need to make clean most likely.

BTW, would it be nice to put Depend, Release and Debug
into .cvsignore for other llvm fans too?

I personally have a build directory outside of the source tree, and
don't encounter this problem. :slight_smile:

Misha Brukman wrote:

Building PowerPC.td register information header with tblgen
Included from PowerPC.td:22:
Parsing PowerPCInstrInfo.td:53: Variable not defined: 'GPRC'!
make[3]: *** [PowerPCGenRegisterInfo.h.inc] Error 1
make[3]: Leaving directory `/pool/tmp/ssrc/llvm/lib/Target/PowerPC'

maybe I just have to "make clean" and/or ./configure

Yeah, you need to make clean most likely.

If, for some reason, that doesn't work, you can remove the Depend directories manually, and that should fix it as well.

BTW, would it be nice to put Depend, Release and Debug into .cvsignore for other llvm fans too?

I personally have a build directory outside of the source tree, and don't encounter this problem. :slight_smile:

I think I've actually seen this problem in my build tree as well, and srcdir!=objdir for me too. So changing from srcdir==objdir to srcdir!=objdir may not magically solve the problem.

-- John T.

I think the problem Valery is talking about is that when you run 'cvs
up', it complains about Depend, Debug, Release, and Profile dirs, in
EVERY subdirectory (? Debug, etc).

I think it's unrelated to the Makefile issue he mentioned earlier.
Correct me if I'm wrong, Vallery.

Valery,

As if you need yet another suggestion ..

You might also want to try "cvs upd -APdR" in order to recursively remove sticky tags, prune empty directories, and build new directories. Since you're getting a compilation error, this doesn't seem to me to be a dependency problem but rather pulling in the wrong version of on of the *.td files.

Reid.

Valery A.Khamenya wrote:

I think the problem Valery is talking about is that when you run 'cvs
up', it complains about Depend, Debug, Release, and Profile dirs, in
EVERY subdirectory (? Debug, etc).
I think it's unrelated to the Makefile issue he mentioned earlier.
Correct me if I'm wrong, Vallery.

you are right.

I should have had to post this issue as sepparate mail to avoid misunderstanding.

I modified the LLVM CVS repository to do just that.

Enjoy,

I modified the LLVM CVS repository to do just that.

oh, nice. thanks

(and my thanks to other guys on recent cvs-related hints)

@Chris i.r.t. "small examples":

in context of learning API of new large lib (as LLVM is), personally
I like small examples very much, and the smaller examples are, the
more i like them :stuck_out_tongue:

So, I find your idea great.

Well, have a nice day, guys!

hehe, here is quite a midnight already :slight_smile:

NRN.

I totally agree :slight_smile:

-Chris