[{"id":1759689,"web_url":"http://patchwork.ozlabs.org/comment/1759689/","msgid":"<20170829210915.GB3338@scaer>","list_archive_url":null,"date":"2017-08-29T21:09:15","subject":"Re: [Buildroot] [PATCH] glibc: needs kernel headers >= 4.5 on\n\tmips(64)","submitter":{"id":13903,"url":"http://patchwork.ozlabs.org/api/people/13903/","name":"Yann E. MORIN","email":"yann.morin.1998@free.fr"},"content":"Romain, All,\n\nOn 2017-08-20 16:41 +0200, Romain Naour spake thusly:\n> Since glibc 2.23 [1]:\n> sysdeps/unix/sysv/linux/mips/configure.ac\n> [...]\n> if test -z \"$arch_minimum_kernel\"; then\n>   if test x$libc_cv_mips_nan2008 = xyes; then\n>     arch_minimum_kernel=4.5.0\n>   fi\n> fi\n> \n> This mean that if nan2008 support is requested (i.e BR2_MIPS_NAN_2008\n> in Buildroot) the minimum kernel headers version is 4.5.0 (not 3.2.0).\n> \n> To simplify the dependancy handling in Buildroot we add this dependency\n> for all mips(64), even if BR2_MIPS_NAN_2008 is not selected.\n> \n> [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=d5f2798a0ac9d5ad8ad7a506a2f840035135e2d2\n> \n> Signed-off-by: Romain Naour <romain.naour@gmail.com>\n> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\n> Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com>\n> ---\n> \n> This is for master.\n> \n> I tried to use BR2_MIPS_NAN_2008 but it trigger a circular dependency in Kconfig.\n\nAfter the discussion in this thread and on IRC, I've marked this patch\nas \"Changes Requested\".\n\nNow I just have to polish my own series that has a fix for that issue...\n\nThanks! ;-)\n\nRegards,\nYann E. MORIN.\n\n>  toolchain/toolchain-buildroot/Config.in | 10 ++++++++--\n>  1 file changed, 8 insertions(+), 2 deletions(-)\n> \n> diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in\n> index f47001f..967da1a 100644\n> --- a/toolchain/toolchain-buildroot/Config.in\n> +++ b/toolchain/toolchain-buildroot/Config.in\n> @@ -43,8 +43,9 @@ config BR2_TOOLCHAIN_BUILDROOT_UCLIBC\n>  config BR2_TOOLCHAIN_BUILDROOT_GLIBC\n>  \tbool \"glibc\"\n>  \tdepends on BR2_arm         || BR2_armeb      || BR2_aarch64 || \\\n> -\t\t   BR2_aarch64_be  || BR2_i386       || BR2_mips    || \\\n> -\t\t   BR2_mipsel      || BR2_mips64     || BR2_mips64el|| \\\n> +\t\t   BR2_aarch64_be  || BR2_i386       || \\\n> +\t\t   ((BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) && \\\n> +\t\t   BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5) || \\\n>  \t\t   BR2_powerpc     || BR2_powerpc64  || BR2_powerpc64le || \\\n>  \t\t   BR2_sh          || BR2_sparc64    || BR2_x86_64 || \\\n>  \t\t   BR2_microblaze || BR2_nios2\n> @@ -65,6 +66,11 @@ comment \"glibc needs a toolchain w/ dynamic library, kernel headers >= 3.2\"\n>  \tdepends on BR2_USE_MMU\n>  \tdepends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2\n>  \n> +# glibc require kernel headers >= 4.5 if nan2008 support is selected.\n> +comment \"glibc on mips(64) needs a toolchain w/ headers >= 4.5\"\n> +\tdepends on BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el\n> +\tdepends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5\n> +\n>  config BR2_TOOLCHAIN_BUILDROOT_MUSL\n>  \tbool \"musl\"\n>  \tdepends on BR2_aarch64\t  || BR2_arm     || BR2_armeb     || BR2_i386 || \\\n> -- \n> 2.9.5\n> \n> _______________________________________________\n> buildroot mailing list\n> buildroot@busybox.net\n> http://lists.busybox.net/mailman/listinfo/buildroot","headers":{"Return-Path":"<buildroot-bounces@busybox.net>","X-Original-To":["incoming@patchwork.ozlabs.org","buildroot@lists.busybox.net"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","buildroot@osuosl.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=busybox.net\n\t(client-ip=140.211.166.137; helo=fraxinus.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"C/xCt9DT\"; dkim-atps=neutral"],"Received":["from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xhh8q0xzLz9ryT\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 07:09:31 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 1B9D786A90;\n\tTue, 29 Aug 2017 21:09:28 +0000 (UTC)","from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id hL_xRHQ4gMPT; Tue, 29 Aug 2017 21:09:24 +0000 (UTC)","from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 909C987496;\n\tTue, 29 Aug 2017 21:09:24 +0000 (UTC)","from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 887181C0762\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 29 Aug 2017 21:09:22 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 834DB30844\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 29 Aug 2017 21:09:22 +0000 (UTC)","from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id Ruu4QUMwc2Cr for <buildroot@lists.busybox.net>;\n\tTue, 29 Aug 2017 21:09:20 +0000 (UTC)","from mail-wm0-f67.google.com (mail-wm0-f67.google.com\n\t[74.125.82.67])\n\tby silver.osuosl.org (Postfix) with ESMTPS id E1B57267C4\n\tfor <buildroot@buildroot.org>; Tue, 29 Aug 2017 21:09:19 +0000 (UTC)","by mail-wm0-f67.google.com with SMTP id l19so4967263wmi.1\n\tfor <buildroot@buildroot.org>; Tue, 29 Aug 2017 14:09:19 -0700 (PDT)","from ymorin.is-a-geek.org\n\t(2a01cb0886107300b492928e94d9b408.ipv6.abo.wanadoo.fr.\n\t[2a01:cb08:8610:7300:b492:928e:94d9:b408])\n\tby smtp.gmail.com with ESMTPSA id\n\tc139sm701245wmh.32.2017.08.29.14.09.16\n\t(version=TLS1 cipher=AES128-SHA bits=128/128);\n\tTue, 29 Aug 2017 14:09:17 -0700 (PDT)","by ymorin.is-a-geek.org (sSMTP sendmail emulation);\n\tTue, 29 Aug 2017 23:09:15 +0200"],"X-Virus-Scanned":["amavisd-new at osuosl.org","amavisd-new at osuosl.org"],"X-Greylist":"domain auto-whitelisted by SQLgrey-1.7.6","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=hdMgd0APYhCmIs15IrAgtxmpBgv+nC4B9UcuiRH/9WA=;\n\tb=C/xCt9DTvenOprBSqJ6IKy9F3bQ+2o8I3Uy3GGGIaVhvHJ0RoQbQBYcuqZGsrbJlYQ\n\tQxIu8yR5wlsa0PFVQKbrVxVCb/II8Gz4HW2+6lX1bCDGAEE1j2yHyps1LPRzFdVPXTb0\n\tZEEPMjyfdGGWpH8CNZG2Hizs8bXrjK/6XdXbYPQp2nlc781ndFVjNHd6hkNkIEPuz1Pg\n\twazDljlcu9RbxHi3xL0WNO30Cw7X1IqXkOf9nYF6g0Yecs0ed+bEspYRYL4pGhmx8bnQ\n\tqRvkXC9KC25OvGdjzgqEoAPh9il2yrcfpJR9uwHbN6VVFIhg+xATFoKh4cB0YZw7wNiP\n\tQoAg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:date:from:to:cc:subject:message-id\n\t:references:mime-version:content-disposition:in-reply-to:user-agent; \n\tbh=hdMgd0APYhCmIs15IrAgtxmpBgv+nC4B9UcuiRH/9WA=;\n\tb=LXRYLLlmESKtbqQB/8tRLaAlQquCd/xREln1eeyHqUY+AsjYKUQvYXCM9Qf5RVdNZ0\n\tzvj16bGiyeoFtL6aXUNQE3/Pgs77ZV+A8o9EirY3PmSabyrGm+NUTcwf6JUcx1WiCZam\n\toLm42SJVnsLlb3Tr97C+T1CmEWywproxyQCUgd88VEHTkuFIN2l5ebMYpR9hSu9bmJ4k\n\tNSvwJP5ViVVvEHAAnn3/J7lYkM7vXlVxIbFqSUhldD0GrthoL94o1r3HHu0uqdlWliYb\n\tPGkL3CfgF1Z1F6UDnk76sMJz+bKPJG/Zj7506WZa/P9uzEezlNL9AH50pxqRoCFsw6Ro\n\tGm0Q==","X-Gm-Message-State":"AHYfb5iBhTX3IlkF53a0xPAbsm2g6QGS5UCFU4MOFZoUYAHUOH5V6PZT\n\tCYxiOj8LVzZ+cg==","X-Received":"by 10.28.45.208 with SMTP id t199mr638124wmt.126.1504040958294; \n\tTue, 29 Aug 2017 14:09:18 -0700 (PDT)","Date":"Tue, 29 Aug 2017 23:09:15 +0200","From":"\"Yann E. MORIN\" <yann.morin.1998@free.fr>","To":"Romain Naour <romain.naour@gmail.com>","Message-ID":"<20170829210915.GB3338@scaer>","References":"<20170820144154.15347-1-romain.naour@gmail.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170820144154.15347-1-romain.naour@gmail.com>","User-Agent":"Mutt/1.5.22 (2013-10-16)","Cc":"Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,\n\tbuildroot@buildroot.org","Subject":"Re: [Buildroot] [PATCH] glibc: needs kernel headers >= 4.5 on\n\tmips(64)","X-BeenThere":"buildroot@busybox.net","X-Mailman-Version":"2.1.18-1","Precedence":"list","List-Id":"Discussion and development of buildroot <buildroot.busybox.net>","List-Unsubscribe":"<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>","List-Archive":"<http://lists.busybox.net/pipermail/buildroot/>","List-Post":"<mailto:buildroot@busybox.net>","List-Help":"<mailto:buildroot-request@busybox.net?subject=help>","List-Subscribe":"<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"buildroot-bounces@busybox.net","Sender":"\"buildroot\" <buildroot-bounces@busybox.net>"}}]