make depend is broken
Created by: StevanWhite
make depend
complains
cannot find include file "bits/c++config.h"
...
not in /usr/include/x86_64-linux-gnu/bits/bits/c++config.h
...
The duplicate bits/bits
looks like a bug.
On my Linux Mint system, that file is in
/usr/include/x86_64-linux-gnu/c++/10/bits/c++config.h
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h
If the variable MAKEDEPEND_INCLUDES
in the Makefile is changed from
-I/usr/include/x86_64-linux-gnu/c++/9/bits
to
-I/usr/include/x86_64-linux-gnu/c++/9
, the error goes away.
Likewise with asm/errno.h
, changing
-I/usr/include/x86_64-linux-gnu/asm
to
-I/usr/include/x86_64-linux-gnu
With those two changes, it works properly.
However, the variable in the Makefile
is generated by the configure
script,
which is hand-written, and is evidently missing things.
(You mentioned before that it might be best to make a proper autoconf
build.)