Skip to content
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

Build fail #4

Open
russarmst opened this issue Dec 13, 2022 · 1 comment
Open

Build fail #4

russarmst opened this issue Dec 13, 2022 · 1 comment

Comments

@russarmst
Copy link

I have an Ubuntu machine on which I have setup an edk2 environment following the instructions on the tianocore GitHub page. I have confirmed that I can build the MdeModulePkg and that the resulting HelloWorld.efi works in my efi shell.

I cloned this repo into my edk2 base directory and made the following changes to Conf/target.txt:

ACTIVE_PLATFORM = UefiToolsPkg/UefiToolsPkg.dsc
TARGET_ARCH = X64
TOOL_CHAIN_TAG = GCC5
MAX_CONCURRENT_THREAD_NUMBER = 9

Issuing the build command gives the following:

Build start time: 14:50:38, Dec.13 2022

WORKSPACE        = /home/russell/src/edk2
EDK_TOOLS_PATH   = /home/russell/src/edk2/BaseTools
CONF_PATH        = /home/russell/src/edk2/Conf
PYTHON_COMMAND   = /usr/bin/python3


build.py...
/home/russell/src/edk2/UefiToolsPkg/UefiToolsPkg.dsc(44): error 000E: File/directory not found in workspace
	/home/russell/src/edk2/UefiToolsPkg/StdLib/StdLib.inc
/home/russell/src/edk2/StdLib/StdLib.inc

- Failed -
Build end time: 14:50:38, Dec.13 2022
Build total time: 00:00:00

Build is correct the file /home/russell/src/edk2/UefiToolsPkg/StdLib/StdLib.inc doesn't exist. I've had a look through UefiToolsPkg.dsc and see references to over riding StdLib but I see anything blatantly wrong. However I am a complete novice at building efi packages with edk2.

Having grep in an efi shell means I can script the update procedure for certain LSI based RAID/HBA cards. Any help would be really appreciated.

Regards,
Russell

@yyh-yyh-yyh
Copy link

I have an Ubuntu machine on which I have setup an edk2 environment following the instructions on the tianocore GitHub page. I have confirmed that I can build the MdeModulePkg and that the resulting HelloWorld.efi works in my efi shell.

I cloned this repo into my edk2 base directory and made the following changes to Conf/target.txt:

ACTIVE_PLATFORM = UefiToolsPkg/UefiToolsPkg.dsc
TARGET_ARCH = X64
TOOL_CHAIN_TAG = GCC5
MAX_CONCURRENT_THREAD_NUMBER = 9

Issuing the build command gives the following:

Build start time: 14:50:38, Dec.13 2022

WORKSPACE        = /home/russell/src/edk2
EDK_TOOLS_PATH   = /home/russell/src/edk2/BaseTools
CONF_PATH        = /home/russell/src/edk2/Conf
PYTHON_COMMAND   = /usr/bin/python3


build.py...
/home/russell/src/edk2/UefiToolsPkg/UefiToolsPkg.dsc(44): error 000E: File/directory not found in workspace
	/home/russell/src/edk2/UefiToolsPkg/StdLib/StdLib.inc
/home/russell/src/edk2/StdLib/StdLib.inc

- Failed -
Build end time: 14:50:38, Dec.13 2022
Build total time: 00:00:00

Build is correct the file /home/russell/src/edk2/UefiToolsPkg/StdLib/StdLib.inc doesn't exist. I've had a look through UefiToolsPkg.dsc and see references to over riding StdLib but I see anything blatantly wrong. However I am a complete novice at building efi packages with edk2.

Having grep in an efi shell means I can script the update procedure for certain LSI based RAID/HBA cards. Any help would be really appreciated.

Regards, Russell

after copy one StdLib from other, report error as below
error 4000: Instance of library class [LibC] is not found
in [/home/vUDK2017/UefiToolsPkg/Applications/grep/grep.inf] [X64]
consumed by module [/home/vUDK2017/UefiToolsPkg/Applications/grep/grep.inf]

additional,i can build pass with UefiToolsPkg2023.dsc, but only come out ShellPlatVars.efi , i main want grep.efi,it not come out, then me manually add UefiToolsPkg/Applications/grep/grep.inf Components into UefiToolsPkg2023.dsc, can not build successfully,report error as below:
/home/vUDK2017/UefiToolsPkg/UefiToolsPkg2023.dsc(...): error 4000: Instance of library class [LibC] is not found
in [/home/vUDK2017/UefiToolsPkg/Applications/grep/grep.inf] [X64]
consumed by module [/home/vUDK2017/UefiToolsPkg/Applications/grep/grep.inf]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants