前提
「 ゼロからのOS自作入門」という書籍を見てEDK2が必要となったので環境構築しようとしています。そのそインストールの過程でEmulatorPkgをビルドしようとしたところ以下に示すエラーメッセージが出て解決できなくなってしまったので質問させていただきます。
ターミナルで実行した内容
ターミナル上でgitを用いてedk2をカレントディレクトリに配置して、edk2内でedksetup.shを実行してEmulatorPkgを以下のコマンドでビルドしようとしました。
$ git clone https://github.com/tianocore/edk2.git $ cd edk2 $ git submodule update --init $ source edksetup.sh $ cd EmulatorPkg $ ./build.sh
発生している問題・エラーメッセージ
上で示したコマンドをターミナル上で実行すると以下のようなコマンドが出てしまいました。
gcc -c -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib -g -O2 VolInfo.c -o VolInfo.o gcc -o ../bin/VolInfo VolInfo.o -L../libs -lCommon /Library/Developer/CommandLineTools/usr/bin/make -C DevicePath gcc -c -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib -g -O2 -Wno-error=stringop-overflow DevicePath.c -o DevicePath.o error: unknown warning option '-Werror=stringop-overflow'; did you mean '-Werror=shift-overflow'? [-Werror,-Wunknown-warning-option] make[2]: *** [DevicePath.o] Error 1 make[1]: *** [DevicePath] Error 2 make: *** [Source/C] Error 2
このエラーメッセージはコンパイラのバージョンが悪いということでしょうか。
補足情報(FW/ツールのバージョンなど)
使っているコンパイラなどのバージョンを以下に記しました。
macOS Monterey: バージョン12.5
gcc: version 12.1.0 (Homebrew GCC 12.1.0)
回答1件
あなたの回答
tips
プレビュー