Compiling mesa3d for Android Oreo

Sindre Stephansen <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <[email protected]>
Hello,

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.

However, when I tried to compile this I got this error:

------------------------------------------------------------------------

[  2% 1/41] target thumb C: libGLES_mesa <= 
external/mesa3d/src/egl/main/eglarray.c
FAILED: 
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglarray.o 

/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=\\\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\\" 
-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"
In file included from external/mesa3d/src/egl/main/eglarray.c:32:
In file included from external/mesa3d/src/egl/main/egllog.h:34:
In file included from external/mesa3d/src/egl/main/egltypedefs.h:34:
In file included from external/mesa3d/include/EGL/egl.h:39:
external/mesa3d/include/EGL/eglplatform.h:100:10: fatal error: 
'android/native_window.h' file not found
#include <android/native_window.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[  4% 2/41] target thumb C: libGLES_mesa <= 
external/mesa3d/src/egl/main/eglconfig.c
FAILED: 
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglconfig.o 

/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=\\\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\\" 
-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"
In file included from external/mesa3d/src/egl/main/eglconfig.c:42:
In file included from external/mesa3d/src/egl/main/eglconfig.h:39:
In file included from external/mesa3d/src/egl/main/egltypedefs.h:34:
In file included from external/mesa3d/include/EGL/egl.h:39:
external/mesa3d/include/EGL/eglplatform.h:100:10: fatal error: 
'android/native_window.h' file not found
#include <android/native_window.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[  7% 3/41] target thumb C: libGLES_mesa <= 
external/mesa3d/src/egl/main/eglcontext.c
FAILED: 
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglcontext.o 

/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=\\\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\\" 
-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"
In file included from external/mesa3d/src/egl/main/eglcontext.c:34:
In file included from external/mesa3d/src/egl/main/eglconfig.h:39:
In file included from external/mesa3d/src/egl/main/egltypedefs.h:34:
In file included from external/mesa3d/include/EGL/egl.h:39:
external/mesa3d/include/EGL/eglplatform.h:100:10: fatal error: 
'android/native_window.h' file not found
#include <android/native_window.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[  9% 4/41] target thumb C: libGLES_mesa <= 
external/mesa3d/src/egl/main/eglapi.c
FAILED: 
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglapi.o 

/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=\\\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\\" 
-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"
In file included from external/mesa3d/src/egl/main/eglapi.c:94:
In file included from external/mesa3d/src/egl/main/eglglobals.h:37:
In file included from external/mesa3d/src/egl/main/egltypedefs.h:34:
In file included from external/mesa3d/include/EGL/egl.h:39:
external/mesa3d/include/EGL/eglplatform.h:100:10: fatal error: 
'android/native_window.h' file not found
#include <android/native_window.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[ 12% 5/41] Ensuring Jack server is installed and started
Jack server already installed in "/home/sindre/.jack-server"
Server is already running
[ 14% 6/41] target thumb C++: libsurfaceflinger <= 
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp
FAILED: 
out/target/product/am437xevm/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayHardware/FramebufferSurface.o 

/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"
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp:180:18: 
error: no member named 'setClientTarget' in 'android::HWComposer'
             mHwc.setClientTarget(mDisplayType, outSlot, outFence, 
outBuffer, outDataspace);
             ~~~~ ^
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp:180:48: 
error: use of undeclared identifier 'outSlot'
             mHwc.setClientTarget(mDisplayType, outSlot, outFence, 
outBuffer, outDataspace);
                                                ^
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp:180:78: 
error: use of undeclared identifier 'outDataspace'
             mHwc.setClientTarget(mDisplayType, outSlot, outFence, 
outBuffer, outDataspace);
^
3 errors generated.

------------------------------------------------------------------------

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.

If you can help me fix these issues and get mesa3d compiled properly, it 
would be much appreciated.

-- 
   Sindre Stephansen
   [email protected]

_______________________________________________
mesa-users mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.