This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH[3.0]: Parallel build problem and suggested fix.


> On sparc-sun-solaris2.8, with ../configure and make -j 8 bootstrap,
> on today's CVS sources, the bootstrap failed with:
> 
> gcc  -DIN_GCC  -DSVR4  -O2 -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototype
> s -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../
> gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include \
>  -c alloca.c
> case "c " in \
>   *[fF]77*) echo timestamp > lang-f77;; \
>   *) rm -f lang-f77;; \
> esac
> mv tmp-xlimits.h xlimits.h
> alloca.c:25:20: config.h: No such file or directory
> alloca.c:506: warning: ISO C forbids an empty source file
> make[2]: *** [alloca.o] Error 1
> make[2]: *** Waiting for unfinished jobs....

OK, here's my suggested patch for gcc/Makefile.in to fix this.
The bootstrap got beyond the point where it was failing before.
This is for the 3.0 branch.

There's another instance of alloca.o in Makefile.in, but I don't
know what to do with it, if anything.

Brad

===================================================================
RCS file: RCS/Makefile.in,v
retrieving revision 1.1
diff -cp -r1.1 Makefile.in
*** Makefile.in	2001/05/18 15:19:45	1.1
--- Makefile.in	2001/05/18 16:26:24
*************** halfpic.o: halfpic.c $(CONFIG_H) $(RTL_H
*** 1616,1622 ****
  # Normally this target is not used; but it is used if you
  # define ALLOCA=alloca.o.  In that case, you must get a suitable alloca.c
  # from the GNU Emacs distribution.
! alloca.o:	$(srcdir)/../libiberty/alloca.c
  	rm -f alloca.c
  	$(LN_S) $(srcdir)/../libiberty/alloca.c alloca.c
  	$(CC) $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) \
--- 1616,1622 ----
  # Normally this target is not used; but it is used if you
  # define ALLOCA=alloca.o.  In that case, you must get a suitable alloca.c
  # from the GNU Emacs distribution.
! alloca.o:	$(srcdir)/../libiberty/alloca.c $(GCONFIG_H)
  	rm -f alloca.c
  	$(LN_S) $(srcdir)/../libiberty/alloca.c alloca.c
  	$(CC) $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]