[LLVMdev] Problem Compiling llvm-gcc4 r12 and r13

Reid Spencer rspencer at reidspencer.com
Fri Jul 7 07:40:24 PDT 2006


A clean build of revisions 12 or 13 of llvm-gcc4 produces:

make[1]: *** No rule to make target `llvm-backend.c', needed by `llvm-backend.o'.  Stop.

While the gcc/Makefile.in has:

llvm-backend.o : llvm-backend.cpp $(ALL_HEADERS)   #line 2440

it also has:
# APPLE LOCAL begin LLVM                           #line 1018
ifneq ($(LLVMOBJDIR),)
OBJS-common += llvm-backend.o llvm-convert.o llvm-types.o llvm-debug.o
endif

and
# FIXME: writing proper dependencies for this is a *LOT* of work.
libbackend.o : $(OBJS-common:.o=.c) $(out_file) \     #line 2468

I think the problem is that since llvm-backend.o is in OBJS-common and
that is used in the dependencies for libbackend.o, it thinks it needs
llvm-backend.c. How it gets from ther to llvm-backend.o depending on
llvm-backend.c, I'm not sure.

Above occurs on Linux (FC5) using GCC 3.4.6 and GMAKE 3.80

What's the procedure for reporting llvm-gcc4 bugs? Use llvm bugzilla?

Reid.




More information about the llvm-dev mailing list