[Buildroot] [PATCH 1/1] package/mesa3d: add valgrind support
james.hilliard1 at gmail.com
Wed Jun 10 15:45:06 UTC 2020
On Wed, Jun 10, 2020 at 7:41 AM Romain Naour <romain.naour at gmail.com> wrote:
> Hi James, Thomas,
> Le 28/04/2020 à 07:47, James Hilliard a écrit :
> > On Mon, Apr 27, 2020 at 11:45 PM Thomas Petazzoni
> > <thomas.petazzoni at bootlin.com> wrote:
> >> On Mon, 27 Apr 2020 23:22:25 -0600
> >> James Hilliard <james.hilliard1 at gmail.com> wrote:
> >>> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
> >>> ---
> >>> package/mesa3d/mesa3d.mk | 10 ++++++++--
> >>> 1 file changed, 8 insertions(+), 2 deletions(-)
> >> Speaking of mesa3d/valgrind, we have this:
> >> http://autobuild.buildroot.net/results/1b5/1b58d73ecbbe1af2c3e140563d696cf32d1c4a5a/build-end.log
> >> Seems like mesa3d is trying to link with some static libraries from
> >> valgrind, which are not built with -fPIC. Have you looked into this?
> > Yeah, I had added this trying to fix that but it didn't seem to help.
> I spent some time investigating this issue but the problem is that mesa try to
> link with libcoregrind-<arch>-linux.a to build libgbm.so. But even by hacking
> the valgrind build system, the build is still failing.
> I tried with several toolchain (glibc and uclibc).
> Out of curiosity, what's your use case that require valgrind in mesa3d ?
Well I sometimes use valgrind for tracing certain bugs, figured since
mesa3d has a valgrind option we should use it when building valgrind.
> Note: The valgrind support is enabled in archlinux and fedora
> But no problem on their side ?
> Any idea ? otherwise we have to revert this patch because the build is still
> failing in the autobuilder.
The builds were failing before this patch so I don't see how reverting
> Best regards,
> >> Thanks!
> >> Thomas
> >> --
> >> Thomas Petazzoni, CTO, Bootlin
> >> Embedded Linux and Kernel engineering
> >> https://bootlin.com
More information about the buildroot