From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web10.521.1653630731458841913 for ; Thu, 26 May 2022 22:52:12 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([101.224.116.119]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Fri, 27 May 2022 13:52:05 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 101.224.116.119 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , , "'Rebecca Cran'" Cc: "'Ard Biesheuvel'" , "'Jiewen Yao'" , "'Jordan Justen'" , "'Gerd Hoffmann'" References: <19fda580-50da-302b-4c4e-0457fb28174b@quicinc.com> In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gT3ZtZlBrZ1g2NCBkb2Vzbid0IGJ1aWxkIHdpdGggQ0xBTkczOCAoY2xhbmcgMTQuMC4zKSBOT09QVCAtIHVuZGVmaW5lZCByZWZlcmVuY2UgdG8gYG1lbWNweSc=?= Date: Fri, 27 May 2022 13:52:07 +0800 Message-ID: <009501d8718d$e6bcf420$b436dc60$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGAf3sfI/u7uWN0H9WGpfCpbLa9kgIS4kKArdGEJrA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Ard: Jiewen has mentioned the issues caused by the structure assignment. Below= structure assignment is required to be replaced by CopyMem. VgpuGop->GopModeInfo =3D *GopModeInfo; Thanks Liming > -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- > =E5=8F=91=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io = =E4=BB=A3=E8=A1=A8 Ard > Biesheuvel > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2022=E5=B9=B45=E6=9C=8825=E6=97=A5 = 23:50 > =E6=94=B6=E4=BB=B6=E4=BA=BA: Rebecca Cran > =E6=8A=84=E9=80=81: edk2-devel-groups-io ; Ard Bies= heuvel > ; Jiewen Yao ; Jordan > Justen ; Gerd Hoffmann > =E4=B8=BB=E9=A2=98: Re: [edk2-devel] OvmfPkgX64 doesn't build with CLANG3= 8 (clang 14.0.3) > NOOPT - undefined reference to `memcpy' >=20 > On Wed, 25 May 2022 at 17:08, Rebecca Cran > 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' >=20 > Can you dump the object file to see where the memcpy() call is emitted? >=20 >=20 > > 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 se= e > > 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 >=20 >=20 >=20 >=20