public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* OVMF compile error
       [not found] <1B925CC0CD9F3341B32D442251E7E1DC36D93C55@shsmsx102.ccr.corp.intel.com>
@ 2016-09-14  7:21 ` Chen, Farrah
  0 siblings, 0 replies; 9+ messages in thread
From: Chen, Farrah @ 2016-09-14  7:21 UTC (permalink / raw)
  To: edk2-devel@ml01.01.org
  Cc: 'wei.liu2@citrix.com', Hao, Xudong,
	xen-devel@lists.xen.org

Hi,

When I compile xen with the latest commit in RHEL 6.7, it failed when make tools. Errors showed when running edk2 build for OvmfPkgX64.
Bisected and this error occurred from commit 8c8b6fb02342f7aa78e611a5f0f63dcf8fbf48f2.

commit 8c8b6fb02342f7aa78e611a5f0f63dcf8fbf48f2
Author: Wei Liu <wei.liu2@citrix.com<mailto:wei.liu2@citrix.com>>
Date:   Tue Sep 6 12:54:47 2016 +0100

    Config.mk: update OVMF commit

Signed-off-by: Wei Liu wei.liu2@citrix.com<mailto:wei.liu2@citrix.com>


We have updated OVMF to the latest master and cleaned everything before rebuilding.



Steps:

make clean

make xen -j8

./configure --enable-ovmf

make tools -j8



Then the error occurred.

.........................................................................................................................................................

make_tools.log:
......
/home/www/builds_xen_unstable/xen-src-8c8b6fb0-20160912/tools/firmware/ovmf-dir-remote/Build/OvmfX64/DEBUG_GCC44/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii:173: error: invalid combination of opcode and operands
/home/www/builds_xen_unstable/xen-src-8c8b6fb0-20160912/tools/firmware/ovmf-dir-remote/Build/OvmfX64/DEBUG_GCC44/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii:175: error: invalid combination of opcode and operands
/home/www/builds_xen_unstable/xen-src-8c8b6fb0-20160912/tools/firmware/ovmf-dir-remote/Build/OvmfX64/DEBUG_GCC44/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii:177: error: invalid combination of opcode and operands
/home/www/builds_xen_unstable/xen-src-8c8b6fb0-20160912/tools/firmware/ovmf-dir-remote/Build/OvmfX64/DEBUG_GCC44/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii:179: error: invalid combination of opcode and operands
/home/www/builds_xen_unstable/xen-src-8c8b6fb0-20160912/tools/firmware/ovmf-dir-remote/Build/OvmfX64/DEBUG_GCC44/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii:313: error: invalid combination of opcode and operands
/home/www/builds_xen_unstable/xen-src-8c8b6fb0-20160912/tools/firmware/ovmf-dir-remote/Build/OvmfX64/DEBUG_GCC44/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii:315: error: invalid combination of opcode and operands
make[7]: Leaving directory `/home/www/builds_xen_unstable/xen-src-8c8b6fb0-20160912/tools/firmware/ovmf-dir-remote/Build/OvmfX64/DEBUG_GCC44/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib'
make[7]: *** [/home/www/builds_xen_unstable/xen-src-8c8b6fb0-20160912/tools/firmware/ovmf-dir-remote/Build/OvmfX64/DEBUG_GCC44/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.obj] Error 1


build.py...
: error 7000: Failed to execute command
                make tbuild [/home/www/builds_xen_unstable/xen-src-8c8b6fb0-20160912/tools/firmware/ovmf-dir-remote/Build/OvmfX64/DEBUG_GCC44/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib]


build.py...
: error F002: Failed to build module
                /home/www/builds_xen_unstable/xen-src-8c8b6fb0-20160912/tools/firmware/ovmf-dir-remote/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf [X64, GCC44, DEBUG]

- Failed -


Best Regards,
Fan Chen




^ permalink raw reply	[flat|nested] 9+ messages in thread

