Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1555656pxb; Tue, 8 Feb 2022 22:08:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZqzcIFl5rn28Xl+sm2Ylodi1UwoUnbt4ilBrUZd/eJCrL8o22fV+Kxti9eB3jB35hzK30 X-Received: by 2002:a17:90a:741:: with SMTP id s1mr1723551pje.161.1644386932058; Tue, 08 Feb 2022 22:08:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644386932; cv=none; d=google.com; s=arc-20160816; b=BippyObLDzwhjsp6efH/syzvhWc5L7NPl3/y7V2nP4fWK9AkqjseghtfYjt6gHsTqZ m4fWp+yCFYPSWrOWeiZXaw9lq3w+LeFXzAiPKJ4QJIXy7fN/2MaQETJc42unfMj1XPLY Gw6cOPsMHc16IzWmpGERwEJ17e7o52oHTMvPQBSQqiz0fsKKFl5emry+jrjjKMfjoN5R fiN6gdio9y0+Hn62kQA0X9LSJJ7r6JkXZO2Qe/e7je9gj/ft3edzCZLG+o7SRT6Dgho1 J9WXuQ+pPgecT6PTbD5LkG5Y3fGKzDPRicVSvicsXtKFpNF7avnAJ7BKB2oEDJNaYEzW xosQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=RHWZpvSxzAAjkopBzjofJUCTkq5dkoNiSzcZ/XUl+bE=; b=fuK0NxZ61ZH3UeYP6GJt3ZG+eIj6zUYhUJ++VLglKiARM27z97r5vC6v7MJH0IoY5p zNNy1X4bjTOveC6iAwvuGQ42Px23BopbyP54rmdBGWFiri265U0gF7pu7D5OfvgB/1l7 ZO6XT3TTwwUYhlDGhpsx9iN+evSW94GIPZR/jMncNEoMI4T4OxOXFtqdcwoDcZ95w7vK lhYOkur4f+F6WSaQTsYCTrYP1WtRpnShSUSz4h6YAoiIM3QTRFJKw+nwuh24mEl0bN52 O72XMr7+yfeRPMp341RMBsF+PRkuSblbVcSicxz5GJczlid7H0Ab5jIaKy03+HKw4kSx ZPuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b24si1733081pji.13.2022.02.08.22.08.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 22:08:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 58014E00D114; Tue, 8 Feb 2022 21:55:04 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238190AbiBGHzv (ORCPT + 99 others); Mon, 7 Feb 2022 02:55:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244064AbiBGHzI (ORCPT ); Mon, 7 Feb 2022 02:55:08 -0500 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF956C043185 for ; Sun, 6 Feb 2022 23:55:06 -0800 (PST) Received: by mail-ej1-f45.google.com with SMTP id st12so14606169ejc.4 for ; Sun, 06 Feb 2022 23:55:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=RHWZpvSxzAAjkopBzjofJUCTkq5dkoNiSzcZ/XUl+bE=; b=hj3YV5jA+QBRK1Ltbvqdd2714uevdHW7yMQro81W4fELtUgeMjsIUmOsLcrc4o4C0m wFUcH/NQeawzEQgRDDG0T+lfpJ52gV50JyftAmbEnN78DPyxxBXsw6+hq7rd0q64xDxP jOLgqgt3Sl9qGyQQRb+J0Xp46AOlX8OVV8tGZ/9LxiYuIiV+EYfTjFcT7fFPlFvzd1k9 HBS16syDfX/VjzeNUVaT7TI5NOWyU+dtTPvdUtG7FvYzJqbIz1dCSDqWRTqwzK7KuNSL dl089TxldbaZlRqeVbWI16DV3mvcB/xNX2LaR/++e2BC2A/dSe1gdDHDmxNW/aAMM44a SerA== X-Gm-Message-State: AOAM531bRsZcHUfEZa8HVmWR6VKf6Ax5BuDXaF6g99tzqijjqsd1GF/G dciB1zYdLAD8xkJ+a9R1SZA= X-Received: by 2002:a17:907:968f:: with SMTP id hd15mr8979929ejc.208.1644220505095; Sun, 06 Feb 2022 23:55:05 -0800 (PST) Received: from [192.168.0.86] (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.googlemail.com with ESMTPSA id c1sm3450139ejn.203.2022.02.06.23.55.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Feb 2022 23:55:04 -0800 (PST) Message-ID: <8c315714-ea7b-d3ec-f131-6beded67b479@kernel.org> Date: Mon, 7 Feb 2022 08:55:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: ld.lld: error: undefined symbol: socfpga_reset_init Content-Language: en-US To: Nathan Chancellor Cc: kernel test robot , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Dinh Nguyen References: <202202050539.Mtk9I4Ef-lkp@intel.com> <67f432e2-1bfd-29dc-f2ed-051b47ef0844@kernel.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/02/2022 01:51, Nathan Chancellor wrote: > Hi Krzysztof, > > On Sun, Feb 06, 2022 at 12:55:57PM +0100, Krzysztof Kozlowski wrote: >> On 04/02/2022 22:12, kernel test robot wrote: >>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >>> head: dcb85f85fa6f142aae1fe86f399d4503d49f2b60 >>> commit: 4483397b03536506535d611b0cb28a81a69e8edf ARM: socfpga: drop ARCH_SOCFPGA >>> date: 11 months ago >>> config: arm-socfpga_defconfig (https://download.01.org/0day-ci/archive/20220205/202202050539.Mtk9I4Ef-lkp@intel.com/config) >>> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a73e4ce6a59b01f0e37037761c1e6889d539d233) >>> reproduce (this is a W=1 build): >>> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross >>> chmod +x ~/bin/make.cross >>> # install arm cross compiling tool for clang build >>> # apt-get install binutils-arm-linux-gnueabi >>> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4483397b03536506535d611b0cb28a81a69e8edf >>> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >>> git fetch --no-tags linus master >>> git checkout 4483397b03536506535d611b0cb28a81a69e8edf >>> # save the config file to linux build tree >>> mkdir build_dir >>> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash >>> >>> If you fix the issue, kindly add following tag as appropriate >>> Reported-by: kernel test robot >>> >>> All errors (new ones prefixed by >>): >>> >>>>> ld.lld: error: undefined symbol: socfpga_reset_init >>> >>> referenced by socfpga.c >>> >>> socfpga.o:(socfpga_init_irq) in archive arch/arm/mach-socfpga/built-in.a >>> >>> referenced by socfpga.c >>> >>> socfpga.o:(socfpga_arria10_init_irq) in archive arch/arm/mach-socfpga/built-in.a >>> >> >> This looks like a false positive. On the socfpga defconfig arm build, >> the socfpga_reset_init() (drivers/reset/reset-socfpga.c) is built. >> >> I also could not reproduce it with GCC. > > I can reproduce this error with the configuration that the bot provides > at both 4483397b03536506535d611b0cb28a81a69e8edf and v5.17-rc3, even > with GCC: > > $ curl -LSso .config https://download.01.org/0day-ci/archive/20220205/202202050539.Mtk9I4Ef-lkp@intel.com/config > > $ make -skj"$(nproc)" ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- olddefconfig all > ... > arm-linux-gnueabi-ld: arch/arm/mach-socfpga/socfpga.o: in function `socfpga_init_irq': > socfpga.c:(.init.text+0x104): undefined reference to `socfpga_reset_init' > ... > > Whether or not this reproduces with the in-tree socfpga_defconfig, I am > not sure. Thanks for checking - it seems I misread (and find it confusing...) the report - that it is socfpga defconfig. It clearly says "config: arm-socfpga_defconfig"... I can reproduce it with the config from the URL. I'll work on fix. Best regards, Krzysztof