Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp793795rwb; Thu, 1 Dec 2022 08:26:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf7M1Vr7imAOpb2zPzGj7EnC51okPqjIeKBRyerDPQQhTwrsTo0moHlEXTRPJXz/2LMYbiP6 X-Received: by 2002:a05:6402:2217:b0:468:fd95:eb4 with SMTP id cq23-20020a056402221700b00468fd950eb4mr49580124edb.230.1669911968556; Thu, 01 Dec 2022 08:26:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669911968; cv=none; d=google.com; s=arc-20160816; b=cSNZnX/R2rKk1NBX2aeIzrlcyr1sQPrXZUnUjJvL21F3eVjoU6W9yTgs3ehtZnmi8z k3fSCLQZWip4bfMXlN6ZhxMSe1osQOtNgYCUIGG6oVjT+ZwYpY7Va6+3qQHtwITq+I0+ W3QIl2Q2nT3ofPdDYqumBuC0s8m0XRUBo8XhvNTty6XZGywEGEIPlfrDhFA+hu4WG9xq ksJCBjydia3M59/xh/zTc8oxnOzdFWMiaUp2lPxqlcN4lAC4AP3+YfUmO3b0BkZMCxy2 BJcRsRuW/yg1AHp9ay9wwaWbS0rS3iO3AGa+vnkXgOXqdL4xNXYwZtgeI530TbUh+S6A f0jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=iz6LqZNPS0aBWMmTuZjugUJg8+g3aUv6Y3WZkCQjMkQ=; b=n03YzhMCfkpx0bbGIWoRjbERqY2gVUc+305bKuN4fw00DvOGxJOZLlVHumCre2YeNJ GFdDWPg7J8XH3spHxZd3CvvTF3zketTk7QZzdqkKT24UCAdEylQmlik3+U4gyxI1yyff GVBFGKOKmQJzwfrMmQRJXJHVLcs5F6GFumpUeyvzOoyV+/xqWdmDrcRqY8p/q45iUPvB gbd+7a2hVGndVLwgFI0YhxADepI4dMja8JY/T+Bmrt4xW04ThGrqwnhgTKNASq7dhq38 HSjiGrp+YNaSetX5GF215Tw2LhWY3amJiOYuOOKL0BiJr9K4LaJBSMciRtNLwxlhQBdN 8JwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=WpUF6RVu; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb39-20020a1709076da700b007aeec2bf18esi4331638ejc.529.2022.12.01.08.25.48; Thu, 01 Dec 2022 08:26:08 -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=@bootlin.com header.s=gm1 header.b=WpUF6RVu; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231866AbiLAQNk (ORCPT + 82 others); Thu, 1 Dec 2022 11:13:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229974AbiLAQNh (ORCPT ); Thu, 1 Dec 2022 11:13:37 -0500 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87E88F77 for ; Thu, 1 Dec 2022 08:13:36 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 3A755C0005; Thu, 1 Dec 2022 16:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1669911214; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iz6LqZNPS0aBWMmTuZjugUJg8+g3aUv6Y3WZkCQjMkQ=; b=WpUF6RVuK5ycXMz/AtC1/CKhbkNJHz9rf56zlpex5/jIMkF2W7B5ZsYys3Os1ynDtV3cvN Jwa9BJ8jOsAkT+ri1iEdHy2lN60cw0YNk7EiHN23LKzq1HVknPKjgZOB8zpv/xWMQMOIk0 oTooFDVw0eIT6xa724U2dvukvH5L/4/Woftvp+ybSe14DZWC4QNCY9Auo8l3RmQwKDdzaM F0RCLiFHlcT5Ga7+FGfVDmWBp+hd7TjSKW+DonAQuZWK+1mGSgXiinjjfAJ2CCMDSMMJCj PnNV3VD+XFBuQthKS7g+s9TtFoYGWMVFA+tJEzNz4iXdvI/UaoqDBoacSkib4g== Date: Thu, 1 Dec 2022 17:13:31 +0100 From: Miquel Raynal To: Nathan Chancellor 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: <20221201171331.42f05097@xps-13> In-Reply-To: References: <202212010140.pIueEBNb-lkp@intel.com> <20221201091610.524f7786@xps-13> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Hi Nathan, nathan@kernel.org wrote on Thu, 1 Dec 2022 09:00:57 -0700: > On Thu, Dec 01, 2022 at 09:16:10AM +0100, Miquel Raynal wrote: > > Hi Mikhail, Hiroshi, > >=20 > > lkp@intel.com wrote on Thu, 1 Dec 2022 01:46:36 +0800: > > =20 > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linu= x.git master > > > head: 01f856ae6d0ca5ad0505b79bf2d22d7ca439b2a1 > > > commit: 9b78ef0c7997052e9eaa0f7a4513d546fa17358c mtd: parsers: add su= pport 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=3D1 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/li= nux.git/commit/?id=3D9b78ef0c7997052e9eaa0f7a4513d546fa17358c > > > git remote add linus https://git.kernel.org/pub/scm/linux/ker= nel/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=3D$HOME/0day COMPILER=3Dclang make.cros= s W=3D1 O=3Dbuild_dir ARCH=3Dmips SHELL=3D/bin/bash > > >=20 > > > If you fix the issue, kindly add following tag where applicable > > > | Reported-by: kernel test robot > > >=20 > > > All errors (new ones prefixed by >>): > > > =20 > > > >> ld.lld: error: undefined symbol: __udivdi3 =20 > > > >>> referenced by scpart.c > > > >>> mtd/parsers/scpart.o:(scpart_parse) in archive d= rivers/built-in.a =20 > > > =20 > >=20 > > Can you please try to reproduce this with a mips toolchain as advised > > and send a fix? =20 >=20 > For what it's worth, this is likely our bug: >=20 > https://github.com/ClangBuiltLinux/linux/issues/1635 >=20 > It sounds like there are some merged LLVM patches that should help but I > guess not based on this report... Ah, yeah, thanks a lot for the share. Cheers, Miqu=C3=A8l