Bug #4295

Issue between aspectator and new glibc at different architectures

Added by Ilya Shchepetkov over 6 years ago. Updated 6 months ago.

Start date:
Due date:
% Done:


Estimated time:
Detected in build:
Published in build:


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:

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.



Updated by Ilya Shchepetkov over 6 years ago

  • Description updated (diff)

Updated by Evgeny Novikov over 6 years ago

  • Status changed from New to Open
  • Priority changed from Normal to High

Important to fix since new distributions come with a new glibc.


Updated by Ilya Shchepetkov over 5 years ago

The build process is really annoying because of this issue. Maybe we should hurry up and fix it.


Updated by Evgeny Novikov over 5 years ago

This is actually the next step at the CIF road map. But you should wait till August-September.


Updated by Evgeny Novikov 6 months ago

  • Assignee changed from Evgeny Novikov to Ilya Shchepetkov
  • Status changed from Open to Closed

Ilya updated Aspectator to GCC 7 a long ago. And all such issues have gone.

Also available in: Atom PDF