Skip to content

在rhel 7.6 ARM 64 环境下编译不通过 #124

Description

@FrancisDrakeK

image
dwarf/Gfind_proc_info-lsb.c:130:24: error: 'SHF_COMPRESSED' undeclared (first use in this function)
if (shdr->sh_flags & SHF_COMPRESSED)
^
dwarf/Gfind_proc_info-lsb.c:130:24: note: each undeclared identifier is reported only once for each function it appears in
In file included from ./elf64.h:7:0,
from ../include/tdep-aarch64/libunwind_i.h:36,
from ../include/tdep/libunwind_i.h:7,
from ../include/libunwind_i.h:357,
from ../include/dwarf_i.h:10,
from dwarf/Gfind_proc_info-lsb.c:33,
from dwarf/Lfind_proc_info-lsb.c:4:
./elfxx.h:41:25: error: unknown type name 'Elf64_Chdr'

define Elf_W(x) Elf64_##x

                     ^

dwarf/Gfind_proc_info-lsb.c:133:7: note: in expansion of macro 'Elf_W'
Elf_W (Chdr) *chdr = (shdr->sh_offset + ei.image);
^
In file included from dwarf/Lfind_proc_info-lsb.c:4:0:
dwarf/Gfind_proc_info-lsb.c:135:15: error: request for member 'ch_type' in something not a structure or union
if (chdr->ch_type == ELFCOMPRESS_ZLIB)
^
dwarf/Gfind_proc_info-lsb.c:135:28: error: 'ELFCOMPRESS_ZLIB' undeclared (first use in this function)
if (chdr->ch_type == ELFCOMPRESS_ZLIB)
^
dwarf/Gfind_proc_info-lsb.c:137:30: error: request for member 'ch_size' in something not a structure or union
*bufsize = destSize = chdr->ch_size;
^
make[3]: *** [dwarf/Lfind_proc_info-lsb.lo] Error 1
make[3]: Leaving directory /root/diagnose-tools/deps/libunwind/src' make[2]: *** [install] Error 2 make[2]: Leaving directory /root/diagnose-tools/deps/libunwind/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/diagnose-tools/deps/libunwind'
make: *** [deps] Error 2

[root@ecs-94ae diagnose-tools]# uname -r
4.18.0-80.7.2.el7.aarch64
[root@ecs-94ae diagnose-tools]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (AltArch)
[root@ecs-94ae diagnose-tools]# ldd --version
ldd (GNU libc) 2.17
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
[root@ecs-94ae diagnose-tools]#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions