public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* OSX / XCODE5-specific issue with OVMF?...
@ 2020-10-15 16:06 Laszlo Ersek
  2020-10-15 16:41 ` Andrew Fish
  0 siblings, 1 reply; 2+ messages in thread
From: Laszlo Ersek @ 2020-10-15 16:06 UTC (permalink / raw)
  To: Liming Gao (Byosoft address), Andrew Fish
  Cc: edk2-devel-groups-io, Daniele Crudo

Hi Andrew, Liming,

can you please take a look at
<https://bugzilla.tianocore.org/show_bug.cgi?id=3006>? Daniele has a
quite specific VM setup with OVMF, and it only causes an issue if the
OVMF binary was built on OSX with XCODE5. I'm out of ideas.

Thanks,
Laszlo


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

* Re: OSX / XCODE5-specific issue with OVMF?...
  2020-10-15 16:06 OSX / XCODE5-specific issue with OVMF? Laszlo Ersek
@ 2020-10-15 16:41 ` Andrew Fish
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Fish @ 2020-10-15 16:41 UTC (permalink / raw)
  To: Laszlo Ersek
  Cc: Liming Gao (Byosoft address), edk2-devel-groups-io, Daniele Crudo

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

Laszlo,

The Logo issue is likely related to lack of support of HII Sections in PE/COFF for the XCODE toolchain. It is the same reason these commands[1] are not included in the OVMF build. I submitted some patches a while back to fix this, I need to follow as I’m not sure they got integrated. So the logo issue is not related. 

Is the system hung or just not working? If it is hung you can try and attach via lldb to see your location. If it is just not working then I think you will need to do the DEBUG prints that Laszlo mentioned. 

In general if you have XCODE specific issues it is often time related to clang being so aggressive about optimizing out undefined behavior. 

If you pass ` -gdb tcp::9000` to QEMU you can attach with lldb via:
lldb -o "settings set plugin.process.gdb-remote.target-definition-file x86_64_target_definition.py" -o "gdb-remote 9000"

You only need the plugin.process.gdb-remote.target-definition-file if you have an older lldb and older QEMU. Long story but lldb did not support the XML description of the target. If this works you will get registers and an unsymbolicated backtrace. 

[1] https://github.com/tianocore/edk2/blob/master/OvmfPkg/OvmfPkgX64.dsc#L898


!if $(TOOL_CHAIN_TAG) != "XCODE5"
  ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
    <PcdsFixedAtBuild>
      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  }
  ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
    <PcdsFixedAtBuild>
      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  }
  OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
    <PcdsFixedAtBuild>
      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  }
!endif

[2] You can find x86_64_target_definition.py here:  https://opensource.apple.com/source/lldb/lldb-310.2.36/examples/python/x86_64_target_definition.py.auto.html

Thanks,

Andrew Fish

> On Oct 15, 2020, at 9:06 AM, Laszlo Ersek <lersek@redhat.com> wrote:
> 
> Hi Andrew, Liming,
> 
> can you please take a look at
> <https://bugzilla.tianocore.org/show_bug.cgi?id=3006>? Daniele has a
> quite specific VM setup with OVMF, and it only causes an issue if the
> OVMF binary was built on OSX with XCODE5. I'm out of ideas.
> 
> Thanks,
> Laszlo
> 


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

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

end of thread, other threads:[~2020-10-15 16:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-15 16:06 OSX / XCODE5-specific issue with OVMF? Laszlo Ersek
2020-10-15 16:41 ` Andrew Fish

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