public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Andrew Fish" <afish@apple.com>
To: devel@edk2.groups.io, sukumar.ghorai@intel.com
Subject: Re: [edk2-devel] need help - edk2 build issue
Date: Tue, 05 Apr 2022 14:37:44 -0700	[thread overview]
Message-ID: <8E442820-FBE7-4F26-859A-E9C65CBAD619@apple.com> (raw)
In-Reply-To: <CO1PR11MB52031FD82024FD6FAC6585F09DE49@CO1PR11MB5203.namprd11.prod.outlook.com>

[-- 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 --]

  reply	other threads:[~2022-04-05 21:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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   ` Andrew Fish [this message]
2022-04-05 21:38   ` [edk2-devel] " Pedro Falcato

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8E442820-FBE7-4F26-859A-E9C65CBAD619@apple.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox