Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp546120pxu; Wed, 25 Nov 2020 09:26:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfhklLdyZKYdXFzNDINpc9ibeErYWYPZVP9OfqJcHzpcvJEEFj85TBOLeYAsVC2zUHyg8r X-Received: by 2002:a05:6402:1350:: with SMTP id y16mr4320453edw.360.1606325181033; Wed, 25 Nov 2020 09:26:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606325181; cv=none; d=google.com; s=arc-20160816; b=ZyHIYwVDRkEPt1Hhu0m4/zVG0SW6jdTevS+bK0a8/GkFW3WaFfXU6ldLtkVoyPh/CK 30x7NNgWlmOO36MqOtuHY65PN/CCr8Eho6jIjr7RRvI7GiDow3HRNW4fllDziNzUt+e9 lmupDcvSzx1TLMcPEQeRdR2OW2WG4NCLIzAkt6sJ9bCXMCMwKDSaf9lUbdDW4f22/LtO 8SD9nPsqAeowPfPLj67NpD2A86OwE9/CUrfec87cB1kKuL5/3jZt+DVKJqte88dqLudJ njZSx6sOHmiRPk7xfubhr6Jgk/G+n5l87Mwg4F/2QHgmDALEE9KuO8subFEEstAyRwCr OK9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=MW8U021JzvFtVr7JpE11QNz129nE9ceQfCdsjjgn81w=; b=oBDvSseCQj2IBw8aoqktGYRLhvlI9SvM3CIcfrQ3q+/bBrj6iZ+5xrzC3b0c+vZO5l mpj/0eZS43T17fDsQKlGTQsM7p9VOi8ppdTLYKyIVd00gXqBqeJD+cTA/isfTz5gFpgn 5IjL/R9DV1pmd11fhT85Gl8sbZdU/osQYcQak8Chw4Cfj9GL9jAyVEUlGPFmfgsilPF+ 0TDV7SeY+z+UZB2jkzgLSYp/BFj9payxaUCc7+wSU+dbN5hCAErk6QO5vIfdEWqcA63j zRXgjFYbSLG2kiV3J+2FsyUlFojycH7QjNgdinqhc8Lom4Pn/Czfoo2TcDCvO/srY00v 7qtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N48gmdP3; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si1509092edj.143.2020.11.25.09.25.57; Wed, 25 Nov 2020 09:26:21 -0800 (PST) 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=@linaro.org header.s=google header.b=N48gmdP3; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731768AbgKYRXO (ORCPT + 99 others); Wed, 25 Nov 2020 12:23:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730695AbgKYRXN (ORCPT ); Wed, 25 Nov 2020 12:23:13 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 755C8C061A4F for ; Wed, 25 Nov 2020 09:23:13 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id o9so4136706ejg.1 for ; Wed, 25 Nov 2020 09:23:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=MW8U021JzvFtVr7JpE11QNz129nE9ceQfCdsjjgn81w=; b=N48gmdP3/E4zK4dbKtHwQGb7p2a7xOFxdstz1RiqBMkooyN0+QynZaApOiC5TRWSLR sgY+iodVhoJqe+wrM5CCfon6gEHXv9ZG7XXhvRE/ysVsDFyWqEk/vaEzhlrWF1oX2U1d pIMzEwSQdEu25Wm+6C+oWphBV2iZ8AR2XEFuw8cMj1nmyB5i7x1cSaw+ADufLhpaZaiP uSfql3GxAnR6OSJYhnXcsUsRxq1biX4UwEsqWq4T/ybRtEPzNiChqpMLSUHHA647vc6V q2rsPum8EqAZLVVTVn4FPOKWpMEQvXvE5zgjv65bjmXwg+B0HGA5o5KMJjRHg60zcFhE Tv5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MW8U021JzvFtVr7JpE11QNz129nE9ceQfCdsjjgn81w=; b=VDyGAelyffym7jz7Sj/71qIjE3RGsFevhSXQsOpIn1j7IFDIjISwgXweEiqKqOB273 y1U3bdgNfbnZezzJzszMT76mKXu8uCqXAiEutt4eMDz9ZMSmWXJ6Uyh03LNr9VnlNZxr 5ucKYYcNx628YvHF8AdnwL4AhUmIP/4DHGNwF9NKG/Ocqn7xTQiSRFYrQZBJQyyG0VGW F4Zm8A5rvenZk5RUYhjJUFMW9EID9NrGQSB+B17/zPrDMKDxqUF+9YpWvfFGpwKJUoai h90glgD7EZwMeGAPQhwAcxd8uDpQ08ljJALoHjm8HRIjPSnM0KXBnz/8gDnb4w/koEth +1lw== X-Gm-Message-State: AOAM532by71e8pZe908UvBQrjRJo/h0rew3DA11ilfIFVib6MoSaPSML qkSMcYGwIgRCpxB4PojWTtvGrcdUwLTMT8XumZYtng== X-Received: by 2002:a17:906:f881:: with SMTP id lg1mr4014615ejb.133.1606324991996; Wed, 25 Nov 2020 09:23:11 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Wed, 25 Nov 2020 22:53:00 +0530 Message-ID: Subject: MIPS + clang-11 + allnoconfig / tinyconfig builds failed To: linux-mips@vger.kernel.org, open list , tsbogend@alpha.franken.de, xie.he.0141@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Recently we have setup clang build and found that, MIPS + clang-11 + allnoconfig build failed MIPS + clang-11 + tinyconfig build failed MIPS + clang-10 + allnoconfig build failed MIPS + clang-10 + tinyconfig build failed We have noticed these build failures on - stable-4.19 - stable-5.4 - stable-5.9 - mainline - next-master FYI, The defconfig builds are successful. BTW, May I know what are the configs you build often ? Steps to reproduce build failure: ----------------------------------------- # sudo pip3 install -U tuxmake # tuxmake --runtime docker --target-arch mips --toolchain clang-11 --kconfig allnoconfig # tuxmake --runtime docker --target-arch mips --toolchain clang-11 --kconfig tinyconfig Build failed log: ake --silent --keep-going --jobs=16 O=/home/tuxbuild/.cache/tuxmake/builds/2/tmp ARCH=mips CROSS_COMPILE=mips-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache clang' allnoconfig make --silent --keep-going --jobs=16 O=/home/tuxbuild/.cache/tuxmake/builds/2/tmp ARCH=mips CROSS_COMPILE=mips-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache clang' /builds/1kl9SVppm6wRdzlQ3UcQKIBaUrx/arch/mips/vdso/elf.S:14:1: warning: DWARF2 only supports one section per compilation unit .pushsection .note.Linux, "a",@note ; .balign 4 ; .long 2f - 1f ; .long 4484f - 3f ; .long 0 ; 1:.asciz "Linux" ; 2:.balign 4 ; 3: ^ /builds/1kl9SVppm6wRdzlQ3UcQKIBaUrx/arch/mips/vdso/elf.S:34:2: warning: DWARF2 only supports one section per compilation unit .section .mips_abiflags, "a" ^ /builds/1kl9SVppm6wRdzlQ3UcQKIBaUrx/arch/mips/lib/uncached.c:45:6: warning: variable 'sp' is uninitialized when used here [-Wuninitialized] if (sp >= (long)CKSEG0 && sp < (long)CKSEG2) ^~ /builds/1kl9SVppm6wRdzlQ3UcQKIBaUrx/arch/mips/lib/uncached.c:40:18: note: initialize the variable 'sp' to silence this warning register long sp __asm__("$sp"); ^ = 0 1 warning generated. WARNING: modpost: vmlinux.o(.text+0x1a124): Section mismatch in reference from the function r4k_cache_init() to the function .init.text:loongson3_sc_init() The function r4k_cache_init() references the function __init loongson3_sc_init(). This is often because r4k_cache_init lacks a __init annotation or the annotation of loongson3_sc_init is wrong. WARNING: modpost: vmlinux.o(.text+0x1f1c8): Section mismatch in reference from the function mips_sc_init() to the function .init.text:mips_sc_probe() The function mips_sc_init() references the function __init mips_sc_probe(). This is often because mips_sc_init lacks a __init annotation or the annotation of mips_sc_probe is wrong. FATAL: modpost: Section mismatches detected. Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them. make[2]: *** [/builds/1kl9SVppm6wRdzlQ3UcQKIBaUrx/scripts/Makefile.modpost:59: vmlinux.symvers] Error 1 -- Linaro LKFT https://lkft.linaro.org