Summary: | sys-libs/libunwind-1.1 ptrace/_UPT_reg_offset.c:41:6: error: 'UNW_IA64_GR' undeclared here (not in a function) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Daniel da Silva <meltingwax> |
Component: | [OLD] Development | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | dlan, meltingwax |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | IA64 | ||
OS: | Linux | ||
Whiteboard: | Consider comment #3. | ||
Package list: | Runtime testing required: | --- | |
Attachments: | Emerge output |
Description
Daniel da Silva
2013-12-14 05:45:01 UTC
Please disregard the pastebin link. The emerge output was attached. Problem solved: It was discovered that the header /usr/include/asm/ptrace_offsets.h, which was owned by no package (qfile), was preventing the build from succeeding. Removing the file allowed the emerge to complete successfully. file /usr/include/asm/ptrace_offsets.h exist, trigger following macro enabled. "#define HAVE_ASM_PTRACE_OFFSETS_H 1" which trigger following code in src/ptrace/_UPT_reg_offset.c -----------------------8<-------------------------- const int _UPT_reg_offset[UNW_REG_LAST + 1] = { #ifdef HAVE_ASM_PTRACE_OFFSETS_H # ifndef PT_AR_CSD # define PT_AR_CSD -1 /* this was introduced with rev 2.1 of ia64 */ # endif [UNW_IA64_GR + 0] = -1, [UNW_IA64_GR + 1] = PT_R1, [UNW_IA64_GR + 2] = PT_R2, [UNW_IA64_GR + 3] = PT_R3, [UNW_IA64_GR + 4] = PT_R4, [UNW_IA64_GR + 5] = PT_R5, [UNW_IA64_GR + 6] = PT_R6, [UNW_IA64_GR + 7] = PT_R7, [UNW_IA64_GR + 8] = PT_R8, [UNW_IA64_GR + 9] = PT_R9, [UNW_IA64_GR + 10] = PT_R10, [UNW_IA64_GR + 11] = PT_R11, [UNW_IA64_GR + 12] = PT_R12, [UNW_IA64_GR + 13] = PT_R13, .... -----------------------8<------------------ UNW_IA64_GR should be available only for *ia64* arch it would be great to guard UNW_IA64_GR with "#ifdef __ia64__" macro.. i see no reason for us to track this issue. it only fails if you install a file that you shouldn't have (namely, asm/ptrace_offsets.h). if you want to suggest better code upstream, then feel free to send them patches. |