Re: OvmfPkgX64 doesn't build with CLANG38 (clang 14.0.3) NOOPT - undefined reference to `memcpy'

Ard Biesheuvel

On Wed, 25 May 2022 at 17:08, Rebecca Cran <quic_rcran@...> 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

make: Nothing to be done for 'tbuild'.
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value:
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 ...
clang-14.0: error: linker command failed with exit code 1 (use -v to see
make: Nothing to be done for 'tbuild'.
make: *** [GNUmakefile:358:
Error 1
: error 7000: Failed to execute command
make tbuild
: 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

Join { to automatically receive all group messages.