[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libunwind-devel] ppc64
From: |
Arun Sharma |
Subject: |
Re: [Libunwind-devel] ppc64 |
Date: |
Fri, 13 Jul 2012 16:16:02 -0700 |
On Thu, Jul 12, 2012 at 12:55 PM, Mike Nolta <address@hidden> wrote:
> Hi,
>
> I'm trying to compile libunwind on a Power7 box running RHEL 6.0.
>
> First, why does arch default to ppc32 even though this is a ppc64
> machine? Especially since the ppc32 build fails:
>
Like you observed, unlike x64, powerpc seems to default the compiler
to 32 bit, unless you compile with -m64.
See is_gcc_m64() in configure.in.
> ppc32/is_fpreg.c: In function '_Uppc64_is_fpreg':
> ppc32/is_fpreg.c:33:21: error: 'UNW_PPC32_F0' undeclared (first use in
> this function)
> ppc32/is_fpreg.c:33:21: note: each undeclared identifier is reported
> only once for each function it appears in
> ppc32/is_fpreg.c:33:47: error: 'UNW_PPC32_F31' undeclared (first use
> in this function)
These are defined in:
include/libunwind-ppc32.h
Patches to fix compile error are welcome.
>
> Second, after setting -m64, i get the following error:
>
> coredump/_UCD_access_reg_linux.c: In function '_UCD_access_reg':
> coredump/_UCD_access_reg_linux.c:69:2: error: #error Port me
Probably best to stub it out via:
static const int8_t remap_regs[] = {}
to get past the compilation hurdle.
-Arun