public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Re: need help - edk2 build issue
       [not found] <CO1PR11MB520390D1D192CF6640A27BEE9DE49@CO1PR11MB5203.namprd11.prod.outlook.com>
@ 2022-04-05 20:09 ` Ghorai, Sukumar
  2022-04-05 21:37   ` [edk2-devel] " Andrew Fish
  2022-04-05 21:38   ` Pedro Falcato
  0 siblings, 2 replies; 3+ messages in thread
From: Ghorai, Sukumar @ 2022-04-05 20:09 UTC (permalink / raw)
  To: devel@edk2.groups.io

Hi,

would you pl help me to resolve this edk2 build issue (TOT codebase)?

sghorai@sghorai-desk3:~/work/edk2-tianocore/edk2-april05/edk2$ build -p UefiPayloadPkg/UefiPayloadPkg.dsc -a IA32 -a X64 -t GCC5 -D BOOTLOADER=COREBOOT
Build environment: Linux-5.13.0-35-generic-x86_64-with-glibc2.29
Build start time: 12:23:43, Apr.05 2022

WORKSPACE        = /home/sghorai/work/edk2-tianocore/edk2-april05/edk2
EDK_TOOLS_PATH   = /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/BaseTools
CONF_PATH        = /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Conf
PYTHON_COMMAND   = /usr/bin/python3.8


Processing meta-data .
Architecture(s)  = IA32 X64
Build target     = DEBUG
Toolchain        = GCC5

Active Platform          = /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/UefiPayloadPkg/UefiPayloadPkg.dsc
... done!
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiLib/UefiLib.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiScsiLib/UefiScsiLib.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf [X64]
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf [X64]
make: Nothing to be done for 'tbuild'.
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/BaseLib.inf [X64]
Trim --asm-file -o /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.i -i /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/inc.lst /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64/LongJump.nasm
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/DxePcdLib/DxePcdLib.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLevelLibHob.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf [X64]
make: Nothing to be done for 'tbuild'.
"gcc" -MMD -MF /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.obj.deps -E -x assembler-with-cpp -include AutoGen.h -DOPENSBI_EXTERNAL_SBI_TYPES=OpensbiTypes.h -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64 -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/DEBUG -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Include -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Test/UnitTest/Include -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Include/X64 /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64/LongJump.nasm > /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.ii
Trim --trim-long --source-code -o /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.ii
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf [X64]
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf [X64]
make: Nothing to be done for 'tbuild'.
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf [X64]
"nasm" -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/DEBUG/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Include/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Test/UnitTest/Include/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Include/X64/ -f elf64 -o /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.obj /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii
/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii:44: error: parser: instruction expected
/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii:49: error: parser: instruction expected
make: *** [GNUmakefile:742: /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.obj] Error 1


build.py...
: error 7000: Failed to execute command
        make tbuild [/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib]


build.py...
: error F002: Failed to build module
        /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/BaseLib.inf [X64, GCC5, DEBUG]

- Failed -
Build end time: 12:23:48, Apr.05 2022
Build total time: 00:00:04

sghorai@sghorai-desk3:~/work/edk2-tianocore/edk2-april05/edk2$



Thx & rgds,
Sukumar


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

* Re: [edk2-devel] need help - edk2 build issue
  2022-04-05 20:09 ` need help - edk2 build issue Ghorai, Sukumar
@ 2022-04-05 21:37   ` Andrew Fish
  2022-04-05 21:38   ` Pedro Falcato
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Fish @ 2022-04-05 21:37 UTC (permalink / raw)
  To: devel, sukumar.ghorai

