Return-Path: Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by mail.openembedded.org (Postfix) with ESMTP id 4442A6C5D1 for ; Thu, 20 Dec 2018 18:02:43 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id wBKI1oIw006373 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 20 Dec 2018 10:02:00 -0800 Received: from soho-mhatle-m.local (172.25.36.226) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.408.0; Thu, 20 Dec 2018 10:01:39 -0800 To: "Burton, Ross" , "Purdie, Richard" References: <20181220001545.12618-1-richard.purdie@linuxfoundation.org> From: Mark Hatle Openpgp: preference=signencrypt Autocrypt: addr=mark.hatle@windriver.com; prefer-encrypt=mutual; keydata= mQENBFYKxFgBCACt/pzutBp6p/xVKTFJjHbM3KpQKCblyot/YP+bpTr51Hrc5xDXBQhoG7TC aIRvRIvbhEevEQK9y04gW3JK/5lobq5ORebolcsHlYBUvpNeIPjupLQwGvz/TPtrLRNGLqDC rvsM6OA2XbQ2bwzxWaSQS3ImE2O2iXOZn9HhThMGeDB4Nff3fgUvXOTDIrgWOn9K2DgLL7Yc zkUIlFdj+Nraksd/7BSk8oH6tjeBVhFqSFvKta9QxWgdr58oPaTYaW/xNqUjlLrbJuMw/MSe xzuYfdfDfm6J8kRjMOnwQ0n8svJElzqAk+d83ow38gpGQ+LkjGgnf8ZFJ4rUJFADroX3ABEB AAG0JU1hcmsgSGF0bGUgPG1hcmsuaGF0bGVAd2luZHJpdmVyLmNvbT6JATcEEwEIACEFAlYK xFgCGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQfv796/r0vvlvZAf9Gs+eN320yhRW V/fZCsngKhmOK4v3HrTwFrkSmoD9QHQiE/5IPdNacHwIPwZx07tNBohB8xOeNqCPRYRBwGhA AnxKOPyd0nnm6ZhPzbA57v4x3IGRQr4QzvcBTASJq91l3Ew4lpAslyx5w1DPPqRD7G8ycDKg peKyDwmdkvCunVisSAQI3XIMq2y230biTO98tDPEezg+lg+yTsz9ZT33F5KNuWrpf8VL5fG/ mt+kAv7wtsx/KTRbqhH3iFXF6eBSwMjAfTXFlkLfbM9riJGXrWEl9n2S2R3cDHNHug0lb8f4 whK370KEO4OwRKIYW/VUBmzk5XZUE9DTlDSV8ycsrrkBDQRWCsRYAQgAwK3FuHCE+HW3YWdH PUjeSn5p//xJ57u8g2rng8zm9zNjmYgpPv5UxozaD9i2jf4mlQLHGGOezhHae8K4Nj70oVcv 8AmwcrJa9i9WL1oy/9R3fHMWf/Ctt9VXTO0qlCuq6PDzaUfvsXR61aJIjTKNQTOjCLjY1vXm VSewUgARysmA8WrjTfwGBihMBxAX0+kIjx8nOlam0WvekMBXZ0AbS56oTLRxYao6DI3GeB/N oWPy/5DfuTKaSdM0Pf8al20x9RuNN5/HLMlyDH/k8bIa1xd9aAqW+Feiw5gC107V2E6ULyIy q6em2UrsmIRxrvpHqbNgQKqvTehJ+V/i4g/uOwARAQABiQEfBBgBCAAJBQJWCsRYAhsMAAoJ EH7+/ev69L755XAH/3ZcNhooqd9OBhFkvXm1iWZ8EoC7motWqVn2oEyxoonsg8AD9kFXiN+T dYp7dH99EZu9q4ptj56AXm4uHzOgywL/5/V2TY6twCGAjUGzDjAB5gzoi+JLIBlDiyOip0eL QswIhRk473xy3j8DA4oVamnSPWgyNJ+qsdt37YWDzoDFFvtDoRU7Eb+znfIMDKzlny0XU/8L cW1bNHJlpv/78GPdfP4tjysEd8MuA5jf5o5w4XqcwTqalffEJtQ/s3pbkstEi7qm5uPui5Kt gq6YYLSqcSNe0GWAF9/T+qwyo7burSTxUWCWtMmlXdAQLW9SynLhB3Jbch0nFAh0fCKi6yY= Organization: Wind River Systems Message-ID: Date: Thu, 20 Dec 2018 12:01:38 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: Cc: OE-core Subject: Re: [PATCH 1/4] glibc: Remove site_config and glibc-initial X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2018 18:02:43 -0000 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit On 12/20/18 7:02 AM, Burton, Ross wrote: > On Thu, 20 Dec 2018 at 11:59, wrote: >> On Thu, 2018-12-20 at 11:50 +0000, Burton, Ross wrote: >>> As the only users of siteconfig are now zlib and ncurses, should we >>> just rip it out entirely leaving a gap for a fresh implementation? >> >> I'm cc'ing Mark who has a lot of the history on this. >> >> I think we're at a point where we likely need to re-implement this in a >> different way... I do think it's still needed/desired. However, I absolutely agree we need to rethink/reimplement the generation aspect of the site-config part. > I did some poking at this a few weeks ago, basically turned off > siteconfig by removing the 'inherit siteconfig' from > autotools.bbclass. > > Interestingly, at the time for core-image-minimal this actually > resulted in the build being faster. Some recipes were a little slower > to configure, specifically coreutils had the biggest slowdown as it > appears to probe for every syscall in the world (via gnulib) but that > only took seven seconds longer. However, as the siteconfig generation > is done by writing a custom configure.ac and then doing the > autoconf/configure dance, these slowdowns were balanced out by glibc > taking an extra 30 seconds. > > It appears that disabling siteconfig for glibc is an acceptable > compromise if we can not build glibc and gcc twice. glibc is something we've never been concerned with 'doing the wrong thing'. It's also very possible that we could use glibc's autoconf output as a basis for the site-config items. Before the way the system worked is that it tried to determine the 'stupid defaults(*)' that autoconf is always looking for, as well as many of the syscalls/headers that are common. As far as zlib/ncurses being the only things that augmented them, when this was originally implemented many years ago -- those items were the most commonly used by other configure scripts. So adding those defaults when zlib and/or ncurses was provided by the system offered a measurable difference in the performance of configure. We expected over time additional things would be added (but obviously they never were). Stuff like gnome, glib, etc... So my recommendation is that the siteconfig is something (new recipe) that either runs right after the system libc (and everything else depends on that uses autoconf) -- or runs at the end of the libc command. The goal of this is to provide a core set of system wide definitions in a way we know will produce a consistent set for any autoconf user. (If other systems, like cmake could make use of this type of thing -- it's something to consider as well.) We also still want a way that manual definitions can be setup on a global basis for a given architecture. (We do want these limited for the most part, since maintenance is overlooked -- but we've certainly seen cases in the past where configure works like this: Yes, No, Cross -- where cross defines 'No' and never checks. This functions, but ends up in a significantly less optimized situation, and these are incredibly difficult to identify. [Using QEMU isn't an option, as QEMU doesn't know -all- potential architectures...] * stupid defaults - sizeof char, short, int, long, void, long long, etc... Anyway, my 2 cents. I'd like to see how this goes with it stripped out for the next few weeks.. and I'll back back early January where we can evaluate my assumptions/experiences above and see how this tracks with current reality. --Mark > Ross >