Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3762193rdb; Thu, 14 Sep 2023 01:34:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHahKzlziHJMRSgv7fIu/NqzgD0U4r9v18Atkf4mfAZ/zIqsVNTX/Q9oLv3G5Gez+2KOzWC X-Received: by 2002:a17:902:7242:b0:1c1:f27e:a55a with SMTP id c2-20020a170902724200b001c1f27ea55amr4698961pll.46.1694680462201; Thu, 14 Sep 2023 01:34:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694680462; cv=none; d=google.com; s=arc-20160816; b=lu7cZsigheepv94Ix6FtYseda5GfIJnWafldmt2UniKdL1Ow27hA03c0mmCt2TtjAW +NJA5Q/Kx2sBflYRv4SVfb1U68kkQ5db2BdnlCMcTJOJgKrK2atXvFLoxWUskLZ6xuIC bcrV22DltWZpkFii/b35o+wPLYlTySIqhI9XtkPMLtFOsRRnR1lr8uJw9DxS0Jongkm2 yXqU6CZxXf7Z/pZ7MpqlGkxKztDr8UL48bSxb7xAMdlpcNjmSpETGFsB7YEJRHHyhGLk AciZ7bTPjt2wb1M0opUh2Xq7PsMoeiaMV+ytEjh1neyUvDCLrb6qhVomUrUCkED/gqf7 JHJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=AR8bJKQq2kRIzPBxsuLRCTF0KRoYVldm+5UwuLnUruw=; fh=zh3KvGzIKq1gCSn/qBOCdOwwqF0MN6jY2j9sWHq+chw=; b=pyFGjkkcyjyilIXSsmg3r7QTdlcfa3TEXhopVNXRgla0lqoSue6dAdmrCTMK2Vv4mM XS0B/9hXa9EckudUUMG44VeDr8mk4gnWMdvlr3YnsLFF/0eQHusFFv85P4eE5WHYjEYL sjWYrjmuVrEBKcruyROQFeuBLveOQWJueSnGgfWaqAFuMhOgMvTuRVl/1i8uFAuRYT2A hFpcwrzk3AUJwyiMcfiC43y1sJuyAjWiyIYf8PiT5G9QzImm8Ir6Fa8qavFh9HIUtqgY mPORsSwA/toZMsUKkPQv7GHwB8a12O5LkH0tYRgUT/fnTOYjtLbQcahYORGBjVO1rWzD MRBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mWsLGTp+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id u2-20020a170902e5c200b001c3aed2db5dsi1270887plf.409.2023.09.14.01.34.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 01:34:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mWsLGTp+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 453A3831A49C; Wed, 13 Sep 2023 23:14:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232856AbjINGOV (ORCPT + 99 others); Thu, 14 Sep 2023 02:14:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230198AbjINGOU (ORCPT ); Thu, 14 Sep 2023 02:14:20 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D38FDF for ; Wed, 13 Sep 2023 23:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694672056; x=1726208056; h=date:from:to:cc:subject:message-id:mime-version; bh=Y3wKfPdCXsNeJ2WkONbQZoMRXCsRiwzJvyZSIbo4lzE=; b=mWsLGTp+XAqbDDhYxRq+rI/UMZyOAOqi4ZIxLB8APdbYVFhA4iDJHl9n zJjw3jgBKnuYMmgF4C/uyHcC0RMrF1nrkQ7KL1Cgk7LUXrG3tNfAiAI3c /H6ihB8pfo5Z2JDkHipfQe3GITLWXH0UsoI3S4Sjer0BBQhJLcmgP9gJ3 nOBKlcbHAvBL3xdbUeWGVlMvleGUtV/jLgfQ+KQLL02AKL1sJK956JY6m Z89SFpKBd1LKei0hwl8Bm1b0Sm+q46L8CAWtARuVu5IIw5BEnbR37OyiP 98NsxBfAcJSieM7V7fIGyFcqa4kg1ri/gfNkZXYd6QqEIEhqomSScn9uY w==; X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="381548943" X-IronPort-AV: E=Sophos;i="6.02,145,1688454000"; d="scan'208";a="381548943" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 23:14:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="779510223" X-IronPort-AV: E=Sophos;i="6.02,145,1688454000"; d="scan'208";a="779510223" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 13 Sep 2023 23:14:14 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qgfcB-0001Ef-2h; Thu, 14 Sep 2023 06:14:11 +0000 Date: Thu, 14 Sep 2023 14:13:49 +0800 From: kernel test robot To: Sami Tolvanen Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Palmer Dabbelt , Kees Cook Subject: ld.lld: error: relocation R_RISCV_HI20 cannot be used against symbol '.L.str.6'; recompile with -fPIC Message-ID: <202309141433.6gzJPSYA-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Sep 2023 23:14:24 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Hi Sami, FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: aed8aee11130a954356200afa3f1b8753e8a9482 commit: 74f8fc31feb4b756814ec0720f48ccdc1175f774 riscv: Allow CONFIG_CFI_CLANG to be selected date: 3 weeks ago config: riscv-randconfig-r002-20230912 (https://download.01.org/0day-ci/archive/20230914/202309141433.6gzJPSYA-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230914/202309141433.6gzJPSYA-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/202309141433.6gzJPSYA-lkp@intel.com/ All errors (new ones prefixed by >>): >> ld.lld: error: relocation R_RISCV_HI20 cannot be used against symbol '.L.str.6'; recompile with -fPIC >>> defined in vmlinux.a(arch/riscv/errata/sifive/errata.o) >>> referenced by errata.c:94 (arch/riscv/errata/sifive/errata.c:94) >>> arch/riscv/errata/sifive/errata.o:(sifive_errata_patch_func) in archive vmlinux.a -- >> ld.lld: error: relocation R_RISCV_LO12_I cannot be used against symbol '.L.str.6'; recompile with -fPIC >>> defined in vmlinux.a(arch/riscv/errata/sifive/errata.o) >>> referenced by errata.c:94 (arch/riscv/errata/sifive/errata.c:94) >>> arch/riscv/errata/sifive/errata.o:(sifive_errata_patch_func) in archive vmlinux.a -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki