[Mesa-dev] MESA_Build_ERROR

Tapani Pälli tapani.palli at intel.com
Fri Mar 15 10:34:55 UTC 2019


On 3/14/19 1:26 PM, Milav wrote:
> Hello Sir,
> 
> This Is Milav Soni From TEQ DILIGENT.
> 
> I cross compiled the xserver using jhbuild.
> 
> I follow the following link.
> 
> https://www.x.org/wiki/CrossCompilingXorg/
> 
> But when it comes in mesa configuration, it gives following error.
> 
> /*------------------------------------------------------error-------------------------------------------------------------------------*/
> 
> copying selected object files to avoid basename conflicts...
>    CXXLD    glsl_compiler
> make[4]: Leaving directory 
> `/home/teqdiligent/.cache/jhbuild/build/mesa/mesa/src/compiler'
> make[3]: Leaving directory 
> `/home/teqdiligent/.cache/jhbuild/build/mesa/mesa/src/compiler'
> Making all in intel
> make[3]: Entering directory 
> `/home/teqdiligent/.cache/jhbuild/build/mesa/mesa/src/intel'
> make  all-am
> make[4]: Entering directory 
> `/home/teqdiligent/.cache/jhbuild/build/mesa/mesa/src/intel'
>    CC isl/libisl_tiled_memcpy_sse41_la-isl_tiled_memcpy_sse41.lo
>    CC       tools/tools_aubinator-aub_mem.o
> /home/teqdiligent/sources/xorg/git/mesa/mesa/src/intel/tools/aub_mem.c: 
> In function 'memfd_create':
> /home/teqdiligent/sources/xorg/git/mesa/mesa/src/intel/tools/aub_mem.c:37:19: 
> error: 'SYS_memfd_create' undeclared (first use in this function)
> /home/teqdiligent/sources/xorg/git/mesa/mesa/src/intel/tools/aub_mem.c:37:19: 
> note: each undeclared identifier is reported only once for each function 
> it appears in
> make[4]: *** [tools/tools_aubinator-aub_mem.o] Error 1
> make[4]: *** Waiting for unfinished jobs....
> *arm-cortexa8-linux-gnueabihf-gcc: error: unrecognized command line 
> option '-msse4.1'*

What comes to sse41 error, it looks like we properly check for support 
in configure.ac but ignore the result (SSE41_SUPPORTED) in 
Makefile.isl.am. This change should fix it:

https://gitlab.freedesktop.org/mesa/mesa/merge_requests/451

(meson build handles this correctly)

> make[4]: *** 
> [isl/libisl_tiled_memcpy_sse41_la-isl_tiled_memcpy_sse41.lo] Error 1
> make[4]: Leaving directory 
> `/home/teqdiligent/.cache/jhbuild/build/mesa/mesa/src/intel'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory 
> `/home/teqdiligent/.cache/jhbuild/build/mesa/mesa/src/intel'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory 
> `/home/teqdiligent/.cache/jhbuild/build/mesa/mesa/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory 
> `/home/teqdiligent/.cache/jhbuild/build/mesa/mesa/src'
> make: *** [all-recursive] Error 1
> *** Error during phase build of mesa-mesa: ########## Error running make 
> -j 2  *** [37/38]
> 
>    [1] Rerun phase build
>    [2] Ignore error and continue to install
>    [3] Give up on module
>    [4] Start shell
>    [5] Reload configuration
>    [6] Go to phase "wipe directory and start over"
>    [7] Go to phase "configure"
>    [8] Go to phase "clean"
>    [9] Go to phase "distclean"
> choice: ^X^CInterrupted
> teqdiligent at ubuntu:~$
> 
> /*-----------------------------------------------------------------------------------------------------------------------------------*/
> 
> I use following configuration.
> 
> $/home/teqdiligent/sources/xorg/git/mesa/mesa/autogen.sh --prefix 
> /home/teqdiligent/jhbuild/wega_build/usr/local --disable-Werror 
> --enable-autotools --enable-xa --disable-static --disable-dri2 
> --with-driver=dri --cache-file=~/sources/xorg/git/autoconf-cache 
> --with-log-dir=/var/log --with-mesa-source=~/sources/xorg/git/mesa 
> --enable-malloc0returnsnull --build=x86_64-unknown-linux-gnu 
> --host=arm-cortexa8-linux-gnueabihf 
> --target=arm-cortexa8-linux-gnueabihf 
> AR="/home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-ar" 
> RANLIB="/home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-ranlib" 
> STRIP="/home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-strip" 
> AS="/home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-as" 
> OBJDUMP="/home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-objdump" 
> NM="/home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-nm" 
> 
> 
> 
> please help me to sort out this problem.
> 
> Looking forward hearing from you.
> 
> Regards
> 
> Milav Soni
> 
> 
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 


More information about the mesa-dev mailing list