Created
September 7, 2019 15:24
-
-
Save Reetok3/a60387f036afe51206bfe55d45c4351f to your computer and use it in GitHub Desktop.
セキュリティミニキャンプin山梨2019 第一回課題 エラー&解決策
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
つまずいたエラーと対策、解決策を並べました。 | |
何か間違っている点などあったら、ご指摘いただけると嬉しいです。 | |
## 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) | |
``` | |
###解決策 | |
資料の上のtarget.txtの説明は`ビルド対象のパッケージの .dsc ファイル。`になっていたので、変だなと思い、.dscファイルにパスを変更したら、できた。 | |
## | |
``` | |
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のビルドができなかった。 | |
### 解決策 | |
`iasl`というコマンドが見つからないらしい。 | |
`sudo apt install iasl` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment