<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div>Hello,<br>
    </div>
    <div><br>
    </div>
    <div>I'm trying to port Android to a device without a hardware
      OpenGL implementation, so I'm trying to use Mesa3d as a software
      implementation instead. I downloaded the Android source code,
      version android-8.0.0_r21 and added configuration in my device
      files to use libGLES_mesa, with the swrast driver.<br>
    </div>
    <div><br>
    </div>
    <div>However, when I tried to compile this I got this error:<br>
      <br>
      <hr width="100%" size="2"><br>
      [  2% 1/41] target thumb C: libGLES_mesa <=
      external/mesa3d/src/egl/main/eglarray.c<br>
      FAILED:
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglarray.o
      <br>
      /bin/bash -c "PWD=/proc/self/cwd
      prebuilts/misc/linux-x86/ccache/ccache
      prebuilts/clang/host/linux-x86/clang-4053586/bin/clang  -I
      external/mesa3d/src/egl/main -I
      external/mesa3d/src/egl/drivers/dri2 -I external/mesa3d/src -I
      external/mesa3d/include -I external/mesa3d/src/egl -I
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates
      -I
out/target/product/am437xevm/gen/SHARED_LIBRARIES/libGLES_mesa_intermediates
      -I libnativehelper/include/nativehelper \$(cat
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/import_includes) 
      -I system/core/include -I system/media/audio/include -I
      hardware/libhardware/include -I
      hardware/libhardware_legacy/include -I hardware/ril/include -I
      libnativehelper/include -I frameworks/native/include -I
      frameworks/native/opengl/include -I frameworks/av/include -isystem
      out/target/product/am437xevm/obj/include -isystem
      bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem
      bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm
      -isystem bionic/libc/kernel/android/scsi -isystem
      bionic/libc/kernel/android/uapi -c  -fno-exceptions -Wno-multichar
      -ffunction-sections -fdata-sections -funwind-tables
      -fstack-protector-strong -Wa,--noexecstack -Werror=format-security
      -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes
      -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W
      -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG
      -fdebug-prefix-map=/proc/self/cwd=
      -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion
      -Wno-reserved-id-macro -Wno-format-pedantic
      -Wno-unused-command-line-argument -fcolor-diagnostics
      -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/=
      -Werror=return-type -Werror=non-virtual-dtor -Werror=address
      -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float
      -mfloat-abi=softfp -mfpu=neon -march=armv7-a -target
      arm-linux-androideabi
-Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin  
      -std=gnu99 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing  
      -D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_ANDROID
      -D_EGL_BUILT_IN_DRIVER_DRI2 -DHAVE_ANDROID_PLATFORM
      -Wno-unused-parameter -Wno-date-time -Wno-pointer-arith
      -Wno-missing-field-initializers -Wno-initializer-overrides
      -Wno-mismatched-tags -DPACKAGE_VERSION=\\\"17.0.4\\\"
-DPACKAGE_BUGREPORT=\\\<a class="moz-txt-link-rfc2396E" href="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\\">"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\\"</a>
      -DENABLE_SHADER_CACHE -D__STDC_LIMIT_MACROS
      -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS
      -DHAVE___BUILTIN_FFSLL -DHAVE_FUNC_ATTRIBUTE_FLATTEN
      -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_FORMAT
      -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_ALIAS
      -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_POPCOUNT
      -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_CLZ
      -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_UNREACHABLE
      -DHAVE_PTHREAD=1 -DHAVE_DLOPEN -fvisibility=hidden
      -Wno-sign-compare -fPIC
      -DDEFAULT_DRIVER_DIR=\\\"/system/lib/dri\\\" -D_USING_LIBCXX
      -std=c99  -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
      -Werror=address-of-temporary -Werror=return-type -MD -MF
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglarray.d
      -o
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglarray.o
      external/mesa3d/src/egl/main/eglarray.c"<br>
      In file included from external/mesa3d/src/egl/main/eglarray.c:32:<br>
      In file included from external/mesa3d/src/egl/main/egllog.h:34:<br>
      In file included from
      external/mesa3d/src/egl/main/egltypedefs.h:34:<br>
      In file included from external/mesa3d/include/EGL/egl.h:39:<br>
      external/mesa3d/include/EGL/eglplatform.h:100:10: fatal error:
      'android/native_window.h' file not found<br>
      #include <android/native_window.h><br>
               ^~~~~~~~~~~~~~~~~~~~~~~~~<br>
      1 error generated.<br>
      [  4% 2/41] target thumb C: libGLES_mesa <=
      external/mesa3d/src/egl/main/eglconfig.c<br>
      FAILED:
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglconfig.o
      <br>
      /bin/bash -c "PWD=/proc/self/cwd
      prebuilts/misc/linux-x86/ccache/ccache
      prebuilts/clang/host/linux-x86/clang-4053586/bin/clang  -I
      external/mesa3d/src/egl/main -I
      external/mesa3d/src/egl/drivers/dri2 -I external/mesa3d/src -I
      external/mesa3d/include -I external/mesa3d/src/egl -I
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates
      -I
