• Bug#874531: mesa: FTBFS on armel: __atomic_fetch_add_8 undefined

    From Aaron M. Ucko@21:1/5 to All on Thu Sep 7 04:40:01 2017
    XPost: linux.debian.bugs.dist

    Source: mesa
    Version: 17.2.0-2
    Severity: serious
    Tags: upstream
    Justification: fails to build from source (but built successfully in the past)

    Builds of mesa for armel have been failing lately:

    glsl/.libs/libstandalone.a(libmesautil_la-disk_cache.o): In function `disk_cache_remove':
    ./build/src/util/../../../src/util/disk_cache.c:643: undefined reference to `__atomic_fetch_add_8'
    collect2: error: ld returned 1 exit status
    Makefile:2110: recipe for target 'glsl_compiler' failed
    make[5]: *** [glsl_compiler] Error 1
    make[5]: Leaving directory '/<<PKGBUILDDIR>>/build/src/compiler'

    Please link glsl_compiler (and anything else that uses libstandalone)
    against -latomic. If you don't want that dependency on architectures
    that don't need it, you can either conditionalize on architecture or
    precede -latomic with -Wl,--as-needed (and follow it with
    -Wl,--no-as-needed if desired).

    Thanks!

    --
    Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org) http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)