Ard: Jiewen has mentioned the issues caused by the structure assignment. Below structure assignment is required to be replaced by CopyMem.
VgpuGop->GopModeInfo = *GopModeInfo; Thanks Liming > -----邮件原件----- > 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Ard > Biesheuvel > 发送时间: 2022年5月25日 23:50 > 收件人: Rebecca Cran <quic_rc...@quicinc.com> > 抄送: edk2-devel-groups-io <devel@edk2.groups.io>; Ard Biesheuvel > <ardb+tianoc...@kernel.org>; Jiewen Yao <jiewen....@intel.com>; Jordan > Justen <jordan.l.jus...@intel.com>; Gerd Hoffmann <kra...@redhat.com> > 主题: Re: [edk2-devel] OvmfPkgX64 doesn't build with CLANG38 (clang 14.0.3) > NOOPT - undefined reference to `memcpy' > > On Wed, 25 May 2022 at 17:08, Rebecca Cran <quic_rc...@quicinc.com> > wrote: > > > > I noticed OvmfPkg/OvmfPkgX64.dsc doesn't build with `-t CLANG38 -b > > NOOPT` (with clang version 14.0.2) with the latest edk2 master > > (07c0c2eb0a5970db614ebce1060fc79d6904bdfd): > > > > make: Nothing to be done for 'tbuild'. > > /usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: > > 0x23 > > > /home/bcran/src/upstream/uefi/edk2/Build/OvmfX64/NOOPT_CLANG38/X6 > 4/OvmfPkg/VirtioGpuDxe/VirtioGpu/OUTPUT/VirtioGpuDxe.lib(Gop.obj): > > in function `GopSetMode': > > Gop.c:(.text.GopSetMode+0x418): undefined reference to `memcpy' > > Can you dump the object file to see where the memcpy() call is emitted? > > > > Building ... > > > /home/bcran/src/upstream/uefi/edk2/OvmfPkg/PlatformPei/PlatformPei.inf > > [X64] > > clang-14.0: error: linker command failed with exit code 1 (use -v to see > > invocation) > > make: Nothing to be done for 'tbuild'. > > make: *** [GNUmakefile:358: > > > /home/bcran/src/upstream/uefi/edk2/Build/OvmfX64/NOOPT_CLANG38/X6 > 4/OvmfPkg/VirtioGpuDxe/VirtioGpu/DEBUG/VirtioGpuDxe.dll] > > Error 1 > > > > > > build.py... > > : error 7000: Failed to execute command > > make tbuild > > > [/home/bcran/src/upstream/uefi/edk2/Build/OvmfX64/NOOPT_CLANG38/X > 64/OvmfPkg/VirtioGpuDxe/VirtioGpu] > > > > > > build.py... > > : error F002: Failed to build module > > > /home/bcran/src/upstream/uefi/edk2/OvmfPkg/VirtioGpuDxe/VirtioGpu.inf > [X64, CLANG38, NOOPT] > > > > - Failed - > > Build end time: 09:03:38, May.25 2022 > > Build total time: 00:00:07 > > > > > > -- > > Rebecca Cran > > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#90081): https://edk2.groups.io/g/devel/message/90081 Mute This Topic: https://groups.io/mt/91371373/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-