out/target/product/am437xevm/gen/SHARED_LIBRARIES/libGLES_mesa_intermediates
      -I libnativehelper/include/nativehelper \$(cat
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/import_includes) 
      -I system/core/include -I system/media/audio/include -I
      hardware/libhardware/include -I
      hardware/libhardware_legacy/include -I hardware/ril/include -I
      libnativehelper/include -I frameworks/native/include -I
      frameworks/native/opengl/include -I frameworks/av/include -isystem
      out/target/product/am437xevm/obj/include -isystem
      bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem
      bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm
      -isystem bionic/libc/kernel/android/scsi -isystem
      bionic/libc/kernel/android/uapi -c  -fno-exceptions -Wno-multichar
      -ffunction-sections -fdata-sections -funwind-tables
      -fstack-protector-strong -Wa,--noexecstack -Werror=format-security
      -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes
      -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W
      -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG
      -fdebug-prefix-map=/proc/self/cwd=
      -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion
      -Wno-reserved-id-macro -Wno-format-pedantic
      -Wno-unused-command-line-argument -fcolor-diagnostics
      -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/=
      -Werror=return-type -Werror=non-virtual-dtor -Werror=address
      -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float
      -mfloat-abi=softfp -mfpu=neon -march=armv7-a -target
      arm-linux-androideabi
-Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin  
      -std=gnu99 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing  
      -D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_ANDROID
      -D_EGL_BUILT_IN_DRIVER_DRI2 -DHAVE_ANDROID_PLATFORM
      -Wno-unused-parameter -Wno-date-time -Wno-pointer-arith
      -Wno-missing-field-initializers -Wno-initializer-overrides
      -Wno-mismatched-tags -DPACKAGE_VERSION=\\\"17.0.4\\\"
-DPACKAGE_BUGREPORT=\\\<a class="moz-txt-link-rfc2396E" href="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\\">"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\\"</a>
      -DENABLE_SHADER_CACHE -D__STDC_LIMIT_MACROS
      -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS
      -DHAVE___BUILTIN_FFSLL -DHAVE_FUNC_ATTRIBUTE_FLATTEN
      -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_FORMAT
      -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_ALIAS
      -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_POPCOUNT
      -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_CLZ
      -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_UNREACHABLE
      -DHAVE_PTHREAD=1 -DHAVE_DLOPEN -fvisibility=hidden
      -Wno-sign-compare -fPIC
      -DDEFAULT_DRIVER_DIR=\\\"/system/lib/dri\\\" -D_USING_LIBCXX
      -std=c99  -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
      -Werror=address-of-temporary -Werror=return-type -MD -MF
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglconfig.d
      -o
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglconfig.o
      external/mesa3d/src/egl/main/eglconfig.c"<br>
      In file included from external/mesa3d/src/egl/main/eglconfig.c:42:<br>
      In file included from external/mesa3d/src/egl/main/eglconfig.h:39:<br>
      In file included from
      external/mesa3d/src/egl/main/egltypedefs.h:34:<br>
      In file included from external/mesa3d/include/EGL/egl.h:39:<br>
      external/mesa3d/include/EGL/eglplatform.h:100:10: fatal error:
      'android/native_window.h' file not found<br>
      #include <android/native_window.h><br>
               ^~~~~~~~~~~~~~~~~~~~~~~~~<br>
      1 error generated.<br>
      [  7% 3/41] target thumb C: libGLES_mesa <=
      external/mesa3d/src/egl/main/eglcontext.c<br>
      FAILED:
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglcontext.o
      <br>
      /bin/bash -c "PWD=/proc/self/cwd
      prebuilts/misc/linux-x86/ccache/ccache
      prebuilts/clang/host/linux-x86/clang-4053586/bin/clang  -I
      external/mesa3d/src/egl/main -I
      external/mesa3d/src/egl/drivers/dri2 -I external/mesa3d/src -I
      external/mesa3d/include -I external/mesa3d/src/egl -I
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates
      -I
