Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp164899rwb; Tue, 25 Jul 2023 13:44:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlE7hyBOybpkrcFudZsSxt80Dj3nrtQwPJHyiRWp9OPTImGk1WctTZOSR4swjaciStXJYuE+ X-Received: by 2002:a17:906:5306:b0:97d:ee82:920a with SMTP id h6-20020a170906530600b0097dee82920amr12873623ejo.74.1690317894570; Tue, 25 Jul 2023 13:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690317894; cv=none; d=google.com; s=arc-20160816; b=iu3Jp8hBni5wWLXbSuanWifek84DxF/shiVL1jZDe1nC4McKz/nNs4jWtcBPKa0CpD c01IuCp+u0Vhom1h1oXTC+bqRde4La0ikqTEeE+QiXQOmblQnNWa1Az6Ng5LzzdFEBb3 +TvRn1VHyFfJif69SmC8UU9EohtfQFgTBIfrOiwH/1Vnfe9nBQYvQRPV2OQsc5zYRfhh 0JXpNA3u8c3L063Bm/YZBB1kDacj4tZGBeJbWtuWKSXXTv4E+g7fbBhWhMoJLYbL3NJX UHW8yumi2jND9xeKCDZFsleMxV59xJDb0rhib+Abed5nklQknnf8zXBol8KIikYsafBz Cexw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=qJEsrU7cBDMwZeC2M57GjOWExhdRcxpGq0Gi9aMOpUg=; fh=yjdtSZQbuVMJN2bgWZN6ZPUehJj6otebFpDa2ciQYoc=; b=u/L2mwPq1Z2koWvRCLy4MBnNHr5Cnb+PrkvYnTKKggTDfgAF9f8ZGMiRLVqYgr2Gmz ViYGflsdXiEBVMxopbAON2zN/AXFIgFlugbIsM15iixcwnJxdTgRK3HWJw7cTr5/WrIh uFRBD4RgCItOgmHRWvesL4CzIG5oJ14nPhE7UP2Dwf21ZLCWh6C1iv/vJA3FNKGriZZE AhzN+CNbpdicgjrtVNF2fQpsxiPEjFmfp1eEr74LSmLtRWxuGYIhpJwdKIGhpYquvsrL rb4geolXuVJ+9+ErZ6QnLmwRcGBHy3BhhF2NGy553FzflFRugoAtxQCIbyY4dkSxxSLz 29Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tesarici.cz header.s=mail header.b=dL1Hx7qx; 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=tesarici.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gl13-20020a170906e0cd00b009934728f33bsi8282327ejb.533.2023.07.25.13.44.29; Tue, 25 Jul 2023 13:44:54 -0700 (PDT) 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=@tesarici.cz header.s=mail header.b=dL1Hx7qx; 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=tesarici.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230466AbjGYUEj (ORCPT + 99 others); Tue, 25 Jul 2023 16:04:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbjGYUEg (ORCPT ); Tue, 25 Jul 2023 16:04:36 -0400 Received: from bee.tesarici.cz (bee.tesarici.cz [IPv6:2a03:3b40:fe:2d4::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A0A9128 for ; Tue, 25 Jul 2023 13:04:35 -0700 (PDT) Received: from meshulam.tesarici.cz (dynamic-2a00-1028-83b8-1e7a-4427-cc85-6706-c595.ipv6.o2.cz [IPv6:2a00:1028:83b8:1e7a:4427:cc85:6706:c595]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bee.tesarici.cz (Postfix) with ESMTPSA id 987A7170D81; Tue, 25 Jul 2023 22:04:31 +0200 (CEST) Authentication-Results: mail.tesarici.cz; dmarc=fail (p=none dis=none) header.from=tesarici.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tesarici.cz; s=mail; t=1690315471; bh=v6vWD2JWeY3h5eKwB7YTy6cdcr65Rp6VaKVLa8L8fZI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dL1Hx7qxHsXNIE2e6RX3MKuHhRQrhoIa3VT9kXLYwDhCdP2cGAmLymK7i8dQqgFrA 6p5GIKy1TRvaTtjRRzyMPrIJC8q3/3G3eU2mkRcUGUM4yHLPoPR+Zrii83mZvgX9Gk Tcp9/dGDqOhD248XE6iSwINqfHA1zSNW91OnNrqfXqquvz7f/KlRe0ig6K19oxN4hS ZpQ5QBqveIcBWX2+Urhu7Bl2UyHTbNMNOeO6YK8VO2PhxT325/gebmdIeUdamTnpoe jDJ1QLWVPDWqw5pT4a/8GY5eg7/FCeFDF8IxfBwBnJ8TjTB1TgQt8y0JiW6ySspSWg 8bQrwATt/+lxQ== Date: Tue, 25 Jul 2023 22:04:30 +0200 From: Petr =?UTF-8?B?VGVzYcWZw61r?= To: kernel test robot Cc: Petr Tesarik , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Li Huafei , Liao Chang , Masahiro Yamada , Alyssa Ross , Nick Desaulniers , Ricardo Ribalda , Kees Cook , Heiko Stuebner , Li Zhengyu , "open list:RISC-V ARCHITECTURE" , open list , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Roberto Sassu Subject: Re: [PATCH v1 3/3] riscv/purgatory: do not link with string.o Message-ID: <20230725220430.22de806b@meshulam.tesarici.cz> In-Reply-To: <202307260325.E3Uh9dYf-lkp@intel.com> References: <202307260325.E3Uh9dYf-lkp@intel.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wed, 26 Jul 2023 03:36:39 +0800 kernel test robot wrote: > Hi Petr, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on kees/for-next/pstore] > [also build test ERROR on kees/for-next/kspp linus/master v6.5-rc3 next-20230725] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > url: https://github.com/intel-lab-lkp/linux/commits/Petr-Tesarik/riscv-kexec-handle-R_RISCV_CALL_PLT-relocation-type/20230725-165116 > base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/pstore > patch link: https://lore.kernel.org/r/a083f38c7c3acd6ac9542228e36947be30b58188.1690274483.git.petr.tesarik.ext%40huawei.com > patch subject: [PATCH v1 3/3] riscv/purgatory: do not link with string.o > config: riscv-randconfig-r001-20230725 (https://download.01.org/0day-ci/archive/20230726/202307260325.E3Uh9dYf-lkp@intel.com/config) > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) > reproduce: (https://download.01.org/0day-ci/archive/20230726/202307260325.E3Uh9dYf-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202307260325.E3Uh9dYf-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > >> ld.lld: error: undefined symbol: memcmp > >>> referenced by ctype.c > >>> arch/riscv/purgatory/purgatory.ro:(purgatory) Ah, I see... In my build, it was inlined by gcc (GCC-13), but I cannot rely on that. Too bad... OTOH I don't think it's worth implementing full support for GOT, especially for functions that are not needed. I would rather either write a RISC-V implementation of memcmp(), or split memcmp() from lib/string.c. Stay tuned for v2. Petr T