riscv64: force --enable-frame-pointers configure option
Configure script detect -fno-omit-frame-pointer and -momit-leaf-frame-pointer compile options both together, see, https://github.com/gperftools/gperftools/blob/master/configure.ac#L211 For RISC-V, until gcc14 -momit-leaf-frame-pointer was not supported, see, https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=39663298b5934831a0125e12f113ebd83248c3be We use gcc12, thus the detection would be failed and no fp used in the code, and then stacktrace_unittest's generic_fp test failed. Add --enable-frame-pointers configure option can force -fno-omit-frame-pointer alone been used. Sigend-off-by: laokz <zhangkai@iscas.ac.cn>
This commit is contained in:
parent
b8bfb3ff2b
commit
1d913d802a
@ -1,6 +1,6 @@
|
|||||||
Name: gperftools
|
Name: gperftools
|
||||||
Version: 2.15
|
Version: 2.15
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: high-performance malloc and performance analysis tools
|
Summary: high-performance malloc and performance analysis tools
|
||||||
|
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
@ -68,6 +68,9 @@ CXXFLAGS=`echo $RPM_OPT_FLAGS -fno-strict-aliasing -Wno-unused-local-typedefs -D
|
|||||||
%configure \
|
%configure \
|
||||||
%ifarch s390x aarch64
|
%ifarch s390x aarch64
|
||||||
--disable-general-dynamic-tls \
|
--disable-general-dynamic-tls \
|
||||||
|
%endif
|
||||||
|
%ifarch riscv64
|
||||||
|
--enable-frame-pointers \
|
||||||
%endif
|
%endif
|
||||||
--disable-dynamic-sized-delete-support \
|
--disable-dynamic-sized-delete-support \
|
||||||
|
|
||||||
@ -105,6 +108,10 @@ LD_LIBRARY_PATH=./.libs make check
|
|||||||
%{_mandir}/man1/*.1.gz
|
%{_mandir}/man1/*.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 22 2024 laokz <zhangkai@iscas.ac.cn> - 2.15-2
|
||||||
|
- riscv64: force --enable-frame-pointers due to unsupported
|
||||||
|
-momit-leaf-frame-pointer compile option until gcc14
|
||||||
|
|
||||||
* Mon Feb 5 2024 nicunshu <nicunshu@huawei.com> - 2.15-1
|
* Mon Feb 5 2024 nicunshu <nicunshu@huawei.com> - 2.15-1
|
||||||
- Upgrade tp 2.15
|
- Upgrade tp 2.15
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user