Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2142794yba; Mon, 22 Apr 2019 00:55:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtrNKzRw2vAINvX4gRNFmpD7FXGsfqkPBzmEY4w45emOxump3fgRhNcJ8oprbPzjKuf0uF X-Received: by 2002:a63:4f1c:: with SMTP id d28mr17451753pgb.144.1555919723221; Mon, 22 Apr 2019 00:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555919723; cv=none; d=google.com; s=arc-20160816; b=iHAK6M8gwJ7j8BX6LSUqzTwMtmsCVO4hMT8J/ltcgJWcK6chq/IpIl6FSCsK5Iwb5W InNJb1eqPBv99ztL1uFIlrLeYMnxC61yRVO+WFhC8VDYC2IcxryTxucqakh/2ZGk26p2 su9rEWQPp718p4dT+uB59iySGea9p0GJyw+/a9efnxfTlIW3wgOalpBfL//DA01VU9i9 bG/Mzj0CCxnGX/nKIWpWcFn4HjGdKyYdhGtCLO/vDgsN3EVafuhrt+8Hu7t2GCMTMXES 8CEobAKik9pQ8U+lzFjn07915mF218giJphweP7ayUgZcLIavT7U2HBASeAAAdMLgt38 UaEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=9bgXPkKLhBF6vZXEFTfrl0O6ig2EV3XWJGDSuYwhKO4=; b=ysfuNJo7YNpcQkcpebcBmlLKSn01Bsie6I6hSpGw+BH+xJPg7IR4YtCtB7WEHocbEu hNAhqfjWj6zieLNnjZ/abf/9XpXqn4vvDeTLxeFKcxzYjVWn4nDOcbATG56MJd7kbuLr n8T72c2LN35xcubcj7jj3qQBufW/uJyXdqjU9TJMhzbmwt4IrXIkaiA1DdqYi5p9uzcS j4BFmUNePmCO0VNrsChn1oh2Ty0PWTEhr067ENywB1hFAqKflt7clyXWOJQf66honSTV EYlePv24EWM4wkpan5fIqcpXgWfIXbGnYfE6eqXYCTboK1N7JdHbxvCwv6zyLTgcg2TJ xZzQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si12580181pll.127.2019.04.22.00.55.08; Mon, 22 Apr 2019 00:55:23 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726835AbfDVHyT (ORCPT + 99 others); Mon, 22 Apr 2019 03:54:19 -0400 Received: from mail01.asahi-net.or.jp ([202.224.55.13]:43460 "EHLO mail01.asahi-net.or.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbfDVHyS (ORCPT ); Mon, 22 Apr 2019 03:54:18 -0400 Received: from h61-195-96-97.vps.ablenet.jp (h61-195-96-97.vps.ablenet.jp [61.195.96.97]) (Authenticated sender: PQ4Y-STU) by mail01.asahi-net.or.jp (Postfix) with ESMTPA id C4A1C11B04C; Mon, 22 Apr 2019 16:54:15 +0900 (JST) Received: from yo-satoh-debian.ysato.ml (ZM005235.ppp.dion.ne.jp [222.8.5.235]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id 308CF240082; Mon, 22 Apr 2019 16:54:14 +0900 (JST) Date: Mon, 22 Apr 2019 16:54:10 +0900 Message-ID: <87mukimq59.wl-ysato@users.sourceforge.jp> From: Yoshinori Sato To: Randy Dunlap Cc: kbuild test robot , kbuild-all@01.org, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List , paul.mundt@gmail.com, Rich Felker , Linux-sh list Subject: Re: arch/sh/kernel/cpu/sh2/clock-sh7619.o:undefined reference to `followparent_recalc' In-Reply-To: References: <201904201516.DdPznV5M%lkp@intel.com> <87sgubcvoj.wl-ysato@users.sourceforge.jp> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 22 Apr 2019 00:24:21 +0900, Randy Dunlap wrote: > > On 4/21/19 6:52 AM, Yoshinori Sato wrote: > > On Sun, 21 Apr 2019 04:34:36 +0900, > > Randy Dunlap wrote: > >> > >> On 4/20/19 12:40 AM, kbuild test robot wrote: > >>> Hi Randy, > >>> > >>> It's probably a bug fix that unveils the link errors. > >>> > >>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > >>> head: 371dd432ab39f7bc55d6ec77d63b430285627e04 > >>> commit: acaf892ecbf5be7710ae05a61fd43c668f68ad95 sh: fix multiple function definition build errors > >>> date: 2 weeks ago > >>> config: sh-allmodconfig (attached as .config) > >>> compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 > >>> reproduce: > >>> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > >>> chmod +x ~/bin/make.cross > >>> git checkout acaf892ecbf5be7710ae05a61fd43c668f68ad95 > >>> # save the attached .config to linux build tree > >>> GCC_VERSION=7.2.0 make.cross ARCH=sh > >> > >> Hi, > >> > >> Once again, the question is the validity of the SH2 .config file in this case > >> (that was attached). > >> > >> I don't believe that it is valid because CONFIG_SH_DEVICE_TREE=y, > >> which selects COMMON_CLK, and there is no followparent_recalc() in the > >> COMMON_CLK API. > >> > >> Also, while CONFIG_HAVE_CLK=y, drivers/sh/Makefile prevents that from > >> building clk/core.c, which could provide followparent_recalc(): > >> > >> ifneq ($(CONFIG_COMMON_CLK),y) > >> obj-$(CONFIG_HAVE_CLK) += clk/ > >> endif > >> > >> Hm, maybe that's where the problem is. I'll look into that more. > >> > > > > Yes. > > Selected target (CONFIG_SH_7619_SOLUTION_ENGINE) is non devicetree > > and used superh specific clk modules. > > So allyesconfig output is incorrect. > > > > I fixed Kconfig to output the correct config. > > Thanks for that. > The patch fixes this problem in my builds. OK. Thanks. > However, now I see these build errors: > > ERROR: "__ashiftrt_r4_28" [fs/udf/udf.ko] undefined! > ERROR: "__ashiftrt_r4_26" [drivers/rtc/rtc-x1205.ko] undefined! > ERROR: "__ashiftrt_r4_25" [drivers/rtc/rtc-pcf2123.ko] undefined! > ERROR: "__ashiftrt_r4_28" [drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko] undefined! > ERROR: "__ashiftrt_r4_25" [drivers/input/tablet/gtco.ko] undefined! > ERROR: "__ashiftrt_r4_26" [drivers/input/mouse/psmouse.ko] undefined! > ERROR: "__ashiftrt_r4_28" [drivers/input/mouse/psmouse.ko] undefined! > ERROR: "__ashiftrt_r4_25" [drivers/iio/pressure/bmp280.ko] undefined! > ERROR: "__ashiftrt_r4_26" [drivers/iio/dac/ad5764.ko] undefined! > ERROR: "__ashiftrt_r4_26" [drivers/iio/accel/mma7660.ko] undefined! > ERROR: "__ashiftrt_r4_25" [drivers/iio/accel/dmard06.ko] undefined! > ERROR: "__ashiftrt_r4_26" [drivers/iio/accel/bma220_spi.ko] undefined! > ERROR: "__ashiftrt_r4_25" [drivers/crypto/hisilicon/sec/hisi_sec.ko] undefined! > > Is this just a toolchain problem? > > I am using the gcc 8.1.0 tools from > https://mirrors.edge.kernel.org/pub/tools/crosstool/ > It looks libgcc function. sh port using private build libgcc. It missing this function. We need added __ashiftrt_r4 variant. > > thanks. > -- > ~Randy -- Yosinori Sato