Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1894839pxb; Sun, 18 Apr 2021 10:26:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxodnRXpwRlqIZgcuWZcN+xqZlRlecYoDLnCZYQgibIiUxabwmOaKmGEg3/vkMx5DgMWwIB X-Received: by 2002:a17:90a:3b0f:: with SMTP id d15mr13955681pjc.235.1618766772606; Sun, 18 Apr 2021 10:26:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618766772; cv=none; d=google.com; s=arc-20160816; b=C5QaUYTrjokbr9V1eLorcHdtift0goUC588uomJ4I+/eRFXflv+BK01OVqvdjt35VN 7MHkP/zp93qZwNuFpaB3Tkx6JSzNDZ16WfdWz1rwfl/Upzc+iapRKFYcjNk66otnanH6 eFionX4E6C/U9Ki8fM7x1/XsiT5YH2cpt9sb+QMBnAEHb3e+1uz8jtAG2AR8sr7SuPQG oK5sptbiuT3vb+/Oc9NsJQlX/om+mHVRQ+keHfjQldhNCik34ansW922gbVojl9bkGGO Svxu57ce/tK4O8SVPpFfkkoyCS1xFehOeH14TlyWZmAIGWSaqX+JwFy5uS61AmQgbFmm ybdA== 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=4m9H5rbd0Mtg5kZhpTF+t95XIg2YArKMffn0TP0UtbA=; b=yoM3LTxsGXPEmpjOinEbcOYJYjRcx51CiHq44WDGQyQFMhnvbpJF6AL/2g4lNyd4oH plvQgx5tOoA2l0xEX2D1ISLnoMiYoa2hjT29lgk6lFvUyPOjK4sFQgyoV4DGitfN/Zpt YSq8P0vDtQby4aWaW1ZuTl5fkoGTiyE/8AUJ6sSMDoAAmxZzhqucuBLyvvul7f2HqzTO Cc8Prtq+pm4ta1nBwA5ehFWNtFScX6WVKwY0kwd/6SMMrQX0NoAjoxLTQ8nDaCegdxJn bz+37rvMZyFqmT4FRwcAuxGZ7sypL6YEPWfKUXmSiqHcKy7l1XyxyyGTetW44vmHYXlQ cVNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uM5scnEm; 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 j6si13862273pgp.46.2021.04.18.10.26.00; Sun, 18 Apr 2021 10:26:12 -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=uM5scnEm; 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 S232082AbhDRRZz (ORCPT + 99 others); Sun, 18 Apr 2021 13:25:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbhDRRZw (ORCPT ); Sun, 18 Apr 2021 13:25:52 -0400 Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2573C06174A for ; Sun, 18 Apr 2021 10:25:21 -0700 (PDT) Received: by mail-vs1-xe33.google.com with SMTP id i9so1547903vsb.13 for ; Sun, 18 Apr 2021 10:25:21 -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=4m9H5rbd0Mtg5kZhpTF+t95XIg2YArKMffn0TP0UtbA=; b=uM5scnEmn3BHKWfBLPG37Jv0IWgQrmZMvcDbcRIedbqAci38mK3VNaI9jZM3OnWDXJ 6iMCtJZhhYZYM7h596sm6KiKE7E02d88izaxTUzlLKjvgiVLPWz6av9MBShLmLmIDZRY TSTP3xKxLYCbHecURfRj5zIcaFYkXAQs4FzC/2M0bs3Zzv6JS7SrYZhzQSg8iokzb8ki 17WYy1iAnxnueyE6Qcyb11ltrrPKs3GO6KJnxd0g4m9xvMHsX2becJKWmPiX/wW5xAJG CvZN5u0yJPzBfK7Ix5HwmLuS2eyBGT9XkmZoP75RnWO9ao3NPe+rW6osac2TIWWXaqQc xm9g== 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=4m9H5rbd0Mtg5kZhpTF+t95XIg2YArKMffn0TP0UtbA=; b=L53m0TWLMXj9mv7hGYQTDe+Kkguqzygls2+Ma4YW2QDIp006svUrsF+F6zxF367J8W LycKi2+yaMrkPTvtDCdeK1GsGPkayj5/l/C/KaTrBJGGY6UVaTaerg+qCbVFNoV/g+q8 xe9oho5yQdfNg3q+bOIk6SfmdPFoJ3yaAZLWYhtFg9A9OQMjlCquxtuA9UmWHzEGdJpw iAcz2NA1tgjRdXFftiTwdiwYh7rmm64pFwNBNtO5RFnYZp1YLtQ+Ju91oMPbqKJiZvy1 XLZDbRler/4JcXiiDCjvfELaMlEftbeNBWtDCvzj4Ii5sHaIY4LF2eGiYN16IsBCT5ns 5S+Q== X-Gm-Message-State: AOAM5307/tax19pCP818Igp1jg83NxWR+98y4F+bA5P5SfWVlavCeE5w LoyaLZLBiJDO+Fk6W8PN1sIX+GtVoU+vBAPNNvg= X-Received: by 2002:a67:7d02:: with SMTP id y2mr13064613vsc.18.1618766720979; Sun, 18 Apr 2021 10:25:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Fawad Lateef Date: Sun, 18 Apr 2021 19:25:08 +0200 Message-ID: Subject: Re: Compiling kernel-3.4.xxx with gcc-9.x. Need some help. To: Greg KH Cc: Arnd Bergmann , kernelnewbies , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, (Sending again as seems like I had rich-text available by mistake, so likely my message is rejected) On Tue, 30 Mar 2021 at 15:40, Greg KH wrote: > > On Tue, Mar 30, 2021 at 03:23:10PM +0200, Fawad Lateef wrote: > > So can I still use kernel-3.4 compiled with gcc-5.5, and boot full > > user-space with gcc-9.1? > > Yes, of course. > > > I was expecting it to be possible but might not work due to > > incompatibility? As I know that when I tried to compile buildroot-2019 > > (with latest version of openssl and others) it needs kernel headers > > and then I likely can't use 3.4 kernel. > > buildroot might be different, as that is how you are building your whole > system, but there is no dependency on the kernel and userspace to use > the same version of the compiler. Otherwise everyone would have to > rebuild the world for every time they updated their kernel, this isn't > the BSDs :) > I tried booting the userspace compiled with gcc-9.1 and kernel compiled with gcc-5.5. But seems like the kernel 3.4.111 is not compatible with user-space compiled with gcc-9.1. During boot getting error: "FATAL: kernel too old." (from init I believe) and then kernel Panics. Log (part) below: ------ [ 26.242878] registered taskstats version 1 [ 26.247522] axp20_buck3: incomplete constraints, leaving on [ 26.253314] axp20_buck2: incomplete constraints, leaving on [ 26.259161] axp20_ldo4: incomplete constraints, leaving on [ 26.264877] axp20_ldo3: incomplete constraints, leaving on [ 26.270581] axp20_ldo2: incomplete constraints, leaving on [ 26.276299] axp20_ldo1: incomplete constraints, leaving on [ 26.282059] sunxi-rtc sunxi-rtc: setting system clock to 2010-01-01 00:00:00 UTC (1262304000) [ 26.291136] Freeing init memory: 160K FATAL: kernel too old [ 26.308118] usb 3-1.1: New USB device found, idVendor=148f, idProduct=5572 [ 26.315022] usb 3-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 26.322322] usb 3-1.1: Product: 802.11 n WLAN [ 26.326730] usb 3-1.1: Manufacturer: Ralink [ 26.330908] usb 3-1.1: SerialNumber: 1.0 [ 26.335055] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 [ 26.335061] [ 26.344221] [] (unwind_backtrace+0x1/0x90) from [] (panic+0x6f/0x15c) [ 26.352400] [] (panic+0x6f/0x15c) from [] (do_exit+0x5ff/0x600) [ 26.360057] [] (do_exit+0x5ff/0x600) from [] (do_group_exit+0x25/0x78) [ 26.368318] [] (do_group_exit+0x25/0x78) from [] (__wake_up_parent+0x1/0x18) [ 26.377101] [] (__wake_up_parent+0x1/0x18) from [] (ret_fast_syscall+0x1/0x44) [ 26.386064] CPU1: stopping [ 26.388781] [] (unwind_backtrace+0x1/0x90) from [] (handle_IPI+0x157/0x170) [ 26.397477] [] (handle_IPI+0x157/0x170) from [] (gic_handle_irq+0x3f/0x40) [ 26.406085] [] (gic_handle_irq+0x3f/0x40) from [] (__irq_svc+0x3b/0x5c) [ 26.414427] Exception stack(0xef065f88 to 0xef065fd0) [ 26.419476] 5f80: ffffffed 00000001 1037d000 00000000 ef064000 c04d3c08 [ 26.427648] 5fa0: ef064000 ef064000 c04a9a10 ef064018 00000000 00000000 3b9aca00 ef065fd0 [ 26.435817] 5fc0: c000d469 c000d46a 60000033 ffffffff [ 26.440870] [] (__irq_svc+0x3b/0x5c) from [] (default_idle+0x1a/0x1c) [ 26.449048] [] (default_idle+0x1a/0x1c) from [] (cpu_idle+0x91/0x98) [ 26.457135] [] (cpu_idle+0x91/0x98) from [<40480bd9>] (0x40480bd9) [ 26.464181] Rebooting in 10 seconds.. [ 36.444472] Restarting Linux version 3.4.113 (flateef@flateef-XPS-13-9360) (gcc version 5.5.0 (Buildroot 2016.02-00152-g83a8d925e-dirty) ) #1 SMP Wed Mar 24 00:29:58 CET 2021 [ 36.444482] ----------------------------------------------------- Can I do something to make them work together? Thanks Fawad Lateef > thanks, > > greg k-h