Is there any way to get GNU to print backtrace for the purposes that led to the execution of the command when it fails? I regularly deal with very confusing makefiles when dealing with portability problems of creating software on the new system, and it seems like it should be an extremely simple task to do this, which will help a lot in debugging, but I cannot find a way to request It. I would like to see something like:
gcc: error: ... make[2]: error: gcc ... make[2]: error building target bar make[2]: error building dependency bar for target foo make[1]: error: make -C subdir make[1]: error building target subdir make[1]: error building dependency subdir for target all ...
shows the entire dependency path for how the failed command completed.
Is there any way to do this?
c makefile gnu-make
R ..
source share