Project

General

Profile

Actions

Bug #4295

closed

Issue between aspectator and new glibc at different architectures

Added by Ilya Shchepetkov almost 11 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
High
Category:
-
Start date:
07/02/2013
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

Error : "In file included from ../../../../aspectator/libgcc/../gcc/unwind-dw2.c:333:0:
../../../../aspectator/libgcc/../gcc/config/i386/linux-unwind.h: In function 'x86_fallback_frame_state':
../../../../aspectator/libgcc/../gcc/config/i386/linux-unwind.h:138:17: error: field 'info' has incomplete type " 

It's a well known issue between old gcc and new glibc at different architectures: http://gcc.gnu.org/ml/gcc-patches/2012-03/msg01073.html.

As a temporary workaround it is proposed to patch gcc/config/i386/linux-unwind.h (that you can found in "ri" directory of LDV tools sources):

diff --git a/libgcc/config/i386/linux-unwind.h b/libgcc/config/i386/linux-unwind.h
index f17a46c..33810c5 100644
--- a/libgcc/config/i386/linux-unwind.h
+++ b/libgcc/config/i386/linux-unwind.h
@@ -139,9 +139,9 @@ x86_fallback_frame_state (struct _Unwind_Context *context,
    {
      struct rt_sigframe {
       int sig;
-      struct siginfo *pinfo;
+      siginfo_t *pinfo;
       void *puc;
-      struct siginfo info;
+      siginfo_t info;
       struct ucontext uc;
      } *rt_ = context->cfa;
      /* The void * cast is necessary to avoid an aliasing warning.

Maybe the issue will gone when we will rebase aspectator to one of the recent versions of gcc.

Actions

Also available in: Atom PDF