out/target/product/am437xevm/gen/SHARED_LIBRARIES/libGLES_mesa_intermediates
      -I libnativehelper/include/nativehelper \$(cat
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/import_includes) 
      -I system/core/include -I system/media/audio/include -I
      hardware/libhardware/include -I
      hardware/libhardware_legacy/include -I hardware/ril/include -I
      libnativehelper/include -I frameworks/native/include -I
      frameworks/native/opengl/include -I frameworks/av/include -isystem
      out/target/product/am437xevm/obj/include -isystem
      bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem
      bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm
      -isystem bionic/libc/kernel/android/scsi -isystem
      bionic/libc/kernel/android/uapi -c  -fno-exceptions -Wno-multichar
      -ffunction-sections -fdata-sections -funwind-tables
      -fstack-protector-strong -Wa,--noexecstack -Werror=format-security
      -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes
      -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W
      -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG
      -fdebug-prefix-map=/proc/self/cwd=
      -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion
      -Wno-reserved-id-macro -Wno-format-pedantic
      -Wno-unused-command-line-argument -fcolor-diagnostics
      -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/=
      -Werror=return-type -Werror=non-virtual-dtor -Werror=address
      -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float
      -mfloat-abi=softfp -mfpu=neon -march=armv7-a -target
      arm-linux-androideabi
-Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin  
      -std=gnu99 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing  
      -D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_ANDROID
      -D_EGL_BUILT_IN_DRIVER_DRI2 -DHAVE_ANDROID_PLATFORM
      -Wno-unused-parameter -Wno-date-time -Wno-pointer-arith
      -Wno-missing-field-initializers -Wno-initializer-overrides
      -Wno-mismatched-tags -DPACKAGE_VERSION=\\\"17.0.4\\\"
-DPACKAGE_BUGREPORT=\\\<a class="moz-txt-link-rfc2396E" href="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\\">"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\\"</a>
      -DENABLE_SHADER_CACHE -D__STDC_LIMIT_MACROS
      -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS
      -DHAVE___BUILTIN_FFSLL -DHAVE_FUNC_ATTRIBUTE_FLATTEN
      -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_FORMAT
      -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_ALIAS
      -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_POPCOUNT
      -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_CLZ
      -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_UNREACHABLE
      -DHAVE_PTHREAD=1 -DHAVE_DLOPEN -fvisibility=hidden
      -Wno-sign-compare -fPIC
      -DDEFAULT_DRIVER_DIR=\\\"/system/lib/dri\\\" -D_USING_LIBCXX
      -std=c99  -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
      -Werror=address-of-temporary -Werror=return-type -MD -MF
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglcontext.d
      -o
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglcontext.o
      external/mesa3d/src/egl/main/eglcontext.c"<br>
      In file included from
      external/mesa3d/src/egl/main/eglcontext.c:34:<br>
      In file included from external/mesa3d/src/egl/main/eglconfig.h:39:<br>
      In file included from
      external/mesa3d/src/egl/main/egltypedefs.h:34:<br>
      In file included from external/mesa3d/include/EGL/egl.h:39:<br>
      external/mesa3d/include/EGL/eglplatform.h:100:10: fatal error:
      'android/native_window.h' file not found<br>
      #include <android/native_window.h><br>
               ^~~~~~~~~~~~~~~~~~~~~~~~~<br>
      1 error generated.<br>
      [  9% 4/41] target thumb C: libGLES_mesa <=
      external/mesa3d/src/egl/main/eglapi.c<br>
      FAILED:
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglapi.o
      <br>
      /bin/bash -c "PWD=/proc/self/cwd
      prebuilts/misc/linux-x86/ccache/ccache
      prebuilts/clang/host/linux-x86/clang-4053586/bin/clang  -I
      external/mesa3d/src/egl/main -I
      external/mesa3d/src/egl/drivers/dri2 -I external/mesa3d/src -I
      external/mesa3d/include -I external/mesa3d/src/egl -I
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates
      -I