* OVMF compile error
@ 2017-07-06  8:36 Chen, Farrah
  2017-07-06  8:47 ` Laszlo Ersek
  2017-08-11  2:46 ` Chen, Farrah
  0 siblings, 2 replies; 9+ messages in thread
From: Chen, Farrah @ 2017-07-06  8:36 UTC (permalink / raw)
  To: edk2-devel@lists.01.org; +Cc: Hu, Robert

Hi,

When I build ovmf with commit: 19b2cb5c11cf3a4512e9183125ba4a69facb0489, the following error occurred:

git clone https://github.com/tianocore/edk2.git
OvmfPkg/build.sh -a X64
........................................
make: *** [/workspace/ia32e/nightly/kvm-next-20170706-137232-2185c9-31745/kvm/edk2/Build/OvmfX64/DEBUG_GCC48/X64/OvmfPkg/Sec/SecMain/DEBUG/SecMain.efi] Segmentation fault (core dumped)


build.py...
: error 7000: Failed to execute command
      make tbuild [/workspace/ia32e/nightly/kvm-next-20170706-137232-2185c9-31745/kvm/edk2/Build/OvmfX64/DEBUG_GCC48/X64/OvmfPkg/Sec/SecMain]


build.py...
: error 7000: Failed to execute command
      make tbuild [/workspace/ia32e/nightly/kvm-next-20170706-137232-2185c9-31745/kvm/edk2/Build/OvmfX64/DEBUG_GCC48/X64/MdeModulePkg/Core/Pei/PeiMain]


build.py...
: error F002: Failed to build module
      /workspace/ia32e/nightly/kvm-next-20170706-137232-2185c9-31745/kvm/edk2/OvmfPkg/Sec/SecMain.inf [X64, GCC48, DEBUG]

- Failed -
Build end time: 16:19:11, Jul.06 2017
Build total time: 00:00:23


Best Regards,
Fan Chen



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: OVMF compile error
  2017-07-06  8:36 OVMF compile error Chen, Farrah
@ 2017-07-06  8:47 ` Laszlo Ersek
  2017-07-07  2:12   ` Chen, Farrah
  2017-08-11  2:46 ` Chen, Farrah
  1 sibling, 1 reply; 9+ messages in thread
From: Laszlo Ersek @ 2017-07-06  8:47 UTC (permalink / raw)
  To: Chen, Farrah, edk2-devel@lists.01.org; +Cc: Hu, Robert

On 07/06/17 10:36, Chen, Farrah wrote:
> Hi,
> 
> When I build ovmf with commit: 19b2cb5c11cf3a4512e9183125ba4a69facb0489, the following error occurred:
> 
> git clone https://github.com/tianocore/edk2.git
> OvmfPkg/build.sh -a X64
> ........................................
> make: *** [/workspace/ia32e/nightly/kvm-next-20170706-137232-2185c9-31745/kvm/edk2/Build/OvmfX64/DEBUG_GCC48/X64/OvmfPkg/Sec/SecMain/DEBUG/SecMain.efi] Segmentation fault (core dumped)

Thanks for the report; the issue is already fixed in commit 60e85a39fe49
("BaseTools/GenFw: disregard payload in PE debug directory entry size",
2017-07-05).

Please do:

$ git checkout master
$ git pull
$ source edksetup.sh
$ make -C "$EDK_TOOLS_PATH"

and then build OVMF like always.

Thanks
Laszlo


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: OVMF compile error
  2017-07-06  8:47 ` Laszlo Ersek
