[OE-core] [PATCH] piglit: fix build failure with gold linker

Jussi Kukkonen jussi.kukkonen at intel.com
Tue Aug 2 10:09:31 UTC 2016


On 1 August 2016 at 18:34, Maxin B. John <maxin.john at intel.com> wrote:

> When we use gold linker while DISTRO set to "nodistro", piglit build
> fails with the following error:
>
> | ../../../../lib/libpiglitutil_gl.so.0: error: undefined reference to
> 'dlsym'
> | ../../../../lib/libpiglitutil_gl.so.0: error: undefined reference to
> 'dlerror'
> | ../../../../lib/libpiglitutil_gl.so.0: error: undefined reference to
> 'dlopen'
> | collect2: error: ld returned 1 exit status
>
> Fix it by providing '-ldl' to LDFLAGS.
>
> [YOCTO #9851]
>
> Signed-off-by: Maxin B. John <maxin.john at intel.com>
> ---
>  meta/recipes-graphics/piglit/piglit_git.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta/recipes-graphics/piglit/piglit_git.bb
> b/meta/recipes-graphics/piglit/piglit_git.bb
> index 811f7af..df90c4d 100644
> --- a/meta/recipes-graphics/piglit/piglit_git.bb
> +++ b/meta/recipes-graphics/piglit/piglit_git.bb
> @@ -30,6 +30,8 @@ do_compile[dirs] =+ "${B}/temp/"
>  PACKAGECONFIG ??= ""
>  PACKAGECONFIG[freeglut] =
> "-DPIGLIT_USE_GLUT=1,-DPIGLIT_USE_GLUT=0,freeglut,"
>
> +LDFLAGS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold',
> '-ldl', '', d)}"
>

I think we should fix this with a build system patch and send it upstream
-- the problem only shows up with gold but it looks like a real bug.

Jussi

+
>  do_configure_prepend() {
>     if [ "${@bb.utils.contains('PACKAGECONFIG', 'freeglut', 'yes', 'no',
> d)}" = "no" ]; then
>          sed -i -e "/^#.*include <GL\/freeglut_ext.h>$/d"
> ${S}/src/piglit/glut_wrap.h
> --
> 2.4.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160802/2118a421/attachment-0002.html>


More information about the Openembedded-core mailing list