out/target/product/am437xevm/gen/SHARED_LIBRARIES/libGLES_mesa_intermediates
      -I libnativehelper/include/nativehelper \$(cat
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/import_includes) 
      -I system/core/include -I system/media/audio/include -I
      hardware/libhardware/include -I
      hardware/libhardware_legacy/include -I hardware/ril/include -I
      libnativehelper/include -I frameworks/native/include -I
      frameworks/native/opengl/include -I frameworks/av/include -isystem
      out/target/product/am437xevm/obj/include -isystem
      bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem
      bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm
      -isystem bionic/libc/kernel/android/scsi -isystem
      bionic/libc/kernel/android/uapi -c  -fno-exceptions -Wno-multichar
      -ffunction-sections -fdata-sections -funwind-tables
      -fstack-protector-strong -Wa,--noexecstack -Werror=format-security
      -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes
      -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W
      -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG
      -fdebug-prefix-map=/proc/self/cwd=
      -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion
      -Wno-reserved-id-macro -Wno-format-pedantic
      -Wno-unused-command-line-argument -fcolor-diagnostics
      -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/=
      -Werror=return-type -Werror=non-virtual-dtor -Werror=address
      -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float
      -mfloat-abi=softfp -mfpu=neon -march=armv7-a -target
      arm-linux-androideabi
-Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin  
      -std=gnu99 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing  
      -D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_ANDROID
      -D_EGL_BUILT_IN_DRIVER_DRI2 -DHAVE_ANDROID_PLATFORM
      -Wno-unused-parameter -Wno-date-time -Wno-pointer-arith
      -Wno-missing-field-initializers -Wno-initializer-overrides
      -Wno-mismatched-tags -DPACKAGE_VERSION=\\\"17.0.4\\\"
-DPACKAGE_BUGREPORT=\\\<a class="moz-txt-link-rfc2396E" href="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\\">"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\\"</a>
      -DENABLE_SHADER_CACHE -D__STDC_LIMIT_MACROS
      -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS
      -DHAVE___BUILTIN_FFSLL -DHAVE_FUNC_ATTRIBUTE_FLATTEN
      -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_FORMAT
      -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_ALIAS
      -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_POPCOUNT
      -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_CLZ
      -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_UNREACHABLE
      -DHAVE_PTHREAD=1 -DHAVE_DLOPEN -fvisibility=hidden
      -Wno-sign-compare -fPIC
      -DDEFAULT_DRIVER_DIR=\\\"/system/lib/dri\\\" -D_USING_LIBCXX
      -std=c99  -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
      -Werror=address-of-temporary -Werror=return-type -MD -MF
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglapi.d
      -o
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglapi.o
      external/mesa3d/src/egl/main/eglapi.c"<br>
      In file included from external/mesa3d/src/egl/main/eglapi.c:94:<br>
      In file included from
      external/mesa3d/src/egl/main/eglglobals.h:37:<br>
      In file included from
      external/mesa3d/src/egl/main/egltypedefs.h:34:<br>
      In file included from external/mesa3d/include/EGL/egl.h:39:<br>
      external/mesa3d/include/EGL/eglplatform.h:100:10: fatal error:
      'android/native_window.h' file not found<br>
      #include <android/native_window.h><br>
               ^~~~~~~~~~~~~~~~~~~~~~~~~<br>
      1 error generated.<br>
      [ 12% 5/41] Ensuring Jack server is installed and started<br>
      Jack server already installed in "/home/sindre/.jack-server"<br>
      Server is already running<br>
      [ 14% 6/41] target thumb C++: libsurfaceflinger <=
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp<br>
      FAILED:
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayHardware/FramebufferSurface.o
      <br>
      /bin/bash -c "PWD=/proc/self/cwd
      prebuilts/misc/linux-x86/ccache/ccache
      prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++        -I
      frameworks/native/vulkan/include -I
      external/vulkan-validation-layers/libs/vkjson -I
      system/libhwbinder/fast_msgq/include -I
      frameworks/native/services/surfaceflinger -I
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates
      -I
