Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3820521pxf; Mon, 29 Mar 2021 12:22:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfiaMmv57mFKZopEE4Gdi0nEGrCXvC1yCJon6dXFFyOYM2nOpT0Y3jIC/ALoo34x+X+Swk X-Received: by 2002:a17:906:cd12:: with SMTP id oz18mr30246285ejb.498.1617045768864; Mon, 29 Mar 2021 12:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617045768; cv=none; d=google.com; s=arc-20160816; b=hAz/+g7O46PMGFbs67yzVDK+H1IVLjHFNbm/7gfycLa5n3zgCcPY9wxBen5kWSV3PH M9Mp+htty4EgVLLMFUrTcbWAlHczhHG3dn7w73alpZ3MVil+t/AIEHtanIC4z2nwhznY imdYp2D4JF1n3oS4243PY2zOHOA64B5tZG2Tjf4zJQSW3BzAvWLcy6Ha0a6Ocn9MyP9o dzJL0XPTCxr8Rx+Ae0OKUj/9pitZIDSu8r32cIcKj7XOQq0j+3aN4aZ2zcPvToHaZAR0 T3kZxx+QR4D85djKYU2e3+EnGyXQO8NeJPdE656dHTqq07UPqV4uYRO0DNqap+M5Db3F dx8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FvLD+PBfEDR5RGMD5FUigiiQrG3A/zwzq8Ry41sJqeo=; b=Vppqztqfi3h1BRjHmn0PVpNzuCPRMB0yeuC7Afr0cNoo+tgf3uHeVEaEhXQDMhfeBj dVfd30JTtAMiXeF3RG+n7uVQcwZ5yNd+8844Db3mGJmhNKTlk8Dq3KufHw35RkFiX7Xa K3ZtOqbr7ICE1z/s6G7Ak/28hX5GLMYbNaWsz8A6ZwL4GKgMoSr+A5Ew0Foul/RSomOT ruIve1K3OQ/9gF1Q/aGKW7jJlwC5yXzLbEsB/XBHvb9TOk8H7uDj7xhG2hU/JLLYVaTk e2eecucESRfwN5WsHtfWOM/qbg+TcDF6APNaLAu5ve0N0XLkwaJC49ADkkj9NadIHugz 4Kxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I+0T1dIv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q14si12707560edw.414.2021.03.29.12.22.26; Mon, 29 Mar 2021 12:22:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I+0T1dIv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230271AbhC2TV1 (ORCPT + 99 others); Mon, 29 Mar 2021 15:21:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229955AbhC2TUp (ORCPT ); Mon, 29 Mar 2021 15:20:45 -0400 Received: from mail-vs1-xe34.google.com (mail-vs1-xe34.google.com [IPv6:2607:f8b0:4864:20::e34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FDF6C061574 for ; Mon, 29 Mar 2021 12:20:45 -0700 (PDT) Received: by mail-vs1-xe34.google.com with SMTP id f19so2113589vsl.10 for ; Mon, 29 Mar 2021 12:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FvLD+PBfEDR5RGMD5FUigiiQrG3A/zwzq8Ry41sJqeo=; b=I+0T1dIvk8JG1w0iMxG5sY7HAIZ1KywN2bGq84hDhC/hvOHQxPcmDcwWd4r7mZaUiv auHW90otn/DhujB8rBznYKDkeiix4aDWe3XnX+Z+zU1rwDxMHPs1RC/q3ecyI1kjauJx zJdIxs4MRafp/skdtrk+fVNGPFJ7osW6QAeuYg3hs0vH3kc/zCEuZjZiwgvfwsSahM1J 05x3E+JsWnNhz2swzeAOy9snwzH/Lo3W+wHvb5yDD1hp4U88ZYEkxeqb16ibdYRxFUa/ 9/tFIgwMSKqPevZra8MKr3sQEois0LnyYN5MWI3Pd7k4we3JWAeSyR6aQvdhP4nfq9Tt ABkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FvLD+PBfEDR5RGMD5FUigiiQrG3A/zwzq8Ry41sJqeo=; b=BXetyMm22wH0VO/LWRqBSLqYi1Ik3mJ7UZVWK2Jg+AS59EZHFkT3pANK8jKMZgghGX KZEIFRMSY1Pe9m13R52L+gouVx10Ad/pzOiCugnSrwdASpZjEuH+8AA5xEoZ3kHSyrkT g2iFMTdpLbPie3fchixpK593hWdce3oU30kGweiZIamGXXhvOp1jgxnfLYZsp8SdniC2 liRC3QXkpHov8cyxADuOvQchJg/jcmqmwPzWl+ohUUcLzTrcS4ghCxF9k4NeUPvxqRlM 96/gaj1lwgDu98kzx+aIBuf31UsdG2ZHVbjLN7h4dka0vZjrbHn+AvQBaw5nRxiyRh1z Vv0Q== X-Gm-Message-State: AOAM533bGyCnayMarvvxrdH3jhTq+ytDPNzsxbIwbPimFCRCpk074cjr rUvRaMQ825p1lyR3us7HmaZeApzsIl/YqiT8RgQVqvz7E7M= X-Received: by 2002:a67:1ac7:: with SMTP id a190mr10259146vsa.18.1617045644023; Mon, 29 Mar 2021 12:20:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Fawad Lateef Date: Mon, 29 Mar 2021 21:20:32 +0200 Message-ID: Subject: Re: Compiling kernel-3.4.xxx with gcc-9.x. Need some help. To: Greg KH Cc: kernelnewbies , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Mon, 29 Mar 2021 at 06:57, Greg KH wrote: > > On Sun, Mar 28, 2021 at 10:20:50PM +0200, Fawad Lateef wrote: > > Hi > > > > I am using an Olimex A20 SOM with NAND and due to some binary blob for > > NAND driver, I am stuck with the sunxi kernel 3.4.xxx version. (Repo > > here: https://github.com/linux-sunxi/linux-sunxi) > > Please work with the vendor that is forcing you to use this obsolete and > insecure kernel version. You are paying for that support, and they are > the only ones that can support you. > The problem is vendor Olimex now have eMMC based SOM which is supported by mainline kernel _but_ they still selling NAND SOM and only supporting 3.4 kernel (as this is the only latest version from sunxi with NAND support, after that sunxi is now moved away from NAND too). > > I am currently using buildroot-2016 and gcc-5.5 for building the > > kernel and every other package needed. > > > > Now the requirement is to move to the latest version of gcc-9.x, so > > that we can have glibc++ provided by the gcc-9.1 toolchain. > > > > Main problem for moving to later versions of buildroot is the kernel > > 3.4 which we couldn't to work with gcc-6 a few years ago _but_ now the > > gcc-9.1 requirement is mandatory so now have to look into compiling > > linux-3.4 with gcc-9.1 or above. > > > > Now I need some help. > > > > -- Is it realistic to expect 3.4 kernel compiling and boot > > successfully with gcc-9.1? > > No. It took a lot of work and effort just to get the 4.4.y kernel to > work with that gcc version. > Ok, thanks for the information. Any pointers on what to look at if I had to go this route for 3.4 kernel? > Again, please work with the company that you are already paying for > support from, they can do this for you. > From Olimex they say it's an open hardware platform, so I really can't expect them to do anything for it. (https://www.olimex.com/Products/SOM/A20/A20-SOM/ NAND version) Thanks and regards, Fawad Lateef > good luck! > > greg k-h