[Mesa-dev] [Bug 110939] src/egl/main/egldisplay.c: In function '_eglGetNativePlatform': error: '_EGL_PLATFORM_' undeclared
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jun 18 09:04:50 UTC 2019
https://bugs.freedesktop.org/show_bug.cgi?id=110939
Bug ID: 110939
Summary: src/egl/main/egldisplay.c: In function
'_eglGetNativePlatform': error: '_EGL_PLATFORM_'
undeclared
Product: Mesa
Version: 19.0
Hardware: ARM
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: EGL
Assignee: mesa-dev at lists.freedesktop.org
Reporter: eb at emlix.com
QA Contact: mesa-dev at lists.freedesktop.org
When building with meson this fails:
arm-unknown-linux-gnueabi-gcc -Isrc/egl/src at egl@@EGL at sha -Isrc/egl
-I../mesa-19.0.6/src/egl -Iinclude -I../mesa-19.0.6/include
-I../mesa-19.0.6/include/drm-uapi -Isrc -I../mesa-19.0.6/src
-I../mesa-19.0.6/src/egl/main -Isrc/loader -I../mesa-19.0.6/src/loader
-Isrc/gbm -I../mesa-19.0.6/src/gbm -I../mesa-19.0.6/src/gbm/main
-I../mesa-19.0.6/src/gbm/backends/dri -I../mesa-19.0.6/src/egl/../gbm/main
-I/opt/emlix/test/sysroot/usr/include/libdrm -fdiagnostics-color=always -pipe
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -O2 -g
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
'-DPACKAGE_VERSION="19.0.6"'
'-DPACKAGE_BUGREPORT="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa"'
-DGLX_USE_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0
-DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING
-DGLX_USE_DRM -DHAVE_DRM_PLATFORM -DENABLE_SHADER_CACHE
-DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ
-DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT
-DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT
-DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE
-DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN
-DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE
-DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT
-DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT
-DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL
-DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_FUNC_ATTRIBUTE_ALIAS
-DHAVE_FUNC_ATTRIBUTE_NORETURN -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS
-DMAJOR_IN_SYSMACROS -DHAVE_SYS_SYSCTL_H -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H
-DHAVE_DLFCN_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_POSIX_MEMALIGN
-DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_STRTOD_L -DHAVE_DLADDR
-DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY
-DHAVE_LIBDRM -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -fno-math-errno -fno-trapping-math
-Wno-missing-field-initializers -Wno-format-truncation -fPIC -pthread
-fvisibility=hidden -DHAVE_MINCORE -D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_ -MD
-MQ 'src/egl/src at egl@@EGL at sha/main_egldisplay.c.o' -MF
'src/egl/src at egl@@EGL at sha/main_egldisplay.c.o.d' -o
'src/egl/src at egl@@EGL at sha/main_egldisplay.c.o' -c
../mesa-19.0.6/src/egl/main/egldisplay.c
+../mesa-19.0.6/src/egl/main/egldisplay.c: In function '_eglGetNativePlatform':
+<command-line>: error: '_EGL_PLATFORM_' undeclared (first use in this
function); did you mean '_EGL_PLATFORM_DRM'?
+<command-line>: note: in definition of macro '_EGL_NATIVE_PLATFORM'
+<command-line>: note: each undeclared identifier is reported only once for
each function it appears in
+<command-line>: note: in definition of macro '_EGL_NATIVE_PLATFORM'
And indeed, the define is different when building with autotools:
libtool: compile: arm-unknown-linux-gnueabi-gcc -DPACKAGE_NAME=\"Mesa\"
-DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"19.0.6\"
"-DPACKAGE_STRING=\"Mesa 19.0.6\""
"-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\""
-DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"19.0.6\"
-D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE___BUILTIN_BSWAP32=1
-DHAVE___BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1
-DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1
-DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1
-DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1
-DHAVE_FUNC_ATTRIBUTE_CONST=1 -DHAVE_FUNC_ATTRIBUTE_FLATTEN=1
-DHAVE_FUNC_ATTRIBUTE_FORMAT=1 -DHAVE_FUNC_ATTRIBUTE_MALLOC=1
-DHAVE_FUNC_ATTRIBUTE_PACKED=1 -DHAVE_FUNC_ATTRIBUTE_PURE=1
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1
-DHAVE_FUNC_ATTRIBUTE_VISIBILITY=1 -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1
-DHAVE_FUNC_ATTRIBUTE_WEAK=1 -DHAVE_FUNC_ATTRIBUTE_ALIAS=1
-DHAVE_FUNC_ATTRIBUTE_NORETURN=1 -DMAJOR_IN_SYSMACROS=1 -DHAVE_ENDIAN_H=1
-DHAVE_DLADDR=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD_PRIO_INHERIT=1
-DHAVE_PTHREAD=1 -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -I.
-I../../../xorg.Mesa3D/src/egl -I../../../xorg.Mesa3D/include
-I../../../xorg.Mesa3D/include/drm-uapi -I../../../xorg.Mesa3D/src/mapi
-I../../../xorg.Mesa3D/src/egl/main -I../../../xorg.Mesa3D/src/gbm/main
-I../../../xorg.Mesa3D/src -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG
-DUSE_ARM_ASM -DHAVE_SYS_SYSCTL_H -DHAVE_DLFCN_H -DHAVE_STRTOF -DHAVE_MKOSTEMP
-DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_STRTOD_L -DHAVE_DL_ITERATE_PHDR
-DHAVE_POSIX_MEMALIGN -DHAVE_ZLIB -DHAVE_PTHREAD_SETAFFINITY
-DHAVE_LINUX_FUTEX_H -DHAVE_LIBDRM -DGLX_USE_DRM -DGLX_INDIRECT_RENDERING
-DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_DRM_PLATFORM -DHAVE_X11_PLATFORM
-DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DENABLE_SHADER_CACHE -DHAVE_MINCORE
-fvisibility=hidden -I/opt/emlix/test/sysroot/usr/include/libdrm
-D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_DRM -I../../../xorg.Mesa3D/src/loader
-I../../src/egl/drivers/dri2 -I../../../xorg.Mesa3D/src/egl/drivers/dri2
-I../../../xorg.Mesa3D/src/gbm/backends/dri -I../../src/egl/wayland/wayland-drm
-I../../../xorg.Mesa3D/src/egl/wayland/wayland-drm -O2 -g -march=armv7-a
-mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -pipe
-Wl,--no-copy-dt-needed-entries,--as-needed -Wl,--build-id -Wdate-time -std=c99
-MT main/egldisplay.lo -MD -MP -MF main/.deps/egldisplay.Tpo -c
../../../xorg.Mesa3D/src/egl/main/egldisplay.c -fPIC -DPIC -o
main/.libs/egldisplay.o
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190618/e1cbe46b/attachment-0001.html>
More information about the mesa-dev
mailing list