Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp809442rwb; Thu, 1 Dec 2022 08:37:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf6X4v+h8AFpFPZXSb2DlSsvf8dL4BP4tH0qB2o+wmKK93fRSJBJmQ+/4LgtwFBHSGMoOPnb X-Received: by 2002:a50:eb46:0:b0:46a:6426:f458 with SMTP id z6-20020a50eb46000000b0046a6426f458mr35627807edp.119.1669912640030; Thu, 01 Dec 2022 08:37:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669912640; cv=none; d=google.com; s=arc-20160816; b=Q5XJGiLON3N7hDVH2JztdHEVpiEDLFoV6ydFIB9nnMdmL5CVtjoTzhGIidegRXZBh0 sj5cHv2hBTE2IbWanRE9S/5DWh9Zk+WABIar8LEfreASxw6ArgXVQ4o2fA6lKZaV4uJo PqgR0kS1LF0ce0nHHwkhbiSYRVpDBnk7wNuZ1xNTkD4l8K95R8GQX8JRhyHK9zIPrXF9 8IhMK6b/Hr76498OPdWAPWHKtE1OP9Yvj0z4zHnhCiSLhCvqLWrXjXTNVKfimNdalkdQ sXFWkPtuzF2s0ZVXHbGL+REQ0VsHxiD9dkEL+A+r/Opw33LmXnlqk4oWQNhNp33SvPzc 7NAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fANO+qaDI2IEhDzW7DmOApr8bSNIJWeppClu0WzdQB8=; b=qqVBqu18jbGccAQ6D2KgJWh3M1EN1pJTp8dNpP/5Rd+xAiIaxvy9Xd1M8uDbcuWjbp mSxCsJApsR1WjADq4z0PGl5TYAetRRaKa6H3DtqiyUaB2L1+af3zKn8frKTHJ6rgKz8M HtnddJU0P3Z2p1rszuT/XqeP0oQ4pHdA6LFP2+rnSh4jAp+UcWKqba4ccJVARJY4d55H P/wc5I9oZnqJV8NIm00I5PI3kiK+k+wg2biVyEJ4Mq2pPKRD0QYBFw5BriSOjJfzoALB i/Z6WkFFCy5Fld4HIcB/hEb6I4SDtZMzVZJvR2fNDOjnAKD3H1DcLj8KZpfY/HR1hgab qhoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WyXHaE7U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a50f614000000b004615a57e292si4630828edn.426.2022.12.01.08.36.58; Thu, 01 Dec 2022 08:37:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WyXHaE7U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232096AbiLAQBF (ORCPT + 83 others); Thu, 1 Dec 2022 11:01:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230366AbiLAQBD (ORCPT ); Thu, 1 Dec 2022 11:01:03 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56F06B0DDB for ; Thu, 1 Dec 2022 08:01:02 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0223CB81F5D for ; Thu, 1 Dec 2022 16:01:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 320F0C433C1; Thu, 1 Dec 2022 16:00:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669910459; bh=0D/sjN/A+0rsU/ONrX3z3ntgIBfDN4k8Kf5eOrgywsg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WyXHaE7UfpiSavmT6vQS4jiBSuk8iUhhtklwNflBsd5hthuVIh0L/meqN/w8aQjFL pay8eEk7brCxUtrc2BDRFp8Uqgw3nERM4wYO+IuEwn3DpRx9EaAohl3eC2dRPAs8p8 rdAlJGCIoJpEhqTgR2cIAvZSF8LrbbiaI89DnnHCPTx7gxGHHRNrZqdsDzh5j51cxz THwguBclT1VvzsrE3yXOqA6ggNVgA1KMxW0OKA/dxCR1hEQBNspCE0g8NgzK1i9SFl T4ztCksZWkHWF6DPZMYc7xFXx8lWa6HaOUULgiq7kPPZ9lRQMnBHnROfw/2pFUvf3c KxddVhInUyFdQ== Date: Thu, 1 Dec 2022 09:00:57 -0700 From: Nathan Chancellor To: Miquel Raynal Cc: kernel test robot , Mikhail Zhilkin , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, NOGUCHI Hiroshi Subject: Re: ld.lld: error: undefined symbol: __udivdi3 Message-ID: References: <202212010140.pIueEBNb-lkp@intel.com> <20221201091610.524f7786@xps-13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221201091610.524f7786@xps-13> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Thu, Dec 01, 2022 at 09:16:10AM +0100, Miquel Raynal wrote: > Hi Mikhail, Hiroshi, > > lkp@intel.com wrote on Thu, 1 Dec 2022 01:46:36 +0800: > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > head: 01f856ae6d0ca5ad0505b79bf2d22d7ca439b2a1 > > commit: 9b78ef0c7997052e9eaa0f7a4513d546fa17358c mtd: parsers: add support for Sercomm partitions > > date: 6 months ago > > config: mips-randconfig-r033-20221128 > > compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 6e4cea55f0d1104408b26ac574566a0e4de48036) > > 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 mips cross compiling tool for clang build > > # apt-get install binutils-mipsel-linux-gnu > > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b78ef0c7997052e9eaa0f7a4513d546fa17358c > > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > git fetch --no-tags linus master > > git checkout 9b78ef0c7997052e9eaa0f7a4513d546fa17358c > > # save the config file > > mkdir build_dir && cp config build_dir/.config > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash > > > > If you fix the issue, kindly add following tag where applicable > > | Reported-by: kernel test robot > > > > All errors (new ones prefixed by >>): > > > > >> ld.lld: error: undefined symbol: __udivdi3 > > >>> referenced by scpart.c > > >>> mtd/parsers/scpart.o:(scpart_parse) in archive drivers/built-in.a > > > > Can you please try to reproduce this with a mips toolchain as advised > and send a fix? For what it's worth, this is likely our bug: https://github.com/ClangBuiltLinux/linux/issues/1635 It sounds like there are some merged LLVM patches that should help but I guess not based on this report... Cheers, Nathan