[-- Attachment #1: Type: text/plain, Size: 9344 bytes --]

Sukumar,

The LongJump.iii is just the nasm file after it has been post processed you should be able to look at it. 

If I look at mine I see. 

44:     rdsspq rax
...
49:    incsspq rax

Those are some funky x86 instructions maybe your nasm is too old? 

This should be the required version I think:
https://github.com/tianocore/edk2/blob/master/BaseTools/Bin/nasm_ext_dep.yaml
{
  "id": "nasm-1",
  "scope": "edk2-build",
  "type": "nuget",
  "name": "mu_nasm",
  "source": "https://api.nuget.org/v3/index.json",
  "version": "2.15.05",
  "flags": ["set_path", "host_specific"]
}

Thanks,

Andrew Fish

> On Apr 5, 2022, at 1:09 PM, Ghorai, Sukumar <sukumar.ghorai@intel.com> wrote:
> 
> Hi,
> 
> would you pl help me to resolve this edk2 build issue (TOT codebase)?
> 
> sghorai@sghorai-desk3:~/work/edk2-tianocore/edk2-april05/edk2$ build -p UefiPayloadPkg/UefiPayloadPkg.dsc -a IA32 -a X64 -t GCC5 -D BOOTLOADER=COREBOOT
> Build environment: Linux-5.13.0-35-generic-x86_64-with-glibc2.29
> Build start time: 12:23:43, Apr.05 2022
> 
> WORKSPACE        = /home/sghorai/work/edk2-tianocore/edk2-april05/edk2
> EDK_TOOLS_PATH   = /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/BaseTools
> CONF_PATH        = /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Conf
> PYTHON_COMMAND   = /usr/bin/python3.8
> 
> 
> Processing meta-data .
> Architecture(s)  = IA32 X64
> Build target     = DEBUG
> Toolchain        = GCC5
> 
> Active Platform          = /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/UefiPayloadPkg/UefiPayloadPkg.dsc
> ... done!
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiLib/UefiLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiScsiLib/UefiScsiLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf [X64]
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf [X64]
> make: Nothing to be done for 'tbuild'.
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/BaseLib.inf [X64]
> Trim --asm-file -o /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.i -i /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/inc.lst /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64/LongJump.nasm
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/DxePcdLib/DxePcdLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLevelLibHob.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> "gcc" -MMD -MF /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.obj.deps -E -x assembler-with-cpp -include AutoGen.h -DOPENSBI_EXTERNAL_SBI_TYPES=OpensbiTypes.h -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64 -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/DEBUG -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Include -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Test/UnitTest/Include -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Include/X64 /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64/LongJump.nasm > /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.ii
> Trim --trim-long --source-code -o /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.ii
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf [X64]
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf [X64]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf [X64]
> "nasm" -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/DEBUG/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Include/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Test/UnitTest/Include/ -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Include/X64/ -f elf64 -o /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.obj /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii:44: error: parser: instruction expected
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii:49: error: parser: instruction expected
> make: *** [GNUmakefile:742: /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.obj] Error 1
> 
> 
> build.py...
> : error 7000: Failed to execute command
>         make tbuild [/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib]
> 
> 
> build.py...
> : error F002: Failed to build module
>         /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/BaseLib.inf [X64, GCC5, DEBUG]
> 
> - Failed -
> Build end time: 12:23:48, Apr.05 2022
> Build total time: 00:00:04
> 
> sghorai@sghorai-desk3:~/work/edk2-tianocore/edk2-april05/edk2$
> 
> 
> 
> Thx & rgds,
> Sukumar
> 
> 
> 
> 
> 
> 


[-- Attachment #2: Type: text/html, Size: 27133 bytes --]

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

* Re: [edk2-devel] need help - edk2 build issue
  2022-04-05 20:09 ` need help - edk2 build issue Ghorai, Sukumar
  2022-04-05 21:37   ` [edk2-devel] " Andrew Fish
@ 2022-04-05 21:38   ` Pedro Falcato
  1 sibling, 0 replies; 3+ messages in thread
From: Pedro Falcato @ 2022-04-05 21:38 UTC (permalink / raw)
  To: edk2-devel-groups-io, sukumar.ghorai

[-- Attachment #1: Type: text/plain, Size: 8979 bytes --]

Hi,

It looks like the assembler is failing. Do you have an up-to-date NASM? I
remember that some distros' NASMs aren't supported by edk2, which requires
a fairly recent one (2.15.05)

Best regards,
Pedro

On Tue, Apr 5, 2022 at 10:25 PM Ghorai, Sukumar <sukumar.ghorai@intel.com>
wrote:

> Hi,
>
> would you pl help me to resolve this edk2 build issue (TOT codebase)?
>
> sghorai@sghorai-desk3:~/work/edk2-tianocore/edk2-april05/edk2$ build -p
> UefiPayloadPkg/UefiPayloadPkg.dsc -a IA32 -a X64 -t GCC5 -D
> BOOTLOADER=COREBOOT
> Build environment: Linux-5.13.0-35-generic-x86_64-with-glibc2.29
> Build start time: 12:23:43, Apr.05 2022
>
> WORKSPACE        = /home/sghorai/work/edk2-tianocore/edk2-april05/edk2
> EDK_TOOLS_PATH   =
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/BaseTools
> CONF_PATH        = /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Conf
> PYTHON_COMMAND   = /usr/bin/python3.8
>
>
> Processing meta-data .
> Architecture(s)  = IA32 X64
> Build target     = DEBUG
> Toolchain        = GCC5
>
> Active Platform          =
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/UefiPayloadPkg/UefiPayloadPkg.dsc
> ... done!
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiLib/UefiLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
> [X64]
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/BaseLib.inf
> [X64]
> Trim --asm-file -o
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.i
> -i
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/inc.lst
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64/LongJump.nasm
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/DxePcdLib/DxePcdLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLevelLibHob.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> "gcc" -MMD -MF
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.obj.deps
> -E -x assembler-with-cpp -include AutoGen.h
> -DOPENSBI_EXTERNAL_SBI_TYPES=OpensbiTypes.h
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/DEBUG
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Include
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Test/UnitTest/Include
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Include/X64
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64/LongJump.nasm
> >
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.ii
> Trim --trim-long --source-code -o
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.ii
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
> [X64]
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
> [X64]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
> [X64]
> "nasm"
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64/
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/X64/
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/DEBUG/
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Include/
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Test/UnitTest/Include/
> -I/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Include/X64/
> -f elf64 -o
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.obj
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii:44:
> error: parser: instruction expected
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii:49:
> error: parser: instruction expected
> make: *** [GNUmakefile:742:
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.obj]
> Error 1
>
>
> build.py...
> : error 7000: Failed to execute command
>         make tbuild
> [/home/sghorai/work/edk2-tianocore/edk2-april05/edk2/Build/UefiPayloadPkgX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib]
>
>
> build.py...
> : error F002: Failed to build module
>
> /home/sghorai/work/edk2-tianocore/edk2-april05/edk2/MdePkg/Library/BaseLib/BaseLib.inf
> [X64, GCC5, DEBUG]
>
> - Failed -
> Build end time: 12:23:48, Apr.05 2022
> Build total time: 00:00:04
>
> sghorai@sghorai-desk3:~/work/edk2-tianocore/edk2-april05/edk2$
>
>
>
> Thx & rgds,
> Sukumar
>
>
>
> 
>
>
>

-- 
Pedro Falcato

[-- Attachment #2: Type: text/html, Size: 9818 bytes --]

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

end of thread, other threads:[~2022-04-05 21:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CO1PR11MB520390D1D192CF6640A27BEE9DE49@CO1PR11MB5203.namprd11.prod.outlook.com>
2022-04-05 20:09 ` need help - edk2 build issue Ghorai, Sukumar
2022-04-05 21:37   ` [edk2-devel] " Andrew Fish
2022-04-05 21:38   ` Pedro Falcato

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