JDK-8304321 : AIX build fails after JDK-8301998 Update HarfBuzz to 7.0.1
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 21
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: aix
  • CPU: generic
  • Submitted: 2023-03-16
  • Updated: 2023-03-16
  • Resolved: 2023-03-16
Related Reports
Duplicate :  
Relates :  
Description
We see a lot of errors

/jdk-dev/src/java.desktop/share/native/libharfbuzz/hb-algs.hh:882:10: error: 1540-2993 The builtin "__builtin_mul_overflow" is not supported.

Seems xlC sets the clang related macros, so we run into  __builtin_mul_overflow , we might need to avoid this and add special handling for AIX 

878  #if (defined(__GNUC__) && (__GNUC__ >= 4)) || (defined(__clang__) && (__clang_major__ >= 8))
879    unsigned stack_result;
880    if (!result)
881      result = &stack_result;
882    return __builtin_mul_overflow (count, size, result);
883  #endif
Comments
Hi [~mdoerr] we use this version of xlC16: configure: Using xlc C compiler version 16.1.0 [IBM XL C/C++ for AIX, V16.1.0 (5725-C72, 5765-J12) Version: 16.01.0000.0013]
16-03-2023

Which compiler version was used? Is it related to https://www.ibm.com/support/pages/apar/IJ14858 ?
16-03-2023