From patchwork Wed Jun 1 11:40:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 628621 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rKT1v2N61z9sdQ for ; Wed, 1 Jun 2016 21:40:35 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id DA52E8932D; Wed, 1 Jun 2016 11:40:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vrxXU4gULxyd; Wed, 1 Jun 2016 11:40:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id CE0B5892F2; Wed, 1 Jun 2016 11:40:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 526121C1EA5 for ; Wed, 1 Jun 2016 11:40:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4C64D88C9F for ; Wed, 1 Jun 2016 11:40:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xTVWMVwTAOeA for ; Wed, 1 Jun 2016 11:40:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtprelay.synopsys.com (us01smtprelay-2.synopsys.com [198.182.60.111]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2213E89560 for ; Wed, 1 Jun 2016 11:40:29 +0000 (UTC) Received: from us02secmta2.synopsys.com (us02secmta2.synopsys.com [10.12.235.98]) by smtprelay.synopsys.com (Postfix) with ESMTP id 41C4E10C131C; Wed, 1 Jun 2016 04:40:29 -0700 (PDT) Received: from us02secmta2.internal.synopsys.com (us02secmta2.internal.synopsys.com [127.0.0.1]) by us02secmta2.internal.synopsys.com (Service) with ESMTP id 3F51C55F13; Wed, 1 Jun 2016 04:40:29 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by us02secmta2.internal.synopsys.com (Service) with ESMTP id 0A56F55F02; Wed, 1 Jun 2016 04:40:29 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id E6F36D3; Wed, 1 Jun 2016 04:40:28 -0700 (PDT) Received: from us01wehtc1.internal.synopsys.com (us01wehtc1-vip.internal.synopsys.com [10.12.239.236]) by mailhost.synopsys.com (Postfix) with ESMTP id AEAAED2; Wed, 1 Jun 2016 04:40:28 -0700 (PDT) Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.92) by us01wehtc1.internal.synopsys.com (10.12.239.231) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 1 Jun 2016 04:40:28 -0700 Received: from DE02WEMBXB.internal.synopsys.com ([fe80::95ce:118a:8321:a099]) by DE02WEHTCA.internal.synopsys.com ([::1]) with mapi id 14.03.0195.001; Wed, 1 Jun 2016 13:40:22 +0200 From: Alexey Brodkin To: "thomas.petazzoni@free-electrons.com" Thread-Topic: [arc-buildroot] [autobuild.buildroot.net] arc build results for 2016-05-31 Thread-Index: AQHRu86e6WpJEQGLSkO5Qr2woFNn45/UIriAgAAA4oCAABoigIAAHbIA Date: Wed, 1 Jun 2016 11:40:21 +0000 Message-ID: <1464781182.3171.49.camel@synopsys.com> References: <20160601063019.5D553101D2D@stock.ovh.net> <1464769003.3171.25.camel@synopsys.com> <20160601101953.54e9e80d@free-electrons.com> <1464774805.3171.37.camel@synopsys.com> In-Reply-To: <1464774805.3171.37.camel@synopsys.com> Accept-Language: en-US, ru-RU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.121.8.129] Content-ID: <34367C84FCA23C4795642E25E403F18A@internal.synopsys.com> MIME-Version: 1.0 Cc: "buildroot@busybox.net" , "bernd.kuhls@t-online.de" , "arc-buildroot@synopsys.com" Subject: Re: [Buildroot] [arc-buildroot] [autobuild.buildroot.net] arc build results for 2016-05-31 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Hi Thomas, On Wed, 2016-06-01 at 12:53 +0300, Alexey Brodkin wrote: > Hi Thomas, > > On Wed, 2016-06-01 at 10:19 +0200, Thomas Petazzoni wrote: > > > > Hello, > > > > On Wed, 1 Jun 2016 08:17:21 +0000, Alexey Brodkin wrote: > > > > > > > > > > > > > > > > > > > >          arc |                  jack2-v1.9.10 | NOK | > > > > http://autobuild.buildroot.net/results/c05e4a5280f34b2a1dff8a10adfd46f53344e13a/   > > > So this one is almost fixed by Bernd but given he has no time for the real fix > > > we'll take a look at proposed solution and hopefully will cook up a patch ourselves. > > Aah, good. I proposed a fix in a reply to Bernd, I believe it should > > work, it just needs to be tested a little bit on platforms where NGREG > > is really defined. > Hm I see that NGREG is defined in Linux kernel in "include/uapi/linux/elfcore.h" as: > ----------------->8---------------- > #ifndef __KERNEL__ > ... > #define NGREG ELF_NGREG > #endif > ----------------->8---------------- > > Then in its turn ELF_NGREG is defined for ARC in "arch/arc/include/uapi/asm/elf.h" as: > ----------------->8---------------- > #define ELF_NGREG (sizeof(struct user_regs_struct) / sizeof(elf_greg_t)) > ----------------->8---------------- > > And since kernel's UAPI is meant to be exported to user-space I would expect NGREG to > be available for ARC and all other users of UAPI. > > So might be a better solution would be to just include "elfcore.h" in jack's "dbus/sigsegv.c"? > I'll give it a try locally and if that works I'll send a patch upstream. Ok apparently that didn't work. Once I made: ----------------------->8------------------------ ----------------------->8------------------------ I opened a can with worms: ----------------------->8------------------------ [255/259] c: dbus/sigsegv.c -> build/dbus/sigsegv.c.17.o In file included from /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/asm/signal.h:25:0,                  from /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/linux/signal.h:4,                  from /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/linux/elfcore.h:5,                  from ../dbus/sigsegv.c:30: /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux-uclibc/sysroot/usr/include/asm- generic/signal.h:91:3: error: conflicting types for ‘sigset_t’  } sigset_t;    ^ In file included from /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/sys/types.h:219:0,                  from /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/stdlib.h:198,                  from ../dbus/sigsegv.c:26: /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/sys/select.h:37:20: note: previous declaration of ‘sigset_t’ was here  typedef __sigset_t sigset_t;                     ^ In file included from /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/asm/signal.h:25:0,                  from /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/linux/signal.h:4,                  from /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/linux/elfcore.h:5,                  from ../dbus/sigsegv.c:30: /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux-uclibc/sysroot/usr/include/asm- generic/signal.h:102:8: error: redefinition of ‘struct sigaction’  struct sigaction {         ^ In file included from /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/signal.h:251:0,                  from ../dbus/sigsegv.c:28: /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/bits/sigaction.h:28:8: note: originally defined here  struct sigaction {         ^ /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux-uclibc/sysroot/usr/include/asm- generic/signal.h:103:17: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘.’ token   __sighandler_t sa_handler;                  ^ In file included from /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/asm/signal.h:25:0,                  from /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/linux/signal.h:4,                  from /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/linux/elfcore.h:5,                  from ../dbus/sigsegv.c:30: /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux-uclibc/sysroot/usr/include/asm- generic/signal.h:111:16: error: redefinition of ‘struct sigaltstack’  typedef struct sigaltstack {                 ^ In file included from /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/signal.h:354:0,                  from ../dbus/sigsegv.c:28: /home/abrodkin/Outputs/buildroot/archs38-jack2/host/usr/arc-buildroot-linux- uclibc/sysroot/usr/include/bits/sigstack.h:49:16: note: originally defined here  typedef struct sigaltstack                 ^ ----------------------->8------------------------ Then I googled that http://article.gmane.org/gmane.linux.kernel.api/14978 So I'm not alone with my grief here. Which means probably your proposal is the only feasible way to go. -Alexey diff --git a/dbus/sigsegv.c b/dbus/sigsegv.c index ee12f91..d7bbe7e 100644 --- a/dbus/sigsegv.c +++ b/dbus/sigsegv.c @@ -27,6 +27,7 @@  #include  #include  #include +#include  #include  #include  #ifndef NO_CPP_DEMANGLE