Project

General

Profile

Actions

Bug #4295

closed

Issue between aspectator and new glibc at different architectures

Added by Ilya Shchepetkov over 11 years ago. Updated over 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 #1

Updated by Ilya Shchepetkov over 11 years ago

  • Description updated (diff)
Actions #2

Updated by Evgeny Novikov over 11 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.

Actions #3

Updated by Ilya Shchepetkov over 10 years ago

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

Actions #4

Updated by Evgeny Novikov over 10 years ago

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

Actions #5

Updated by Evgeny Novikov over 5 years ago

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

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

Actions

Also available in: Atom PDF