Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp78316yba; Wed, 15 May 2019 19:23:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5jzoCF3UAKHodQRkzAyqzMXfnvzKvaMgTktH244cO8LG/JE6s34mXoT6ACk+9LcPSmxJp X-Received: by 2002:a63:6841:: with SMTP id d62mr48372137pgc.17.1557973384201; Wed, 15 May 2019 19:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557973384; cv=none; d=google.com; s=arc-20160816; b=L/QpRBDLFFCcYdSFr6Nqyp9YBDRsaQTZYuzRkSBU9El7+WlBMPHHCGmurnXnjHwqiC wOmL+FyL1Lug7J/6gSbVCG+EXSpE++t1FFk0GuYA89mAuoqemT0/kS+jeIbvrxr57X3q MN8SVkv1I3s7Yff80ZjNKNZhB9Vovho8bCrCm727FPanAEo54vleRU1UaS8ITT18SiGA 7goBhNq1K4UgzY16TuAh5FEN7GQ0f+GRD4xGpxm+zIIsh1SjrZ62XQPAPOxFANYYZc0C OndIVIy7Uhi3AinXuu2VULH26WFdAYWKmt18b6VyrmMqst57irj2LsG7yTFBdBWYoslZ 86OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=M+V5T5utH9odB86P9iI3FFTIVLeFYxPq/hothBTxFmI=; b=gm5sqg1M98FiUzRX46si5Woz/Si5EIdNykIeFq6NOHrEubt7eIMYmn4V88X4ow5SOE ALkxPGD8FzpraAXs33Z1eKhLFFfihp2lexCy3XryvQ68JAbQJW5QikxTGajhfMNo7VT7 WqCqy8vq2pk8q0uiVuvnds0TuawYPDxDKgkOYeuoWBOYc5HKB66iHNzDmsBLZQfavTGx QPrNFii2BjmDvzrXhf6NkycGHWx6rxckPWDzHuGQJbH8ch6lCxe5z/bcuQyFb6vxC7xU KooI9gHDOIGMEoA1/oGve7Ke/eEeS5tnMjCkxNu9rQLhRf5BBh5zhllCgJb140lNlbIx T5+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68si3422457pga.147.2019.05.15.19.22.48; Wed, 15 May 2019 19:23:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726429AbfEPCVp (ORCPT + 99 others); Wed, 15 May 2019 22:21:45 -0400 Received: from mga14.intel.com ([192.55.52.115]:2362 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbfEPCVp (ORCPT ); Wed, 15 May 2019 22:21:45 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 May 2019 19:21:44 -0700 X-ExtLoop1: 1 Received: from hanghang-mobl1.ccr.corp.intel.com (HELO wfg-t570.sh.intel.com) ([10.254.212.137]) by FMSMGA003.fm.intel.com with ESMTP; 15 May 2019 19:21:37 -0700 Received: from wfg by wfg-t570.sh.intel.com with local (Exim 4.89) (envelope-from ) id 1hR61X-0006ww-Te; Thu, 16 May 2019 10:21:35 +0800 Date: Thu, 16 May 2019 10:21:35 +0800 From: Fengguang Wu To: Nathan Chancellor Cc: Arnd Bergmann , Leon Romanovsky , Jason Gunthorpe , "kbuild@01.org" , Ariel Levkovich , Eli Cohen , Mark Bloch , Doug Ledford , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Philip Li , Rong Chen Subject: Re: undefined reference to `__aeabi_uldivmod' after 25c13324d03d ("IB/mlx5: Add steering SW ICM device memory type") Message-ID: <20190516022135.6tnf3xx5mzctutxz@wfg-t540p.sh.intel.com> References: <20190514194510.GA15465@archlinux-i9> <20190515003202.GA14522@ziepe.ca> <20190515050331.GC5225@mtr-leonro.mtl.com> <20190515064043.GA944@archlinux-i9> <20190515064918.GA4807@archlinux-i9> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190515064918.GA4807@archlinux-i9> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC current 0day kbuild test maintainers Philip and Rong. -fengguang On Tue, May 14, 2019 at 11:49:18PM -0700, Nathan Chancellor wrote: >On Wed, May 15, 2019 at 08:42:13AM +0200, Arnd Bergmann wrote: >> On Wed, May 15, 2019 at 8:40 AM Nathan Chancellor >> wrote: >> > On Wed, May 15, 2019 at 08:31:49AM +0200, Arnd Bergmann wrote: >> > > On Wed, May 15, 2019 at 7:04 AM Leon Romanovsky wrote: >> > > > On Tue, May 14, 2019 at 09:32:02PM -0300, Jason Gunthorpe wrote: >> > > > > On Tue, May 14, 2019 at 12:45:10PM -0700, Nathan Chancellor wrote: >> > > > > > Hi all, >> > > > > > >> > > > > > I checked the RDMA mailing list and trees and I haven't seen this >> > > > > > reported/fixed yet (forgive me if it has) but when building for arm32 >> > > > > > with multi_v7_defconfig and the following configs (distilled from >> > > > > > allyesconfig): >> > > > > > >> > > > > > CONFIG_INFINIBAND=y >> > > > > > CONFIG_INFINIBAND_ON_DEMAND_PAGING=y >> > > > > > CONFIG_INFINIBAND_USER_ACCESS=y >> > > > > > CONFIG_MLX5_CORE=y >> > > > > > CONFIG_MLX5_INFINIBAND=y >> > > > > > >> > > > > > The following link time errors occur: >> > > > > > >> > > > > > arm-linux-gnueabi-ld: drivers/infiniband/hw/mlx5/main.o: in function `mlx5_ib_alloc_dm': >> > > > > > main.c:(.text+0x60c): undefined reference to `__aeabi_uldivmod' >> > > > > > arm-linux-gnueabi-ld: drivers/infiniband/hw/mlx5/cmd.o: in function `mlx5_cmd_alloc_sw_icm': >> > > > > > cmd.c:(.text+0x6d4): undefined reference to `__aeabi_uldivmod' >> > > > > > arm-linux-gnueabi-ld: drivers/infiniband/hw/mlx5/cmd.o: in function `mlx5_cmd_dealloc_sw_icm': >> > > > > > cmd.c:(.text+0x9ec): undefined reference to `__aeabi_uldivmod' >> > > > > >> > > > > Fengguang, I'm surprised that 0-day didn't report this earlier.. >> > > > >> > > > I got many successful emails after I pushed this patch to 0-day testing. >> > > >> > > The long division warnings can compiler specific, and depend on certain >> > > optimization options, as compilers can optimize out certain divisions and >> > > replace them with multiplications and/or shifts, or prove that they can be >> > > replaced with a 32-bit division. If this is a case that gcc manages to >> > > optimize but clang does not, it might be worth looking into whether an >> > > optimization can be added to clang, in addition to improving the source. >> > >> > While I did run initially run into this with clang, the errors above are >> > with gcc (mainly to show this was going to be a universal problem and >> > not just something with clang). >> >> Which gcc version did you use here? Anything particularly old or particularly >> new? I think 0-day is on a fairly recent gcc-8, but not the latest gcc-9 >> release. > >8.2.0 it seems (I've been meaning to build from the 9.x branch though >since it appears that Arch's arm-linux-gnueabi-gcc isn't going to get >updated since it's in the AUR). >