From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web09.157.1608559547577334116 for ; Mon, 21 Dec 2020 06:05:47 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=A4HADKfK; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1608559546; 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=E1EU0EhsTOTiJGIGAbLZtvK+S76wGe3UXYjululnLJc=; b=A4HADKfKdM5llVV/aU7qsUXKtEIkSIWksZAa5WYjlPOVm8P79MAG0yguUueARpSimMS0OE xUzWcvzrEZZDQYmdPbeMfdnfAWtGrHtLtmEmrVdG7KI/iNCa3Qvi48fNiGZN3pIHn9YJV8 UdO7xpJzeAA4QVqzVXo48YAMZMVM+bo= 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-2-wVtIvqtDNM6oS3HWR43i5g-1; Mon, 21 Dec 2020 09:05:35 -0500 X-MC-Unique: wVtIvqtDNM6oS3HWR43i5g-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 958C78144E4; Mon, 21 Dec 2020 14:05:34 +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 3A28060C0F; Mon, 21 Dec 2020 14:05:33 +0000 (UTC) Subject: Re: [edk2-devel] [Patch 1/1] EmulatorPkg/PlatformCI: stick with "ubuntu-18.04" for now From: "Laszlo Ersek" 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> Message-ID: <5b4bc691-c789-e05a-bbbd-90a10501fc41@redhat.com> Date: Mon, 21 Dec 2020 15:05:32 +0100 MIME-Version: 1.0 In-Reply-To: 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 14:47, Laszlo Ersek wrote: > 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. I have also filed: https://github.com/actions/virtual-environments/issues/2324 Thanks Laszlo