[Bug translator/25994] inproper order of PATH set cause wrong unexpected gcc used
xuchunmei at linux dot alibaba.com
sourceware-bugzilla@sourceware.org
Sat May 16 02:25:14 GMT 2020
https://sourceware.org/bugzilla/show_bug.cgi?id=25994
--- Comment #2 from xuchunmei <xuchunmei at linux dot alibaba.com> ---
(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.
>
> Any idea where those -fpatchable-function-entry=2 cflags are coming from?
> 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=2" is from arch/arm64/Makefile:
ifeq ($(CONFIG_DYNAMIC_FTRACE_WITH_REGS),y)
KBUILD_CPPFLAGS += -DCC_USING_PATCHABLE_FUNCTION_ENTRY
CC_FLAGS_FTRACE := -fpatchable-function-entry=2
endif
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list