<div dir="ltr">Hi Dave,<div><br></div><div>while checking mesa-dev with android build, </div><div>I'm porting the necessary changes to to have amd/addrlib in Android build,</div><div><br></div><div>but I have also encountered a building error related to commit <a href="https://cgit.freedesktop.org/mesa/mesa/commit/?id=1add3562e33f0234da50e54dda8cfa6dac613125">https://cgit.freedesktop.org/mesa/mesa/commit/?id=1add3562e33f0234da50e54dda8cfa6dac613125</a></div><div><br></div><div>In the attachment the full build log, under my signatue short error log.<br></div><div><br></div><div>If I revert 1add3562e33f0234da50e54dda8cfa6dac613125</div><div>and after that I modify src/amd/common/amdgpu_id.h</div><div>in this way...</div><div><br></div><div>-#include "util/u_endian.h"</div><div>+#include "pipe/p_config.h"<br></div><div><br></div><div>...I can build mesa and complete Android 7.0, build,</div><div>so there may be some part missing in the new util/u_endian.h</div><div>header compared to the old one.</div><div><br></div><div>Would you like to check when you have time, please?</div><div><br></div><div>Pardon me if I may have wrote something wrong, beacuse I'm more involved android  build system than in coding.</div><div><br></div><div>After your feedback, I will submit the final version of patch to fix android build for review,</div><div>while in the following brach I have the workaround I've mentioned:</div><div><a href="https://github.com/maurossi/mesa/commits/12.1.0devel_nougat-x86_10-sep-2016">https://github.com/maurossi/mesa/commits/12.1.0devel_nougat-x86_10-sep-2016</a><br></div><div><br></div><div>Mauro Rossi</div><div><a href="mailto:issor.oruam@gmail.com">issor.oruam@gmail.com</a></div><div><br></div><div><br></div><div><div>In file included from external/mesa/src/amd/addrlib/r800/ciaddrlib.cpp:36:</div><div>external/mesa/src/amd/addrlib/inc/chip/r800/si_gb_reg.h:36:2: error: "BIGENDIAN_CPU or LITTLEENDIAN_CPU must be defined"</div><div>#error "BIGENDIAN_CPU or LITTLEENDIAN_CPU must be defined"</div><div> ^</div><div>external/mesa/src/amd/addrlib/inc/chip/r800/si_gb_reg.h:91:6: error: unknown type name 'GB_ADDR_CONFIG_T'</div><div>     GB_ADDR_CONFIG_T f;</div><div>     ^</div><div>external/mesa/src/amd/addrlib/inc/chip/r800/si_gb_reg.h:146:6: error: unknown type name 'GB_TILE_MODE_T'</div><div>     GB_TILE_MODE_T f;</div><div>     ^</div><div>external/mesa/src/amd/addrlib/inc/chip/r800/si_gb_reg.h:151:6: error: unknown type name 'GB_MACROTILE_MODE_T'</div><div>     GB_MACROTILE_MODE_T f;</div><div>     ^</div><div>4 errors generated.</div><div>[ 20% 391/1939] target  C++: libmesa_amdgpu_addrlib <= external/mesa/src/amd/addrlib/r800/egbaddrlib.cpp</div><div>ninja: build stopped: subcommand failed.</div><div>build/core/<a href="http://ninja.mk:148">ninja.mk:148</a>: recipe for target 'ninja_wrapper' failed</div><div>make: *** [ninja_wrapper] Error 1</div><div><br></div><div>#### make failed to build some targets (01:33 (mm:ss)) ####</div></div><div><br></div></div>