<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [bisected] Android build test fails with: utils.c: error: use of undeclared identifier 'PACKAGE_VERSION'"
href="https://bugs.freedesktop.org/show_bug.cgi?id=109944">109944</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[bisected] Android build test fails with: utils.c: error: use of undeclared identifier 'PACKAGE_VERSION'
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Keywords</th>
<td>bisected
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Other
</td>
</tr>
<tr>
<th>Assignee</th>
<td>fdo-bugs@engestrom.ch
</td>
</tr>
<tr>
<th>Reporter</th>
<td>clayton.a.craft@intel.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>[ 39% 1228/3101] target C: libmesa_dri_common_32 <=
vendor/intel/external/project-celadon/mesa/src/mesa/drivers/dri/common/utils.c
FAILED:
out/target/product/cel_apl/obj_x86/STATIC_LIBRARIES/libmesa_dri_common_intermediates/utils.o
/bin/bash -c "PWD=/proc/self/cwd
prebuilts/clang/host/linux-x86/clang-4691093/bin/clang -I
vendor/intel/external/project-celadon/mesa/include -I
vendor/intel/external/project-celadon/mesa/src/egl/drivers/dri -I
vendor/intel/external/project-celadon/mesa/src/egl/main -I
vendor/intel/external/project-celadon/mesa/src/mapi -I
vendor/intel/external/project-celadon/mesa/src/mesa -I
vendor/intel/external/project-celadon/mesa/src/mesa/drivers/dri/common -I
vendor/intel/external/project-celadon/mesa/src/util -I
vendor/intel/external/project-celadon/mesa/src/gallium/include -I
vendor/intel/external/project-celadon/mesa/src/gallium/auxiliary -I
external/expat/lib -I vendor/intel/external/project-celadon/mesa/src -I
vendor/intel/external/project-celadon/mesa/include -I
vendor/intel/external/project-celadon/mesa/src/mesa/drivers/dri/common -I
out/target/product/cel_apl/obj_x86/STATIC_LIBRARIES/libmesa_dri_common_intermediates
-I
out/target/product/cel_apl/gen/STATIC_LIBRARIES/libmesa_dri_common_intermediates
\$(cat
out/target/product/cel_apl/obj_x86/STATIC_LIBRARIES/libmesa_dri_common_intermediates/import_includes)
-isystem out/target/product/cel_apl/obj/include -c -msse3 -mstackrealign
-DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith
-no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g
-fno-strict-aliasing -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
-Wno-zero-as-null-pointer-constant -fdebug-prefix-map=\$PWD/=
-ffunction-sections -fdata-sections -fno-short-enums -funwind-tables
-fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2
-Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor
-Werror=address -Werror=sequence-point -Werror=date-time
-Werror=format-security -nostdlibinc -m32 -march=prescott -target
i686-linux-android
-Bprebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin
-std=gnu99 -Wno-error -Werror=incompatible-pointer-types
-DANDROID_API_LEVEL=28 -DENABLE_SHADER_CACHE -D__STDC_CONSTANT_MACROS
-D__STDC_LIMIT_MACROS -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS
-DHAVE___BUILTIN_FFSLL -DHAVE_DLFCN_H -DHAVE_FUNC_ATTRIBUTE_FLATTEN
-DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_FORMAT
-DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_ALIAS
-DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE___BUILTIN_CTZ
-DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_CLZ
-DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE_PTHREAD=1
-DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H
-DHAVE_ZLIB -DMAJOR_IN_SYSMACROS -DVK_USE_PLATFORM_ANDROID_KHR
-fvisibility=hidden -fno-math-errno -fno-trapping-math -Wno-sign-compare
-Wno-self-assign -Wno-constant-logical-operand -Wno-format
-Wno-incompatible-pointer-types -Wno-enum-conversion -DHAVE_LIBDRM
-D__ANDROID_API__=28 -D__ANDROID_VNDK__ -fPIC
-DDEFAULT_DRIVER_DIR=\\\"/vendor/lib/dri\\\" -D_USING_LIBCXX -DANDROID_STRICT
-std=c99 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
-Werror=address-of-temporary -Werror=return-type
-Wno-tautological-constant-compare -Wno-null-pointer-arithmetic
-Wno-enum-compare -Wno-enum-compare-switch -MD -MF
out/target/product/cel_apl/obj_x86/STATIC_LIBRARIES/libmesa_dri_common_intermediates/utils.d
-o
out/target/product/cel_apl/obj_x86/STATIC_LIBRARIES/libmesa_dri_common_intermediates/utils.o
vendor/intel/external/project-celadon/mesa/src/mesa/drivers/dri/common/utils.c"
vendor/intel/external/project-celadon/mesa/src/mesa/drivers/dri/common/utils.c:534:38:
error: use of undeclared identifier 'PACKAGE_VERSION'
Bisected to this commit:
commit e1d81decf7a093867f051786a5d7f6ce4d827ff1
Author: Eric Engestrom <<a href="mailto:eric.engestrom@intel.com">eric.engestrom@intel.com</a>>
Date: Tue Nov 20 12:32:18 2018 +0000
build: make passing an incorrect pointer type a hard error
More or less any of this issue pointed out by the compiler is
a coding error. Make sure we flag it and bail loudly.
v2: - apply the change to autotools and scons as well (Emil)
- C++ doesn't need this, it's already an error and the flag
doesn't exist (Gert)
v3: - drop scons, flags are not checked so until someone adds that
functionality we can't have this.
Signed-off-by: Eric Engestrom <<a href="mailto:eric.engestrom@intel.com">eric.engestrom@intel.com</a>>
Reviewed-by: Dylan Baker <<a href="mailto:dylan@pnwbakers.com">dylan@pnwbakers.com</a>> # v1
Reviewed-by: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>> # v1
[Emil: apply the same change to autotools and scons]
Signed-off-by: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>>
Reviewed-by: Eric Anholt <<a href="mailto:eric@anholt.net">eric@anholt.net</a>></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>