Hi,
I'm currently making an embedded Linux system that's meant to run on a Raspberry Pi. I'm following the instructions in a book called
CLFS - Embedded but unfortunately I'm stuck on the final installation of the GCC cross compiler. Upon configuring it and running make after a while I get this message:
Code:
/usr/bin/ld: libcommon.a(diagnostic.o): in function `diagnostic_action_after_output(diagnostic_context*, diagnostic_t)':
/home/kayjoyka/Pulpit/clfs/sources/gcc-build/gcc/../../gcc-9.3.0/gcc/diagnostic.c:536: undefined reference to `backtrace_full'
collect2: error: ld returned 1 exit status
make[2]: *** [../../gcc-9.3.0/gcc/c/Make-lang.in:85: cc1] Error 1
make[2]: Leaving directory '/home/kayjoyka/Pulpit/clfs/sources/gcc-build/gcc'
make[1]: *** [Makefile:4313: all-gcc] Error 2
make[1]: Leaving directory '/home/kayjoyka/Pulpit/clfs/sources/gcc-build'
make: *** [Makefile:945: all] Error 2
If I'm not mistaken the 'backtrace_full' that diagnostic.c is referring to here is part of backtrace.c from libbacktrace, but backtrace.h in which it is defined is included in diagnostic.c so why would this be happening? Am I doing something wrong?