From nobody Fri May 3 08:04:45 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1652956708; cv=none; d=zohomail.com; s=zohoarc; b=LgMWYdE8cUaP7DrLkgMYy9ILRspHzNIS06U65SXMLbp8z5PbqNfp2oTTG1DV3Xn1uCWj/9QGmv8xAXDBYRWK9Gwu3ekjdXzjD7sIyIAxN+//D+38pJZogn6/DohNgAHMVvbG7LeAbcatXgLT+k54yDHD9zJsNO6gR8q3x5ixP9s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652956708; h=Content-Type:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=ZkHJvjiogV8uoLrlAZ3zbuSKzMUvbf6MMvQLCE34nA4=; b=fefy90Goqd0BOixntI61WS+qKVWHLXIjKuE/zzFwzxJQWT2tvCArb8esGpQADf8XIGGaRgctQqxpDrteKDuq/V1ASEOjA6WOOXa77HTirpgJ97sGYSLi5hgu4PF/e5X/HqfKd4ZEg1P1y/RfQbX+nUSOWHm+x6JS2JSBlWzhqs8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652956708614832.3504698085725; Thu, 19 May 2022 03:38:28 -0700 (PDT) Received: from localhost ([::1]:53608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrdY2-0005Sz-U8 for importer2@patchew.org; Thu, 19 May 2022 06:38:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrdWU-0004eP-OH for qemu-devel@nongnu.org; Thu, 19 May 2022 06:36:50 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:43583) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrdWT-0001oj-0r for qemu-devel@nongnu.org; Thu, 19 May 2022 06:36:50 -0400 Received: by mail-pg1-x532.google.com with SMTP id q76so4670514pgq.10 for ; Thu, 19 May 2022 03:36:48 -0700 (PDT) Received: from anisinha-lenovo ([49.207.223.153]) by smtp.googlemail.com with ESMTPSA id n22-20020a056a0007d600b0050dc7628139sm3980069pfu.19.2022.05.19.03.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 03:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anisinha-ca.20210112.gappssmtp.com; s=20210112; h=from:date:to:cc:subject:message-id:user-agent:mime-version; bh=ZkHJvjiogV8uoLrlAZ3zbuSKzMUvbf6MMvQLCE34nA4=; b=hlAbwjhXBD9LjlLlypcKZZoflJNG82pFK9HyOqHKFVP8OJA/sglQcS7vssjcxfKRX4 jRIZw6EUnFG9By/nWqAnTJbQo5zuYGGfm7p/G6hTrssU8EjKBhg48LEzpwa9RZOFyCEB zyhDhn27K/QsZkR5/9CpEJCNLtP54WCmGo0qpD6PVJdTjBPUk86/6oB9/6G2GSdJtANE w/D3BoE8vahxZA8LBBujEEzRNttgHvClTv805aqD1OH1zxsFm5INYSeBmCXwQs9nxvzo vl/TJD1kQQMEtiBkbH+K9rIybxtFJn2+vz8CX7L8Sabh/xoKyMeHUNdKHC1Qb/5l/XYl egZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:subject:message-id:user-agent :mime-version; bh=ZkHJvjiogV8uoLrlAZ3zbuSKzMUvbf6MMvQLCE34nA4=; b=KAxbVjp9r2bu38W9kCp4rX2/mkBH7GJRXDRgXhwKEDNAdEN/2nPRj6KcRmEo23tcLF GupEHz1IiGu372JpRy2fnCkCdvQgr1suagQhcnIuboZkntaOVBbgoacUNj75vBFPzz5z fFVlObsHcoTED4m2TnGeFouFnbTl/gL9jUoJaclLdphbdAgVWykJ6/mHZXNxVvd/ff5q gLJxv8fq42DGWnuBcbkzoF+kz1uuZAwd5cfdn50gP811qSSy7fgBlo/ERBenk+SytMS0 9pRswTETzHEx6dM+IRz+6sfYbGLm/Y48mpvv6t6WjcJ+z/2TpYKkyz3mj+hliwGVMU8J CbVA== X-Gm-Message-State: AOAM533MZxywMRPqbFmQLNBXXGwO7dd8qnIkB9Ruog2fEn3BmWT6vTpa wx3fnbtugvV3PWnol4yRCZ0Nnw== X-Google-Smtp-Source: ABdhPJxH9QvTXKLFh7rwfaNFUgSd8txsly6B2HhhmOq9lX9BNXeil8yJq753Y3v6eY2rkhSzyhR5kg== X-Received: by 2002:a05:6a00:3023:b0:518:4721:13c6 with SMTP id ay35-20020a056a00302300b00518472113c6mr795216pfb.34.1652956607066; Thu, 19 May 2022 03:36:47 -0700 (PDT) From: Ani Sinha X-Google-Original-From: Ani Sinha Date: Thu, 19 May 2022 16:06:41 +0530 (IST) X-X-Sender: anisinha@anisinha-lenovo To: Josh Triplett cc: Igor Mammedov , Qemu devel Subject: bios bits for QEMU acpi tests Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::532; envelope-from=ani@anisinha.ca; helo=mail-pg1-x532.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @anisinha-ca.20210112.gappssmtp.com) X-ZM-MESSAGEID: 1652956709794100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Hi Josh: I am looking into integrating bios bits into Qemu functional tests for acpi. Towards that end, I am trying to compile the code on a newer compiler as we might need to make some changes, for example, update acpica so that it can recognize newer tables etc. gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 Since grub/python etc are quite old in the tree, on the newer copiler it does not build out of the box (it does however build fine on my centos 7.9 vm with gcc version 4.8.5 20150623 (Red Hat 4.8.5-44)). I have resolved a number of issues and warnings when compiling it on the new version of gcc. I will at some point clean then up and share the changes through my github (most are cosmetic). However, there is one last issue which I am not able to get past: _GLOBAL_OFFSET_TABLE_ in python is not defined $ nm -g -P -p --undefined build/grub-build-i386-pc/grub-core/python.module | grep -i global _GLOBAL_OFFSET_TABLE_ U I have made the following change in rc/python/Makefile.core.def but with no help: --- a/rc/python/Makefile.core.def +++ b/rc/python/Makefile.core.def @@ -29,7 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMA= GE. module =3D { name =3D python; cppflags =3D '-I$(top_srcdir)/contrib/python -I$(srcdir)/contrib-d= eps/python/Include -D_IEEE_LIBM -D__LITTLE_ENDIAN=3D -I$(srcdir)/contrib-de= ps/fdlibm $(CONTRIB_CPPFLAGS) -include contrib/acpica/acenv.h -DGRUB2 -DACP= I_LIBRARY -I$(top_srcdir)/contrib/acpica -I$(srcdir)/contrib-deps/acpica/so= urce/include -U__ELF__ -I$(srcdir)/contrib-deps/libffi/include -I$(srcdir)/= contrib-deps/libffi/src/x86 -I$(srcdir)/contrib-deps/python/Modules/zlib'; - cflags =3D '$(CONTRIB_CFLAGS) -fshort-wchar -maccumulate-outgoing-= args -Wno-empty-body -Wno-float-equal -Wno-maybe-uninitialized -Wno-missing= -field-initializers -Wno-missing-declarations -Wno-missing-format-attribute= -Wno-missing-noreturn -Wno-missing-prototypes -Wno-nested-externs -Wno-old= -style-definition -Wno-parentheses -Wno-redundant-decls -Wno-sign-compare -= Wno-shadow -Wno-shift-negative-value -Wno-type-limits -Wno-undef -Wno-unini= tialized -Wno-unused -Wno-unused-parameter -Wno-unused-value -Wno-unused-va= riable -Wno-write-strings'; + cflags =3D '$(CONTRIB_CFLAGS) -fshort-wchar -fno-pie -no-pie -macc= umulate-outgoing-args -Wno-empty-body -Wno-float-equal -Wno-maybe-uninitial= ized -Wno-missing-field-initializers -Wno-missing-declarations -Wno-missing= -format-attribute -Wno-missing-noreturn -Wno-missing-prototypes -Wno-nested= -externs -Wno-old-style-definition -Wno-parentheses -Wno-redundant-decls -W= no-sign-compare -Wno-shadow -Wno-shift-negative-value -Wno-type-limits -Wno= -undef -Wno-uninitialized -Wno-unused -Wno-unused-parameter -Wno-unused-val= ue -Wno-unused-variable -Wno-write-strings'; enable =3D i386_pc; enable =3D i386_efi; I have ensured that the cflags are infact getting used by gcc. I am not sure how to resolve this. Do you have any ideas? Thanks, ani