From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.61]) by mx.groups.io with SMTP id smtpd.web10.10867.1587055987097969266 for ; Thu, 16 Apr 2020 09:53:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cJ6Owtks; spf=pass (domain: redhat.com, ip: 205.139.110.61, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587055986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9kyYmIkK5AJlBFOW1Au2dIJ7qbrMv15d2Zy5kF/3QIE=; b=cJ6OwtksnXex3S0lGtVfjWUNV+FQ2DIlKgrUjNo5aqdPCUYGjLsVS2opGOuv0LUB4ax87z v0Rr50SBXZNa7yqpN28dg5Tx+0X8WD3VRs/yuIYESER0kebq8guRtgmBro1N/ZE+aUwAPR 0Uah9w4zhRHVXZPS2jCniQW1PcFTraM= 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-274-_n5NFF0NM8-BAiAVh5PLTQ-1; Thu, 16 Apr 2020 12:52:44 -0400 X-MC-Unique: _n5NFF0NM8-BAiAVh5PLTQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8A2D9A2067; Thu, 16 Apr 2020 16:52:43 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-114-225.ams2.redhat.com [10.36.114.225]) by smtp.corp.redhat.com (Postfix) with ESMTP id 405D39F9B5; Thu, 16 Apr 2020 16:52:41 +0000 (UTC) Subject: Re: [edk2-devel] OvmfPkg XenPkg: X64 DEBUG GCC5 -DDEBUG_ON_SERIAL_PORT=TRUE build is broken To: devel@edk2.groups.io, rebecca@bsdio.com, Anthony Perard , Julien Grall , Ard Biesheuvel References: From: "Laszlo Ersek" Message-ID: Date: Thu, 16 Apr 2020 18:52:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 04/15/20 16:20, Rebecca Cran wrote: > On 4/15/2020 8:04 AM, Laszlo Ersek wrote: >> >> I figure you attempted the DEBUG_ON_SERIAL_PORT build because without it >> you get no debug output at all (due to the default >> PlatformDebugLibIoPort resolution, which produces no logs on Xen). > > I just attempted the DEBUG_ON_SERIAL_PORT build because that's how I do > the other DEBUG OVMF builds and was running the following basic build > script to make sure my bhyve changes weren't breaking things. > > > build -p OvmfPkg/OvmfPkgX64.dsc -a X64 -t GCC5 -b RELEASE > build -p OvmfPkg/OvmfPkgX64.dsc -a X64 -t GCC5 -b DEBUG > -DDEBUG_ON_SERIAL_PORT=TRUE > build -p OvmfPkg/OvmfPkgX64.dsc -a X64 -t GCC5 -b NOOPT > build -p OvmfPkg/OvmfPkgIa32.dsc -a IA32 -t GCC5 -b RELEASE > build -p OvmfPkg/OvmfPkgIa32.dsc -a IA32 -t GCC5 -b DEBUG > -DDEBUG_ON_SERIAL_PORT=TRUE > build -p OvmfPkg/OvmfPkgIa32.dsc -a IA32 -t GCC5 -b NOOPT > build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5 -b RELEASE > build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5 -b DEBUG > -DDEBUG_ON_SERIAL_PORT=TRUE > build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5 -b NOOPT > build -p OvmfPkg/OvmfXen.dsc -a X64 -t GCC5 -b RELEASE > build -p OvmfPkg/OvmfXen.dsc -a X64 -t GCC5 -b DEBUG > -DDEBUG_ON_SERIAL_PORT=TRUE > build -p OvmfPkg/OvmfXen.dsc -a X64 -t GCC5 -b NOOPT > build -p BhyvePkg/BhyvePkgX64.dsc -a X64 -t GCC5 -b RELEASE > build -p BhyvePkg/BhyvePkgX64.dsc -a X64 -t GCC5 -b DEBUG > -DDEBUG_ON_SERIAL_PORT=TRUE > build -p BhyvePkg/BhyvePkgX64.dsc -a X64 -t GCC5 -b NOOPT > Thanks. Then the suggestion to remove DEBUG_ON_SERIAL_PORT from OvmfXen (maybe as a first step only?) would fit your use case too, I think. Laszlo