@ 2017-07-07  2:12   ` Chen, Farrah
  0 siblings, 0 replies; 9+ messages in thread
From: Chen, Farrah @ 2017-07-07  2:12 UTC (permalink / raw)
  To: Laszlo Ersek, edk2-devel@lists.01.org; +Cc: Hu, Robert

OK, thank you.


Thanks,
Fan



-----Original Message-----
From: Laszlo Ersek [mailto:lersek@redhat.com] 
Sent: Thursday, July 6, 2017 4:47 PM
To: Chen, Farrah <farrah.chen@intel.com>; edk2-devel@lists.01.org
Cc: Hu, Robert <robert.hu@intel.com>
Subject: Re: [edk2] OVMF compile error

On 07/06/17 10:36, Chen, Farrah wrote:
> Hi,
> 
> When I build ovmf with commit: 19b2cb5c11cf3a4512e9183125ba4a69facb0489, the following error occurred:
> 
> git clone https://github.com/tianocore/edk2.git
> OvmfPkg/build.sh -a X64
> ........................................
> make: *** 
> [/workspace/ia32e/nightly/kvm-next-20170706-137232-2185c9-31745/kvm/ed
> k2/Build/OvmfX64/DEBUG_GCC48/X64/OvmfPkg/Sec/SecMain/DEBUG/SecMain.efi
> ] Segmentation fault (core dumped)

Thanks for the report; the issue is already fixed in commit 60e85a39fe49
("BaseTools/GenFw: disregard payload in PE debug directory entry size", 2017-07-05).

Please do:

$ git checkout master
$ git pull
$ source edksetup.sh
$ make -C "$EDK_TOOLS_PATH"

and then build OVMF like always.

Thanks
Laszlo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* OVMF compile error
  2017-07-06  8:36 OVMF compile error Chen, Farrah
  2017-07-06  8:47 ` Laszlo Ersek
@ 2017-08-11  2:46 ` Chen, Farrah
  2017-08-11 11:21   ` Laszlo Ersek
  1 sibling, 1 reply; 9+ messages in thread
From: Chen, Farrah @ 2017-08-11  2:46 UTC (permalink / raw)
  To: 'edk2-devel@lists.01.org'; +Cc: Hu, Robert

Hi,

When I build ovmf with commit: 76c6f69ccadc7835c9616b077d9ff1b8e46fe49e, the following error occurred:

git clone https://github.com/tianocore/edk2.git
cd edk2
OvmfPkg/build.sh -a X64
........................................
/home/fan/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c: In function 'GetImageNameFromHandle':
/home/fan/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c:220:25: error: passing argument 3 of 'gBS->HandleProtocol' from incompatible pointer type [-Werror]
                         );
                         ^
/home/fan/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c:220:25: note: expected 'void **' but argument is of type 'struct EFI_FIRMWARE_VOLUME2_PROTOCOL **'
cc1: all warnings being treated as errors
make: *** [/home/fan/edk2/Build/OvmfX64/DEBUG_GCC48/X64/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib/OUTPUT/Drivers.obj] Error 1


build.py...
: error 7000: Failed to execute command
        make tbuild [/home/fan/edk2/Build/OvmfX64/DEBUG_GCC48/X64/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib]


build.py...
: error F002: Failed to build module
        /home/fan/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf [X64, GCC48, DEBUG]

- Failed -
Build end time: 10:45:31, Aug.11 2017
Build total time: 00:01:00


Best Regards,
Fan Chen



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: OVMF compile error
  2017-08-11  2:46 ` Chen, Farrah
@ 2017-08-11 11:21   ` Laszlo Ersek
  0 siblings, 0 replies; 9+ messages in thread
From: Laszlo Ersek @ 2017-08-11 11:21 UTC (permalink / raw)
  To: Chen, Farrah, 'edk2-devel@lists.01.org'; +Cc: Hu, Robert

On 08/11/17 04:46, Chen, Farrah wrote:
> Hi,
> 
> When I build ovmf with commit: 76c6f69ccadc7835c9616b077d9ff1b8e46fe49e, the following error occurred:
> 
> git clone https://github.com/tianocore/edk2.git
> cd edk2
> OvmfPkg/build.sh -a X64
> ........................................
> /home/fan/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c: In function 'GetImageNameFromHandle':
> /home/fan/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c:220:25: error: passing argument 3 of 'gBS->HandleProtocol' from incompatible pointer type [-Werror]
>                          );
>                          ^
> /home/fan/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c:220:25: note: expected 'void **' but argument is of type 'struct EFI_FIRMWARE_VOLUME2_PROTOCOL **'
> cc1: all warnings being treated as errors
> make: *** [/home/fan/edk2/Build/OvmfX64/DEBUG_GCC48/X64/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib/OUTPUT/Drivers.obj] Error 1

