Skip to content

Instantly share code, notes, and snippets.

@Reetok3
Last active September 8, 2019 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Reetok3/61d2ee21bfb08e2fbbf98edf928ae94c to your computer and use it in GitHub Desktop.
Save Reetok3/61d2ee21bfb08e2fbbf98edf928ae94c to your computer and use it in GitHub Desktop.
セキュリティミニキャンプ山梨2019第一回事前課題

つまずいたエラー・対策および解決策を並べました。

何か間違っている点があったら、ご指摘いただけると嬉しいです。

AppPkgというフォルダがWorkspace内で見つからない場合の対処

build.py...
 : error 000E: File/directory not found in workspace
		/home/*****/edk2/AppPkg (Please give file in absolute path or relative to WORKSPACE)

資料のAppPkgといったフォルダ名を記載する指示を、.dscファイル指定に変更するとできた

解決策

資料に記載されているtarget.txtのACTIVE_PLATFORMを.dscファイルにパス変更

Hello.infというファイルがWrkspace内で見つからない場合の対処

build.py...
/home/*****/edk2/AppPkg/AppPkg.dsc(35): error 000E: File/directory not found in workspace
	/home/*****/edk2/AppPkg/Hello/Hello.inf

解決策

資料に記載の通り、AppPkg.dscのHello.infのパスを書いている場所を確認したが、Applicationsが入っていなかったため下のように修正

AppPkg/Hello/Hello.inf → AppPkg/Applications/Hello/Hello.inf

ビルドが失敗した場合の対処

build.py...
 : error 7000: Failed to execute command
	make tbuild [/home/*****/edk2/Build/AppPkgX64/RELEASE_GCC5/X64/MdePkg/Library/BaseLib/BaseLib]


build.py...
 : error F002: Failed to build module
	/home/*****/edk2/MdePkg/Library/BaseLib/BaseLib.inf [X64, GCC5, RELEASE]

解決策

nasm notfoundと表示されたので、sudo apt install nasmを実行

ビルドのエラー内容が変わった。

You may need to run:
  make -C /home/.../edk2/BaseTools/Source/C

と表示されたので、実行

uuid/uuid.h: そのようなファイルやディレクトリはありません

と表示されたので、下のサイトを参考に、uuidを導入

https://kaworu.jpn.org/c/C言語でUUIDを生成する方法

sudo apt-get install uuid-dev→404→sudo apt-get update

これで、make -C /.../edk2/BaseTools/Source/Cが実行できるようになり、nasmが導入できた。

OvmfPkgのビルドが失敗した場合の対処

OvmfPkgのビルドができなかった。

解決策

iaslというコマンドが見つからないらしいので

sudo apt install iaslを実行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment