From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A87F6384385B; Mon, 1 Feb 2021 01:31:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A87F6384385B From: "agentzh at gmail dot com" To: systemtap@sourceware.org Subject: [Bug runtime/27301] New: Aarch64 ko compilation failures when CONFIG_COMPAT is defined Date: Mon, 01 Feb 2021 01:31:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: agentzh at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2021 01:31:00 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27301 Bug ID: 27301 Summary: Aarch64 ko compilation failures when CONFIG_COMPAT is defined Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: runtime Assignee: systemtap at sourceware dot org Reporter: agentzh at gmail dot com Target Milestone: --- When CONFIG_COMPAT is defined in the kernel's config, stap fails to compile= its runtime on Fedora 32 (kernel 5.10): ``` $ /opt/stap/bin/stap -e 'probe process.function("main") { println(register("x0")) }' -c ./a.out WARNING: cannot find module /home/agentzh/git/systemtap.new/a.out debuginfo= : No DWARF information found [man warning::debuginfo] In file included from /opt/stap/share/systemtap/runtime/linux/../linux/regs.c:16, from /opt/stap/share/systemtap/runtime/linux/../regs.c:20, from /opt/stap/share/systemtap/runtime/linux/runtime.h:251, from /opt/stap/share/systemtap/runtime/runtime.h:26, from /tmp/stapLY6U32/stap_9b24fb2c80d42c5c58d165f9c20c403e_6889_src.c:21: /opt/stap/share/systemtap/runtime/compatdefs.h: In function =E2=80=98_stp_is_compat_task2=E2=80=99: /opt/stap/share/systemtap/runtime/compatdefs.h:38:2: error: #error architec= ture not supported, no TIF_32BIT flag? 38 | #error architecture not supported, no TIF_32BIT flag? | ^~~~~ /opt/stap/share/systemtap/runtime/compatdefs.h:40:1: error: no return state= ment in function returning non-void [-Werror=3Dreturn-type] 40 | } | ^ cc1: all warnings being treated as errors make[1]: *** [scripts/Makefile.build:279: /tmp/stapLY6U32/stap_9b24fb2c80d42c5c58d165f9c20c403e_6889_src.o] Error 1 make: *** [Makefile:1806: /tmp/stapLY6U32] Error 2 WARNING: kbuild exited with status: 2 Pass 4: compilation failed. [man error::pass4] ``` That part of runtime code does not handle aarch64 at all. A fix is easy. A patch is under way. --=20 You are receiving this mail because: You are the assignee for the bug.=