回复: [edk2-devel] Build edk2 fail
gaoliming
gaoliming at byosoft.com.cn
Fri Mar 4 05:22:00 UTC 2022
Please update nasm to 2.15.05 or later.
Thanks
Liming
发件人: devel at edk2.groups.io <devel at edk2.groups.io> 代表 Yang, Lixiao
发送时间: 2022年3月3日 10:21
收件人: devel at edk2.groups.io
主题: [edk2-devel] Build edk2 fail
Hi,
I encountered a failure when trying to build edk2 on March 1st.
Here is the failure:
/build/lxy/edk2_thirdone/MdeModulePkg/Include
/home/build/lxy/edk2_thirdone/ShellPkg/Library/UefiShellDebug1CommandsLib/Co
mp.c
/home/build/lxy/edk2_thirdone/Build/OvmfX64/DEBUG_GCC5/X64/UefiCpuPkg/Librar
y/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/X64/Xcode5Exceptio
nHandlerAsm.iii:339: error: parser: instruction expected
/home/build/lxy/edk2_thirdone/Build/OvmfX64/DEBUG_GCC5/X64/UefiCpuPkg/Librar
y/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/X64/Xcode5Exceptio
nHandlerAsm.iii:340: warning: label alone on a line without a colon might be
in error [-w+orphan-labels]
/home/build/lxy/edk2_thirdone/Build/OvmfX64/DEBUG_GCC5/X64/UefiCpuPkg/Librar
y/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/X64/Xcode5Exceptio
nHandlerAsm.iii:341: error: parser: instruction expected
/home/build/lxy/edk2_thirdone/Build/OvmfX64/DEBUG_GCC5/X64/UefiCpuPkg/Librar
y/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/X64/Xcode5Exceptio
nHandlerAsm.iii:343: error: parser: instruction expected
/home/build/lxy/edk2_thirdone/Build/OvmfX64/DEBUG_GCC5/X64/UefiCpuPkg/Librar
y/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/X64/Xcode5Exceptio
nHandlerAsm.iii:345: error: parser: instruction expected
/home/build/lxy/edk2_thirdone/Build/OvmfX64/DEBUG_GCC5/X64/UefiCpuPkg/Librar
y/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/X64/Xcode5Exceptio
nHandlerAsm.iii:347: error: symbol `incsspq' redefined
/home/build/lxy/edk2_thirdone/Build/OvmfX64/DEBUG_GCC5/X64/UefiCpuPkg/Librar
y/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/X64/Xcode5Exceptio
nHandlerAsm.iii:347: error: parser: instruction expected
/home/build/lxy/edk2_thirdone/Build/OvmfX64/DEBUG_GCC5/X64/UefiCpuPkg/Librar
y/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/X64/Xcode5Exceptio
nHandlerAsm.iii:444: warning: label alone on a line without a colon might be
in error [-w+orphan-labels]
make: *** [GNUmakefile:312:
/home/build/lxy/edk2_thirdone/Build/OvmfX64/DEBUG_GCC5/X64/UefiCpuPkg/Librar
y/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/X64/Xcode5Exceptio
nHandlerAsm.obj] Error 1
My OS:
NAME="Red Hat Enterprise Linux"
VERSION="8.3 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.3"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.3 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.3:GA"
HOME_URL=https://www.redhat.com/
BUG_REPORT_URL=https://bugzilla.redhat.com/
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.3
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.3"
My kernel version:
Linux vmm-build-rhel8 4.18.0-240.el8.x86_64 #1 SMP Wed Sep 23 05:13:10 EDT
2020 x86_64 x86_64 x86_64 GNU/Linux
My gcc version:
gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5)
Reproducing steps:
[vmm at vmm-build-rhel8 lxy]$ git clone https://github.com/tianocore/edk2.git
edk2_thirdone
Cloning into 'edk2_thirdone'...
remote: Enumerating objects: 367486, done.
remote: Counting objects: 100% (31/31), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 367486 (delta 13), reused 19 (delta 10), pack-reused 367455
Receiving objects: 100% (367486/367486), 300.44 MiB | 12.18 MiB/s, done.
Resolving deltas: 100% (266217/266217), done.
Updating files: 100% (8317/8317), done.
[vmm at vmm-build-rhel8 lxy]$ cd edk2_thirdone/
[vmm at vmm-build-rhel8 edk2_thirdone]$ git submodule init > /dev/null;git
submodule update --recursive
Submodule 'SoftFloat' (https://github.com/ucb-bar/berkeley-softfloat-3.git)
registered for path 'ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3'
Submodule 'BaseTools/Source/C/BrotliCompress/brotli'
(https://github.com/google/brotli) registered for path
'BaseTools/Source/C/BrotliCompress/brotli'
Submodule 'CryptoPkg/Library/OpensslLib/openssl'
(https://github.com/openssl/openssl) registered for path
'CryptoPkg/Library/OpensslLib/openssl'
Submodule 'MdeModulePkg/Library/BrotliCustomDecompressLib/brotli'
(https://github.com/google/brotli) registered for path
'MdeModulePkg/Library/BrotliCustomDecompressLib/brotli'
Submodule 'MdeModulePkg/Universal/RegularExpressionDxe/oniguruma'
(https://github.com/kkos/oniguruma) registered for path
'MdeModulePkg/Universal/RegularExpressionDxe/oniguruma'
Submodule 'RedfishPkg/Library/JsonLib/jansson'
(https://github.com/akheron/jansson) registered for path
'RedfishPkg/Library/JsonLib/jansson'
Submodule 'UnitTestFrameworkPkg/Library/CmockaLib/cmocka'
(https://github.com/tianocore/edk2-cmocka.git) registered for path
'UnitTestFrameworkPkg/Library/CmockaLib/cmocka'
Cloning into
'/home/build/lxy/edk2_thirdone/ArmPkg/Library/ArmSoftFloatLib/berkeley-softf
loat-3'...
Cloning into
'/home/build/lxy/edk2_thirdone/BaseTools/Source/C/BrotliCompress/brotli'...
Cloning into
'/home/build/lxy/edk2_thirdone/CryptoPkg/Library/OpensslLib/openssl'...
Cloning into
'/home/build/lxy/edk2_thirdone/MdeModulePkg/Library/BrotliCustomDecompressLi
b/brotli'...
Cloning into
'/home/build/lxy/edk2_thirdone/MdeModulePkg/Universal/RegularExpressionDxe/o
niguruma'...
Cloning into
'/home/build/lxy/edk2_thirdone/RedfishPkg/Library/JsonLib/jansson'...
Cloning into
'/home/build/lxy/edk2_thirdone/UnitTestFrameworkPkg/Library/CmockaLib/cmocka
'...
Submodule path 'ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3':
checked out 'b64af41c3276f97f0e181920400ee056b9c88037'
Submodule path 'BaseTools/Source/C/BrotliCompress/brotli': checked out
'f4153a09f87cbb9c826d8fc12c74642bb2d879ea'
Submodule path 'CryptoPkg/Library/OpensslLib/openssl': checked out
'52c587d60be67c337364b830dd3fdc15404a2f04'
Submodule path 'MdeModulePkg/Library/BrotliCustomDecompressLib/brotli':
checked out 'f4153a09f87cbb9c826d8fc12c74642bb2d879ea'
Submodule path 'MdeModulePkg/Universal/RegularExpressionDxe/oniguruma':
checked out 'abfc8ff81df4067f309032467785e06975678f0d'
Submodule path 'RedfishPkg/Library/JsonLib/jansson': checked out
'e9ebfa7e77a6bee77df44e096b100e7131044059'
Submodule path 'UnitTestFrameworkPkg/Library/CmockaLib/cmocka': checked out
'1cc9cde3448cdd2e000886a26acf1caac2db7cf1'
[vmm at vmm-build-rhel8 edk2_thirdone]$ OvmfPkg/build.sh -a X64 -n &> make_edk.
log
The log file is attached.
Is this a bug? If not, please tell me what I should do to build edk2
successfully.
Thanks!
Yang Lixiao
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87276): https://edk2.groups.io/g/devel/message/87276
Mute This Topic: https://groups.io/mt/89543731/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20220304/8dbdcd24/attachment.htm>
More information about the edk2-devel-archive
mailing list