This is the mail archive of the gcc-bugs@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]

Re: make -j broken


Someone asked me privately for a more detailed error report.  In the following
output of

% ../configure --prefix=/opt/egcs-mainline --enable-haifa
% make -j bootstrap >& ERRS &

it seems that it fails when it tries to compile gcc/profile.c before
isnconfig.h is made---here's the excerpt (which is kind of confused,
because outputs from many compiles are mixed together):

gcc -c  -DIN_GCC  -DSVR4  -g  -DHAVE_CONFIG_H -DHAIFA    -I. -I../../gcc -I../../gcc/config ../../gcc/profile.c
./genoutput ../../gcc/config/sparc/sparc.md > tmp-output.c
./genattr ../../gcc/config/sparc/sparc.md > tmp-attr.h
./genopinit ../../gcc/config/sparc/sparc.md > tmp-opinit.c
./genemit ../../gcc/config/sparc/sparc.md > tmp-emit.c
../../gcc/move-if-change tmp-peep.c insn-peep.c
gcc  -DIN_GCC  -DSVR4  -g  -DHAVE_CONFIG_H -DHAIFA  -o genrecog \
 genrecog.o rtl.o bitmap.o print-rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "alloca.o" in ?*) echo alloca.o ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` 
../../gcc/profile.c:48: insn-config.h: No such file or directory
touch s-peep
gcc  -DIN_GCC  -DSVR4  -g  -DHAVE_CONFIG_H -DHAIFA    -I. -I../../gcc -I../../gcc/config -c insn-peep.c
../../gcc/move-if-change tmp-attr.h insn-attr.h
touch s-attr
../../gcc/move-if-change tmp-opinit.c insn-opinit.c
../../gcc/move-if-change tmp-config.h insn-config.h
<lots of stuff omitted>
make[2]: *** [profile.o] Error 1
make[2]: *** Waiting for unfinished jobs....


When I restarted make, it worked fine to the end.

Since these things are non-deterministic, I did another run.  This time,
cplus-dem.c was made before config.h:

gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include  ../../libiberty/cplus-dem.c
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include  ../../libiberty/concat.c
../../libiberty/cplus-dem.c:32: config.h: No such file or directory
make[1]: *** [cplus-dem.o] Error 1
make[1]: *** Waiting for unfinished jobs....
creating config.h
make[1]: Leaving directory `/home/c/lucier/programs/egcs-source/mainline/egcs/objdir/libiberty'
make: *** [all-libiberty] Error 2

I again had the problem with profile.c and insn-config.h late in the build:

stage2/xgcc -Bstage2/ -c  -DIN_GCC  -DSVR4  -W -Wall -O2 -g -O2  -DHAVE_CONFIG_H -DHAIFA    -I. -I../../gcc -I../../gcc/config ../../gcc/profile.c
../../gcc/profile.c:48: insn-config.h: No such file or directory
...

But this time, I redid make -j bootstrap, which started somewhere near
the beginning, so I gave up.

Brad Lucier    lucier@math.purdue.edu


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