From nobody Sun Apr 28 09:03:17 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+90526+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+90526+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1655268890; cv=none; d=zohomail.com; s=zohoarc; b=IVYOqG1lOEfoh67FBg9fD/xvDsupK2tYpoCCny8IBqvhL0InWt/27C/qimVltZUSdE0osKgw5PMmWD3W0dsunFU1gW3IPY8uEoBqBl4zK2uivzKcO9ioU/j5mP/sOP9ZdDBAF8A/Sx712dX0ockR6QF+8LuM6mozquAP/W/n1QA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1655268890; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=JqTpe4H9Ab3fyBI5FEYaU2QZBhHZxV5S8qnKB8OJfCk=; b=UcURxcoOZQ3p4aW6a4CgLtFeWVgJAKFT+IujPXbrg03IHjt7tfJmzSBMi2OHFVAXwVdLUMAn88s8VgTuKH4hFqIUCschdYccwSeZW1+6Lt5C50PwzLqshwqKsiuyWQBtE8mRhW5OJ6NDnxfrEDXQLGiZhbvNNK/I+Fy+kI0EWeo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+90526+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1655268890123185.89327235509165; Tue, 14 Jun 2022 21:54:50 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id SHCmYY1788612x7rYcqEvfQj; Tue, 14 Jun 2022 21:54:49 -0700 X-Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web08.755.1655268885636121507 for ; Tue, 14 Jun 2022 21:54:47 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10378"; a="278880526" X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="278880526" X-Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2022 21:54:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="674278822" X-Received: from shwdeopenlab706.ccr.corp.intel.com ([10.239.183.102]) by FMSMGA003.fm.intel.com with ESMTP; 14 Jun 2022 21:54:44 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen Subject: [edk2-devel] [PATCH] BaseTools: output the intermediate library instance when error occurs Date: Wed, 15 Jun 2022 12:54:39 +0800 Message-Id: <20220615045439.147-1-ray.ni@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ray.ni@intel.com X-Gm-Message-State: hY4BO78eIgk8ro7shQj1nnbGx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1655268889; bh=n4fzU4uKa8FZ3BOTwXUmNb1LrGMnxItYwDhVGrs6ics=; h=Cc:Date:From:Reply-To:Subject:To; b=Mr+bmf9Pus9AyhwgmZrdjhcdkkyp8nR9CxFgUuBMk6pCBlu/ACes+jYu8Ov70mIb0/Z AJY+lt3GNqlxyFNM3vxBxHz8DtlYNsRKVrsAY7uJCIlbsCN8Q6PHXeIExjrPn70MdEwNF fEsWluAJ4o5BFab0LEQWCmxqNFW7/0/J1vE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1655268891437100002 Content-Type: text/plain; charset="utf-8" When a module "Module" depends on a library instance "Lib1" which depends on "Lib2" which depends on "Lib3" ... depends on "LibN", but "LibN" doesn't support the type (e.g.: SEC) of the "Module", the following error messages are printed by build tool: (...): error 1001: Module by library instance [] consumed by [] But it's unclear to user how LibN is consumed by the Module. With the patch, following errors are printed: (...): error 1001: Module by library instance [] consumed by library instance [] which is consumed by module[] It doesn't print all the intermediate library instances between the Module and LibN but at least the path of Lib N-1 can help users to help how to fix the build errors. I hope this patch can be a trigger point that a better solution could be developed by tool experts to print all the library instances between the Module and LibN. Signed-off-by: Ray Ni Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Reviewed-by: Bob Feng --- BaseTools/Source/Python/Workspace/WorkspaceCommon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/Workspace/WorkspaceCommon.py b/BaseToo= ls/Source/Python/Workspace/WorkspaceCommon.py index 53027a0e30..9e506fc646 100644 --- a/BaseTools/Source/Python/Workspace/WorkspaceCommon.py +++ b/BaseTools/Source/Python/Workspace/WorkspaceCommon.py @@ -150,7 +150,9 @@ def GetModuleLibInstances(Module, Platform, BuildDataba= se, Arch, Target, Toolcha EdkLogger.error("build", OPTION_MISSING, "Module type [%s] is not supported= by library instance [%s]" \ % (ModuleType, LibraryPath), File= =3DFileName, - ExtraData=3D"consumed by [%s]" % s= tr(Module)) + ExtraData=3D"consumed by library i= nstance [%s] which is consumed by module [%s]" \ + % (str(M), str(Module)) + ) else: return [] =20 --=20 2.35.1.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#90526): https://edk2.groups.io/g/devel/message/90526 Mute This Topic: https://groups.io/mt/91770914/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-