From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756269AbcHVSBa (ORCPT ); Mon, 22 Aug 2016 14:01:30 -0400 Received: from smtprelay4.synopsys.com ([198.182.47.9]:38311 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756113AbcHVSB2 (ORCPT ); Mon, 22 Aug 2016 14:01:28 -0400 From: Alexey Brodkin To: "acme@kernel.org" CC: "wangnan0@huawei.com" , "linux-kernel@vger.kernel.org" , "peterz@infradead.org" , "linux-snps-arc@lists.infradead.org" , "jolsa@kernel.org" , "jpoimboe@redhat.com" , "namhyung@kernel.org" , "acme@redhat.com" , "dsahern@gmail.com" , Vineet Gupta , "pgynther@google.com" , "adrian.hunter@intel.com" Subject: Re: [PATCH] tools lib: Reinstate strlcpy() header guard with __UCLIBC__ Thread-Topic: [PATCH] tools lib: Reinstate strlcpy() header guard with __UCLIBC__ Thread-Index: AQHR+MIYfKaw/Oiz4Ey5bEbN0J2feKBOoKIAgAAgWACAAXYbgIAAPWOAgAAWsQCAAB36AIAABO4AgAAD9ICAABZdAIAEYlsA Date: Mon, 22 Aug 2016 18:01:08 +0000 Message-ID: <1471888754.8888.15.camel@synopsys.com> References: <1471464050-18044-1-git-send-email-vgupta@synopsys.com> <20160818140722.GC16916@redhat.com> <852a8516-7fc0-3520-4913-b66c9e8ff3d2@synopsys.com> <20160819142207.GA4966@kernel.org> <868d62af-a673-80f8-2071-9043394f20fe@synopsys.com> <20160819192302.GA20810@kernel.org> <20160819200843.GB20810@kernel.org> <0ad144ea-21b2-ab10-3ef5-68078ee32631@synopsys.com> <20160819214207.GC20810@kernel.org> <20160819230210.GD20810@kernel.org> In-Reply-To: <20160819230210.GD20810@kernel.org> Accept-Language: en-US, ru-RU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.121.14.110] Content-Type: text/plain; charset="utf-8" Content-ID: <9090B8EE0DF93C4DB047AB71381001E9@internal.synopsys.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id u7MI1d1Q017188 Hi Arnaldo, On Fri, 2016-08-19 at 20:02 -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Aug 19, 2016 at 06:42:07PM -0300, Arnaldo Carvalho de Melo escreveu: > > > > Em Fri, Aug 19, 2016 at 02:27:58PM -0700, Vineet Gupta escreveu: > > > > > > On 08/19/2016 02:10 PM, Arnaldo Carvalho de Melo wrote: > > > > > > > > > > > > > > But one question: when you test build, do you have any extra devel > > > > > > > > > > > > packages installed besides what is in this prebuilt toolchain tarball? > > > > > > > > > > > > I'll add at least zlib and elfutils to the mix, building it in the > > > > > > docker image creation process, and then testing with/without > > > > > > NO_LIBELF=1, as I do to other cross-building images: > > > > Trying to build elfutils 0.166: > > > > > > > > checking whether gcc accepts -Wduplicated-cond... no > > > > checking whether gcc accepts -Wnull-dereference... no > > > > configure: WARNING: "libc does not have argp" > > > > checking for argp_parse in -largp... no > > > > configure: error: "no libargp found" > > > > > > > > ---- > > > > > > > > will go errands now, will try to check what is needed to build elfutils > > > > with uclibc, ideas? > > > > > > So back in 3.2 days I ran into these issues with elfutils - the workaround was to > > > use the standalone libelf > > > http://www.mr511.de/software/libelf-0.8.9.tar.gz. > > > > Ok, so I'll git it a try with libelf, lets see... > > Argh, give up, now it is refusing to build shared libraries: > >   checking for native ELF system... no >   configure: warning: shared libraries not supported for arc-snps-linux-uclibc > > And also it says ELF64 isn't support and thus GElf, some more details, > anyway. >    > > > > > > > > Not sure if you will be willing to take that path. > > > > > > OTOH, you could use standalone argp @ http://www.lysator.liu.se/~nisse/archive but > > > it seems that requires a bunch of patches too - from looking into the > > > > > > > > > corresponding buildroot package folder. Give this a shot - otherwise it is easier > > > to just build a custom toolchain with pre-req packages from buildroot. Or can be > > > provided if you so deem fit ! > > Please, if you do that, then I'll be able to test more stuff, I already > had enough fun trying to get elfutils, argp-standalone and libelf built > on this env :-\ Please find a tarball with prebuilt toolchain for ARC HS38 by that link: https://www.dropbox.com/s/uvqla26pmq03h5u/br-2016.08-rc2-65-g11109fd-archs38.tar.gz?dl=0 Just FYI I built it from today's BR sources, i.e. this is gcc6 based with all latest fixes for ARC on top of vanilla gcc 6.1.1. That's a defconfig I used in Buildroot: -------------------->8--------------------- BR2_arcle=y BR2_archs38=y BR2_TOOLCHAIN_BUILDROOT_INET_RPC=y BR2_TOOLCHAIN_BUILDROOT_LOCALE=y BR2_PACKAGE_ELFUTILS=y -------------------->8--------------------- -Alexey