From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.groups.io with SMTP id smtpd.web08.39176.1608558481916927038 for ; Mon, 21 Dec 2020 05:48:03 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UKf+aUzp; spf=pass (domain: redhat.com, ip: 63.128.21.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1608558481; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mBR1ldX7QbCw0nX5SY8WOn/44u+2CsdmjjLJ8twmJfY=; b=UKf+aUzp9fS2rBq81Sf/blBGA1lCKZFzCMcPCQAm44aP+tna39xnBM4NUemPx05+VT6/Xl gqnH7CZi0ekxbUHXPqy7ChuSvlp3rKa5MBFNcU2LpvW13L1P51TlmoabiSHp0gNFJYUEXK y8Md/ViytLdM2h5IKwBlPLy8Vrj1uyY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-104-UGMJqw-bNKC-P2k_Fr5ARw-1; Mon, 21 Dec 2020 08:47:50 -0500 X-MC-Unique: UGMJqw-bNKC-P2k_Fr5ARw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 75F5859; Mon, 21 Dec 2020 13:47:49 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-114-71.ams2.redhat.com [10.36.114.71]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0DD5760C0F; Mon, 21 Dec 2020 13:47:47 +0000 (UTC) Subject: Re: [edk2-devel] [Patch 1/1] EmulatorPkg/PlatformCI: stick with "ubuntu-18.04" for now To: devel@edk2.groups.io, bob.c.feng@intel.com Cc: Jordan Justen , Andrew Fish , Ray Ni References: <20201221031930.1799-1-bob.c.feng@intel.com> From: "Laszlo Ersek" Message-ID: Date: Mon, 21 Dec 2020 14:47:47 +0100 MIME-Version: 1.0 In-Reply-To: <20201221031930.1799-1-bob.c.feng@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lersek@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 12/21/20 04:19, Bob Feng wrote: > "vm_image: 'ubuntu-latest'" now refers to Ubuntu Focal (20.04LTS), not > Ubuntu Bionic (18.04LTS), according to > . > > In Focal, the "qemu" package is a dummy package with no dependencies, and > so the actual emulators are not pulled in. Compare: > > https://packages.ubuntu.com/bionic/qemu > https://packages.ubuntu.com/focal/qemu > > This causes CI runs to fail. > > It would be best to switch to the "qemu-system" package name, which > continues to depend on the emulators: > > https://packages.ubuntu.com/bionic/qemu-system > https://packages.ubuntu.com/focal/qemu-system > > However, while that package does make the emulators available, the > emulators crash. So for now, stick with the previous Ubuntu environment, > which continues to be supported, per > . > > Signed-off-by: Bob Feng > Cc: Jordan Justen > Cc: Andrew Fish > Cc: Ray Ni > --- > EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml b/EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml > index 0e5f4d9961e3..17d62bb69ec5 100644 > --- a/EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml > +++ b/EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml > @@ -15,11 +15,11 @@ pr: > - master > jobs: > - job: Platform_CI > variables: > package: 'EmulatorPkg' > - vm_image: 'ubuntu-latest' > + vm_image: 'ubuntu-18.04' > should_run: false > run_flags: "MAKE_STARTUP_NSH=TRUE" > > #Use matrix to speed up the build process > strategy: > Reviewed-by: Laszlo Ersek I'm going to merge this at once, because it's blocking other pull requests. I can see that this patch reuses the commit message from my commits 90683caedf1e ("ArmVirtPkg/PlatformCI: stick with "ubuntu-18.04" for now", 2020-12-18) and c487970ac89d ("OvmfPkg/PlatformCI: stick with "ubuntu-18.04" for now", 2020-12-18). When I wrote those patches, I obviously did *not* miss EmulatorPkg. However, EmulatorPkg does not use QEMU in CI -- that's the reason my series did not cover EmulatorPkg. I did not foresee any reason for EmulatorPkg's CI tasks to fail with Ubuntu 20.04LTS. And now that I'm actually checking such an (unexpected) failure, it's not QEMU-related. Instead, it's a GCC issue: https://dev.azure.com/tianocore/edk2-ci/_build/results?buildId=17230&view=logs&j=7cda4867-6a98-5508-f20e-3046bf80e19c&t=9a255493-65b4-5c45-e228-bf6eb3567b30&l=1150 > INFO - "gcc" -o /home/vsts/work/1/s/Build/EmulatorIA32/DEBUG_GCC5/IA32/Host -m32 -L/usr/X11R6/lib -Wl,--start-group,@/home/vsts/work/1/s/Build/EmulatorIA32/DEBUG_GCC5/IA32/EmulatorPkg/Unix/Host/Host/OUTPUT/static_library_files.lst,--end-group -lpthread -ldl -lXext -lX11 > INFO - /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/9/libgcc.a when searching for -lgcc > INFO - /usr/bin/ld: cannot find -lgcc > INFO - /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/9/libgcc.a when searching for -lgcc > INFO - /usr/bin/ld: cannot find -lgcc > INFO - collect2: error: ld returned 1 exit status > INFO - make: *** [GNUmakefile:421: /home/vsts/work/1/s/Build/EmulatorIA32/DEBUG_GCC5/IA32/EmulatorPkg/Unix/Host/Host/DEBUG/Host] Error 1 Therefore, when I merge this patch, I will update the commit message to refer to a GCC linking issue rather than to QEMU. Thanks Laszlo