out/target/product/am437xevm/gen/SHARED_LIBRARIES/libsurfaceflinger_intermediates
      -I libnativehelper/include/nativehelper \$(cat
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/import_includes) 
      -I system/core/include -I system/media/audio/include -I
      hardware/libhardware/include -I
      hardware/libhardware_legacy/include -I hardware/ril/include -I
      libnativehelper/include -I frameworks/native/include -I
      frameworks/native/opengl/include -I frameworks/av/include -isystem
      out/target/product/am437xevm/obj/include -isystem
      bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem
      bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm
      -isystem bionic/libc/kernel/android/scsi -isystem
      bionic/libc/kernel/android/uapi -c  -fno-exceptions -Wno-multichar
      -ffunction-sections -fdata-sections -funwind-tables
      -fstack-protector-strong -Wa,--noexecstack -Werror=format-security
      -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes
      -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W
      -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG
      -fdebug-prefix-map=/proc/self/cwd=
      -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion
      -Wno-reserved-id-macro -Wno-format-pedantic
      -Wno-unused-command-line-argument -fcolor-diagnostics
      -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/=
      -Werror=return-type -Werror=non-virtual-dtor -Werror=address
      -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float
      -mfloat-abi=softfp -mfpu=neon -march=armv7-a -target
      arm-linux-androideabi
-Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin 
      -Wsign-promo -Wno-inconsistent-missing-override
      -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS
      -Wno-thread-safety-negative -fvisibility-inlines-hidden
      -std=gnu++14 -mthumb -Os -fomit-frame-pointer
      -fno-strict-aliasing  -fno-rtti -DLOG_TAG=\\\"SurfaceFlinger\\\"
      -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES -fvisibility=hidden
      -Werror=format -Wall -Werror -Wunused -Wunreachable-code
      -std=c++1z -fPIC -D_USING_LIBCXX -DANDROID_STRICT  
      -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
      -Werror=address-of-temporary -Werror=return-type   -MD -MF
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayHardware/FramebufferSurface.d
      -o
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayHardware/FramebufferSurface.o
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp"<br>
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp:180:18:
      error: no member named 'setClientTarget' in 'android::HWComposer'<br>
                  mHwc.setClientTarget(mDisplayType, outSlot, outFence,
      outBuffer, outDataspace);<br>
                  ~~~~ ^<br>
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp:180:48:
      error: use of undeclared identifier 'outSlot'<br>
                  mHwc.setClientTarget(mDisplayType, outSlot, outFence,
      outBuffer, outDataspace);<br>
                                                     ^<br>
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp:180:78:
      error: use of undeclared identifier 'outDataspace'<br>
                  mHwc.setClientTarget(mDisplayType, outSlot, outFence,
      outBuffer, outDataspace);<br>
                                                                            
      ^<br>
      3 errors generated.<br>
      <br>
      <hr width="100%" size="2"><br>
      I presume that the clang compiler doesn't find the header files
      because they aren't in the include path. This could probably be
      fixed by adding an -I (upper case i) flag to the compiler, but I
      can't figure out where in the makefiles this is done.<br>
    </div>
    <div><br>
    </div>
    <div>If you can help me fix these issues and get mesa3d compiled
      properly, it would be much appreciated.</div>
    <div><br>
    </div>
    <pre class="moz-signature" cols="72">-- 
  Sindre Stephansen
  <a class="moz-txt-link-abbreviated" href="mailto:sindre@sindrestephansen.com">sindre@sindrestephansen.com</a></pre>
  </body>
</html>