Solved gdb with kgdb option (alloca.h)

A strange behaviour has devel/gdb. If I compile with OPTION KGDB=ON it stops compiling with:
Code:
In file included from kgdb-main.c:46:
In file included from ./defs.h:28:
./common/common-defs.h:37:10: fatal error: 'alloca.h' file not found
#include <alloca.h>
  ^
/bin/sh ./../move-if-change xml-builtin.tmp xml-builtin.c
echo stamp > stamp-xml
2 warnings and 1 error generated.
Makefile:1132: recipe for target 'kgdb-main.o' failed
gmake[4]: *** [kgdb-main.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....

If I run again make install (without cleaning before) it continues and compiles till the end.

(If don't really know what happens here. Short after that appears:
Code:
rm -f alloca.h-t alloca.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  cat ../.././gnulib/import/alloca.in.h; \
} > alloca.h-t && \
mv -f alloca.h-t alloca.h
)

I think this is an old error with alloca.h. (And there were a few patches in the past).
I opened this thread, instead a PR, cause I don't know if there exists a patch for this (found different patches in the net).
 
It was only on 10.2 (i386 and amd64) not on 9.3 (i386 and amd64).
Found it (the remove and move of alloca.h after the error points me to a parallel problem):

It compiles with MAKE_JOBS_UNSAFE=yes fine.
 
Back
Top