From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by mx.groups.io with SMTP id smtpd.web08.9461.1653497841416280374 for ; Wed, 25 May 2022 09:57:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=MXDKmvTG; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: quicinc.com, ip: 199.106.114.39, mailfrom: quic_rcran@quicinc.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1653497841; x=1685033841; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=QHFeyPrmbPoQ6I+Ck1c9qTgH/V5lcTFFmH27uu3i2Ac=; b=MXDKmvTGUY4hJUgz0fpaLxd8UkNupe5PTYFh3AroZhOD+cExhyHTSYlz yKIw4IE/zjWLyZhOgX5q3aNJMDJrvprZCSEjNQ7TC7S4TJImvIVpMgdVm YuI15Ca6DJYb1mk0oT2TpUVwcgHTQ3w4nbsN5mA9xbUeW1JRtNHY2lG3c I=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 25 May 2022 09:57:21 -0700 X-QCInternal: smtphost Received: from nasanex01b.na.qualcomm.com ([10.46.141.250]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 09:57:21 -0700 Received: from [10.110.97.80] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 25 May 2022 09:57:20 -0700 Message-ID: Date: Wed, 25 May 2022 10:57:19 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [edk2-devel] OvmfPkgX64 doesn't build with CLANG38 (clang 14.0.3) NOOPT - undefined reference to `memcpy' To: Pedro Falcato , edk2-devel-groups-io , Ard Biesheuvel CC: Ard Biesheuvel , Jiewen Yao , Jordan Justen , Gerd Hoffmann References: <19fda580-50da-302b-4c4e-0457fb28174b@quicinc.com> From: "Rebecca Cran" In-Reply-To: Return-Path: quic_rcran@quicinc.com X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) Content-Language: en-US Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit On 5/25/22 10:43, Pedro Falcato wrote: > > > On Wed, May 25, 2022 at 4:50 PM Ard Biesheuvel wrote: > > 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/X64/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? > > I think I found the smoking gun: > https://github.com/tianocore/edk2/blob/916f90baa547b3ebef8fa87c530e2f0c8e35e1e3/OvmfPkg/VirtioGpuDxe/Gop.c#L512 Ah, thanks! I've just sent out another email this time about building with the XCODE5 toolchain and _AsmRelocateApMailBoxLoopStart not being defined. -- Rebecca Cran