Project

General

Profile

Bug #4295

Updated by Ilya Shchepetkov almost 11 years ago

<pre> 
 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 " 
 </pre> 
 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 libgcc/config/i386/linux-unwind.h (that you can found in "ri" directory of LDV tools sources): 
 <pre> 
 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. 
 </pre> 
 Maybe the issue will gone when we will rebase aspectator to one of the recent versions of gcc.

Back