HWC buildpack available at https://support.broadcom.com/group/ecx/productdownloads?subfamily=HWC%20Buildpackhas 32 & 64 binaries swapped from version 3.1.40
The hwc.exe is supposed to be x64 bit binary but it is 32 bit.
the hwc_x86.exe. is supposed to be 32 bit but it is 64 bit binary.
This has been confirmed as a bug
This is a known bug that has been addressed in HWC Buildpack v3.1.57. The fix will be available to customers with the next Tanzu release (ETA has not yet been finalized).
For buildpack versions v3.1.40 through v3.1.56, users can temporarily work around the issue by setting the environment variable HBP_APP_ARCHITECTURE=x86. This will trigger the buildpack to provide the alternative executable. However, due to the bug, the behavior is inconsistent — while the env-var technically requests a 32-bit executable, the buildpack incorrectly supplies a 64-bit one instead.
Starting with v3.1.57, the buildpack will exhibit correct behavior: it will provide a 64-bit executable by default, and only provide the 32-bit executable if explicitly requested via HBP_APP_ARCHITECTURE=x86.