Ray fixed it in f8daac8121e66c46d3374f63f80308a777c2a2e7.

Thanks
Laszlo


^ permalink raw reply	[flat|nested] 9+ messages in thread

* OVMF compile error
@ 2018-11-07  4:39 Chen, Farrah
  2018-11-07  5:37 ` yuchenlin
  0 siblings, 1 reply; 9+ messages in thread
From: Chen, Farrah @ 2018-11-07  4:39 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Hi,

When we build OVMF with the latest commit: 328409ce8de7f318ee9c929b64302bd361cd1dbd, we met below error:

OvmfPkg/build.sh -a X64 -n 8

...........................

OK
make[1]: Leaving directory `/home/fan/edk2/BaseTools/Tests'
make: Leaving directory `/home/fan/edk2/BaseTools'
Running edk2 build for OvmfPkgX64
Build environment: Linux-3.10.0-862.el7.x86_64-x86_64-with-redhat-7.5-Maipo
Build start time: 12:13:50, Nov.07 2018

WORKSPACE        = /home/fan/edk2
ECP_SOURCE       = /home/fan/edk2/EdkCompatibilityPkg
EDK_SOURCE       = /home/fan/edk2/EdkCompatibilityPkg
EFI_SOURCE       = /home/fan/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH   = /home/fan/edk2/BaseTools
CONF_PATH        = /home/fan/edk2/Conf


Architecture(s)  = X64
Build target     = DEBUG
Toolchain        = GCC48

Active Platform          = /home/fan/edk2/OvmfPkg/OvmfPkgX64.dsc
Flash Image Definition   = /home/fan/edk2/OvmfPkg/OvmfPkgX64.fdf

Processing meta-data .......

build.py...
/home/fan/edk2/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf(31): error 000E: File/directory not found in workspace
        /home/fan/edk2/CryptoPkg/Library/OpensslLib/openssl/e_os.h


- Failed -
Build end time: 12:13:59, Nov.07 2018
Build total time: 00:00:09




Thanks,
Fan



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: OVMF compile error
  2018-11-07  4:39 Chen, Farrah
@ 2018-11-07  5:37 ` yuchenlin
  2018-11-07 10:00   ` Chen, Farrah
  0 siblings, 1 reply; 9+ messages in thread
From: yuchenlin @ 2018-11-07  5:37 UTC (permalink / raw)
  To: Chen, Farrah; +Cc: edk2-devel

On 2018-11-07 12:39, Chen, Farrah wrote:
> Hi,
> 
> When we build OVMF with the latest commit:
> 328409ce8de7f318ee9c929b64302bd361cd1dbd, we met below error:
> 
> OvmfPkg/build.sh -a X64 -n 8
> 
> ...........................
> 
> OK
> make[1]: Leaving directory `/home/fan/edk2/BaseTools/Tests'
> make: Leaving directory `/home/fan/edk2/BaseTools'
> Running edk2 build for OvmfPkgX64
> Build environment: 
> Linux-3.10.0-862.el7.x86_64-x86_64-with-redhat-7.5-Maipo
> Build start time: 12:13:50, Nov.07 2018
> 
> WORKSPACE        = /home/fan/edk2
> ECP_SOURCE       = /home/fan/edk2/EdkCompatibilityPkg
> EDK_SOURCE       = /home/fan/edk2/EdkCompatibilityPkg
> EFI_SOURCE       = /home/fan/edk2/EdkCompatibilityPkg
> EDK_TOOLS_PATH   = /home/fan/edk2/BaseTools
> CONF_PATH        = /home/fan/edk2/Conf
> 
> 
> Architecture(s)  = X64
> Build target     = DEBUG
> Toolchain        = GCC48
> 
> Active Platform          = /home/fan/edk2/OvmfPkg/OvmfPkgX64.dsc
> Flash Image Definition   = /home/fan/edk2/OvmfPkg/OvmfPkgX64.fdf
> 
> Processing meta-data .......
> 
> build.py...
> /home/fan/edk2/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf(31):
> error 000E: File/directory not found in workspace
>         /home/fan/edk2/CryptoPkg/Library/OpensslLib/openssl/e_os.h
> 
> 
> - Failed -
> Build end time: 12:13:59, Nov.07 2018
> Build total time: 00:00:09
> 
> 
> 
> 
> Thanks,
> Fan
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


Hi,

Try:

git submodule init
git submodule update --recursive

And build it again.

Thanks,
yuchenlin


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: OVMF compile error
  2018-11-07  5:37 ` yuchenlin
