FS#50262 - [gcc] GCC ships without libbacktrace
Attached to Project:
Arch Linux
Opened by Michał Janiszewski (janisozaur) - Thursday, 04 August 2016, 22:10 GMT
Last edited by Allan McRae (Allan) - Friday, 09 September 2016, 02:13 GMT
Opened by Michał Janiszewski (janisozaur) - Thursday, 04 August 2016, 22:10 GMT
Last edited by Allan McRae (Allan) - Friday, 09 September 2016, 02:13 GMT
|
Details
Description:
GCC gained libbacktrace back in 4.8, according to numerous reports online. libbacktrace is a tool to generate stack traces with aid of the compiler itself, which is a useful debugging technique. ArchLinux's GCC is missing support for this. Additional info: * backtrace.h in compiler tree: https://github.com/gcc-mirror/gcc/blob/master/libbacktrace/backtrace.h * Other ditros' GCC ships with libbacktrace baked in: http://packages.ubuntu.com/search?searchon=contents&keywords=backtrace.h&mode=exactfilename&suite=xenial&arch=any Steps to reproduce: 1. Write simple C program, test.c, with following contents: #include <backtrace.h> int main() { return 0;} 2. Compile it with `gcc test.c` 3. Expect it to work, but see it fail with: test.c:1:23: fatal error: backtrace.h: No such file or directory This bug report also extends to gcc-multilib. |
This task depends upon
Closed by Allan McRae (Allan)
Friday, 09 September 2016, 02:13 GMT
Reason for closing: Not a bug
Additional comments about closing: Library not shipped by upstream
Friday, 09 September 2016, 02:13 GMT
Reason for closing: Not a bug
Additional comments about closing: Library not shipped by upstream
https://www.gnu.org/software/libc/manual/html_node/Backtraces.html