From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A6E5C43217 for ; Thu, 1 Dec 2022 16:13:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231776AbiLAQNl (ORCPT ); Thu, 1 Dec 2022 11:13:41 -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 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