@ 2018-11-07 10:00   ` Chen, Farrah
  0 siblings, 0 replies; 9+ messages in thread
From: Chen, Farrah @ 2018-11-07 10:00 UTC (permalink / raw)
  To: yuchenlin; +Cc: edk2-devel@lists.01.org

Yes, it's OK now, thanks a lot.


Thanks,
Fan



-----Original Message-----
From: yuchenlin [mailto:yuchenlin@synology.com] 
Sent: Wednesday, November 7, 2018 1:37 PM
To: Chen, Farrah <farrah.chen@intel.com>
Cc: edk2-devel@lists.01.org
Subject: Re: [edk2] OVMF compile error

On 2018-11-07 12:39, Chen, Farrah wrote:
> Hi,
> 
> When we build OVMF with the latest commit:
> 328409ce8de7f318ee9c929b64302bd361cd1dbd, we met below error:
> 
> OvmfPkg/build.sh -a X64 -n 8
> 
> ...........................
> 
> OK
> make[1]: Leaving directory `/home/fan/edk2/BaseTools/Tests'
> make: Leaving directory `/home/fan/edk2/BaseTools'
> Running edk2 build for OvmfPkgX64
> Build environment: 
> Linux-3.10.0-862.el7.x86_64-x86_64-with-redhat-7.5-Maipo
> Build start time: 12:13:50, Nov.07 2018
> 
> WORKSPACE        = /home/fan/edk2
> ECP_SOURCE       = /home/fan/edk2/EdkCompatibilityPkg
> EDK_SOURCE       = /home/fan/edk2/EdkCompatibilityPkg
> EFI_SOURCE       = /home/fan/edk2/EdkCompatibilityPkg
> EDK_TOOLS_PATH   = /home/fan/edk2/BaseTools
> CONF_PATH        = /home/fan/edk2/Conf
> 
> 
> Architecture(s)  = X64
> Build target     = DEBUG
> Toolchain        = GCC48
> 
> Active Platform          = /home/fan/edk2/OvmfPkg/OvmfPkgX64.dsc
> Flash Image Definition   = /home/fan/edk2/OvmfPkg/OvmfPkgX64.fdf
> 
> Processing meta-data .......
> 
> build.py...
> /home/fan/edk2/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf(31):
> error 000E: File/directory not found in workspace
>         /home/fan/edk2/CryptoPkg/Library/OpensslLib/openssl/e_os.h
> 
> 
> - Failed -
> Build end time: 12:13:59, Nov.07 2018
> Build total time: 00:00:09
> 
> 
> 
> 
> Thanks,
> Fan
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


Hi,

Try:

git submodule init
git submodule update --recursive

And build it again.

Thanks,
yuchenlin


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-11-07 10:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-06  8:36 OVMF compile error Chen, Farrah
2017-07-06  8:47 ` Laszlo Ersek
2017-07-07  2:12   ` Chen, Farrah
2017-08-11  2:46 ` Chen, Farrah
2017-08-11 11:21   ` Laszlo Ersek
  -- strict thread matches above, loose matches on Subject: below --
2018-11-07  4:39 Chen, Farrah
2018-11-07  5:37 ` yuchenlin
2018-11-07 10:00   ` Chen, Farrah
     [not found] <1B925CC0CD9F3341B32D442251E7E1DC36D93C55@shsmsx102.ccr.corp.intel.com>
2016-09-14  7:21 ` Chen, Farrah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox