public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Question about PACKAGES_PATH
@ 2021-05-03  1:55 Abner Chang
  2021-05-03 11:54 ` [edk2-devel] " Laszlo Ersek
  0 siblings, 1 reply; 2+ messages in thread
From: Abner Chang @ 2021-05-03  1:55 UTC (permalink / raw)
  To: devel@edk2.groups.io
  Cc: Wang, Nickle (HPS SW), Chen, Aaron, Bob Feng, gaoliming,
	Yuwei Chen

[-- Attachment #1: Type: text/plain, Size: 1479 bytes --]

Hi all,
I encountered a weird build issue when I use PACKAGES_PATH for the package outside WORKSPACE.
Currently I have RedfishClientPkg in the different repo and I configure PACKAGES_PATH as below,
Set PACKAGES_PATH=d:\edk2; d:\edk2-redfish-client

I always get the build error as below,
;-------------------------------------------------------------------------

build.py...
: error 7000: Failed to execute command
        E:\Program Files (x86)\Microsoft Visual Studio 14.0\Vc\bin\nmake.exe /no
logo tbuild [d:\edk2\Build\EmulatorX64\DEBUG_VS2015x86\X64\edk2-redfish-client\R
edfishClientPkg\RedfishFeatureCoreDxe\RedfishFeatureCoreDxe]


build.py...
: error 7000: Failed to execute command
        E:\Program Files (x86)\Microsoft Visual Studio 14.0\Vc\bin\nmake.exe /no
logo tbuild [d:\edk2\Build\EmulatorX64\DEBUG_VS2015x86\X64\edk2-redfish-client\R
edfishClientPkg\Converter\AccountService\v1_0_0\RedfishAccountService_V1_0_0_Dxe
]


build.py...
: error F002: Failed to build module
        d:\edk2-redfish-client\RedfishClientPkg\RedfishFeatureCoreDxe\RedfishFea
tureCoreDxe.inf [X64, VS2015x86, DEBUG]

;-------------------------------------------------------------------------


However, the build error is gone if I change the naming of external directory to any that doesn't contain "edk2" pattern in the folder name, such as "xxxx" or "edkii-redfish-client".
Is this a known issue? Anyone has the similar experience?

Thanks
Abner

[-- Attachment #2: Type: text/html, Size: 4741 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [edk2-devel] Question about PACKAGES_PATH
  2021-05-03  1:55 Question about PACKAGES_PATH Abner Chang
@ 2021-05-03 11:54 ` Laszlo Ersek
  0 siblings, 0 replies; 2+ messages in thread
From: Laszlo Ersek @ 2021-05-03 11:54 UTC (permalink / raw)
  To: devel, abner.chang
  Cc: Wang, Nickle (HPS SW), Chen, Aaron, Bob Feng, gaoliming,
	Yuwei Chen

On 05/03/21 03:55, Abner Chang wrote:
> Hi all,
> 
> I encountered a weird build issue when I use PACKAGES_PATH for the
> package outside WORKSPACE.
> 
> Currently I have RedfishClientPkg in the different repo and I configure
> PACKAGES_PATH as below,
> 
> Set PACKAGES_PATH=d:\edk2; d:\edk2-redfish-client
> 
>  
> 
> I always get the build error as below,
> 
> ;-------------------------------------------------------------------------
> 
>  
> 
> build.py...
> 
> : error 7000: Failed to execute command
> 
>         E:\Program Files (x86)\Microsoft Visual Studio
> 14.0\Vc\bin\nmake.exe /no
> 
> logo tbuild
> [d:\edk2\Build\EmulatorX64\DEBUG_VS2015x86\X64\edk2-redfish-client\R
> 
> edfishClientPkg\RedfishFeatureCoreDxe\RedfishFeatureCoreDxe]
> 
>  
> 
>  
> 
> build.py...
> 
> : error 7000: Failed to execute command
> 
>         E:\Program Files (x86)\Microsoft Visual Studio
> 14.0\Vc\bin\nmake.exe /no
> 
> logo tbuild
> [d:\edk2\Build\EmulatorX64\DEBUG_VS2015x86\X64\edk2-redfish-client\R
> 
> edfishClientPkg\Converter\AccountService\v1_0_0\RedfishAccountService_V1_0_0_Dxe
> 
> ]
> 
>  
> 
>  
> 
> build.py...
> 
> : error F002: Failed to build module
> 
>        
> d:\edk2-redfish-client\RedfishClientPkg\RedfishFeatureCoreDxe\RedfishFea
> 
> tureCoreDxe.inf [X64, VS2015x86, DEBUG]
> 
>  
> 
> ;-------------------------------------------------------------------------
> 
>  
> 
>  
> 
> However, the build error is gone if I change the naming of external
> directory to any that doesn’t contain “edk2” pattern in the folder name,
> such as “xxxx” or “edkii-redfish-client”.
> 
> Is this a known issue? Anyone has the similar experience?

I've not met this build issue yet, but I do suggest the following setup
anyway:

PACKAGES_PATH=d:\edk2;d:\edk2-redfish-client
WORKSPACE=d:\edk2-build

and make sure that the "Conf" subdir exists in $WORKSPACE before you run
"edksetup.bat".

At least this is (conceptually) what I use (on Linux).

Keeping the Build and Conf directories out of the main edk2 checkout is
good.

Thanks
Laszlo


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-03 11:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-03  1:55 Question about PACKAGES_PATH Abner Chang
2021-05-03 11:54 ` [edk2-devel] " Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox