[LLVMdev] Problem Compiling llvm-gcc4 r12 and r13

Chris Lattner sabre at nondot.org
Fri Jul 7 13:01:05 PDT 2006


On Fri, 7 Jul 2006, Reid Spencer wrote:
> 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.

The attached patch should fix it, I committed it to llvmgcc, it should hit 
the mirror tomorrow.

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

Yup, sounds good to me, thanks!

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/
-------------- next part --------------
Index: Makefile.in
===================================================================
--- Makefile.in	(revision 115939)
+++ Makefile.in	(working copy)
@@ -2463,6 +2463,9 @@ mips-tdump: mips-tdump.o version.o $(LIB
 
 mips-tdump.o : mips-tdump.c $(CONFIG_H) $(RTL_H) $(SYSTEM_H) coretypes.h $(TM_H) version.h
 
+# APPLE LOCAL LLVM - Disable rule, which expects OBJS-common to only have C Files. 
+ifeq ($(LLVMOBJDIR),)
+
 # FIXME: writing proper dependencies for this is a *LOT* of work.
 libbackend.o : $(OBJS-common:.o=.c) $(out_file) \
   insn-config.h insn-flags.h insn-codes.h insn-constants.h \
@@ -2472,6 +2475,9 @@ libbackend.o : $(OBJS-common:.o=.c) $(ou
 	  -DLOCALEDIR=\"$(localedir)\" \
 	  -c $(filter %.c,$^) -o $@ -combine
 
+# APPLE LOCAL LLVM
+endif
+
 #
 # Generate header and source files from the machine description,
 # and compile them.


More information about the llvm-dev mailing list