From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 98BBD3851C2D; Sat, 16 May 2020 02:25:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98BBD3851C2D From: "xuchunmei at linux dot alibaba.com" To: systemtap@sourceware.org Subject: [Bug translator/25994] inproper order of PATH set cause wrong unexpected gcc used Date: Sat, 16 May 2020 02:25:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xuchunmei at linux dot alibaba.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: Message-ID: In-Reply-To: References: 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: Sat, 16 May 2020 02:25:14 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25994 --- Comment #2 from xuchunmei --- (In reply to Frank Ch. Eigler from comment #1) > The problem is that for systemtap to build kernel modules compatible with > the system kernel, it must use the same compiler. Jumping between major > versions can create incompatible modules, whether enforced by symbol > versioning type metadata, or undetected inconsistencies in kernel struct > declarations. >=20 > Any idea where those -fpatchable-function-entry=3D2 cflags are coming fro= m?=20 > Maybe we can nuke those from within stap more properly. yes, My kernel is build with devtoolset-9-gcc, and systemtap is also build = with devtoolset-9, when I use systemtap I want to use gcc which is /opt/rh/devtoolset-9/root/usr/bin/gcc not /usr/bin/gcc. the "-fpatchable-function-entry=3D2" is from arch/arm64/Makefile: ifeq ($(CONFIG_DYNAMIC_FTRACE_WITH_REGS),y) KBUILD_CPPFLAGS +=3D -DCC_USING_PATCHABLE_FUNCTION_ENTRY CC_FLAGS_FTRACE :=3D -fpatchable-function-entry=3D2 endif --=20 You are receiving this mail because: You are the assignee for the bug.=