-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-workspace failure when sources outside $WORKSPACE (Bugzilla Bug 4878) #10551
Comments
Comment 23558Date: 2024-12-07 18:29:51 +0000
Context: I'm trying to isolate inputs for building EDK2 using Bazel to invoke Related https://bugzilla.tianocore.org/show_bug.cgi?id=2232 If I interpret this correctly, WORKSPACE can be empty and just be where outputs will go. Say I have sources in /src/, and create an empty /ws/ for my build. I can pre-generate the Conf/ files and include them in /src/. If I run
I'm confused why the makefile rule is relative to the workspace when the inf comes from the packages_path. Is this by design to allow different PACKAGES_PATH modules to use inf paths relative to.... something else? I can see that working if you have a very specific semantics for multiple workspace composition where there's a composed source tree staging area for all combined workspaces. The paths could then be relative to the staging area. That doesn't appear to be how it operates, however. |
Comment 23559Date: 2024-12-08 02:15:13 +0000 I've been able to narrow down the failure to 2 things:
With the following changes and strictly using -n 1 instead of the -n 16 I built with before, I can get the build to succeed. In GenFds.py, I changed the os.getenv calls to instead use a backup
(Note, pyos is from and later
becomes
And FdfParser.py I've changed the rightward drift of the search attempts for IncludedFile to instead call a private method
The gPackagesPath is an addition to GlobalData, initialized in CheckEnvVariable in build.py:
I still don't have a good understanding why the multithreading fails with PACKAGES_PATH. |
This issue was created automatically with bugzilla2github
Bugzilla Bug 4878
Date: 2024-12-07T18:29:51+00:00
From: Dionna Glaze <>
To: unassigned <>
CC:
Last updated: 2024-12-09T15:03:18+00:00
The text was updated successfully, but these errors were encountered: