[Buildroot] [Bug 8946] Valgrind fails to build with stack protection turned on

bugzilla at busybox.net bugzilla at busybox.net
Sat Dec 10 04:19:01 UTC 2016


https://bugs.busybox.net/show_bug.cgi?id=8946

Brandon Maier <brandon.maier at rockwellcollins.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WORKSFORME                  |---
             Status|RESOLVED                    |REOPENED

--- Comment #8 from Brandon Maier <brandon.maier at rockwellcollins.com> ---
We just ran into this same build error on one of our boards.

I was able to recreate the error on master
(f30eec41f95ed99909eb2c7590d83c12b9142df2) by building the beaglebone_defconfig
with BR2_TOOLCHAIN_BUILDROOT_USE_SSP=y and BR2_SSP_ALL=y. Then doing "make
valgrind".

The cause is Valgrind requires -fno-stack-protector to build correctly. I fixed
the error by appending -fno-stack-protector to the CFLAGS passed to Valgrind,
so that it overrides the ones in TARGET_CFLAGS.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the buildroot mailing list