8000 CI: gcc version changed to 13 on BLAS CI runs · Issue #27548 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
CI: gcc version changed to 13 on BLAS CI runs #27548
Closed
@mattip

Description

@mattip

I see gcc has been bumped from gcc-11 to gcc-13. This version change is causing various build problems since some default warnings changed into errors:

compile errors
../numpy/_core/src/multiarray/alloc.c: In function ‘PyDataMem_RENEW’:
../numpy/_core/src/multiarray/alloc.c:279:9: error: pointer ‘ptr’ may be used after ‘realloc’ [-Werror=use-after-free]
  279 |         PyTraceMalloc_Untrack(NPY_TRACE_DOMAIN, (npy_uintp)ptr);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../numpy/_core/src/multiarray/alloc.c:277:14: note: call to ‘realloc’ here
  277 |     result = realloc(ptr, size);


../numpy/_core/src/umath/scalarmath.c.src: In function ‘byte_true_divide’:
../numpy/_core/src/umath/scalarmath.c.src:1389:23: error: ‘other_val_conv’ may be used uninitialized [-Werror=maybe-uninitialized]
 1389 |             other_val = other_val_conv;  /* Need a float value */
      |             ~~~~~~~~~~^~~~~~~~~~~~~~~~
../numpy/_core/src/umath/scalarmath.c.src:1357:14: note: ‘other_val_conv’ was declared here
 1357 |     @type@ other_val_conv;
      |              ^~~~~~~~~~~~~ 
../numpy/_core/src/umath/scalarmath.c.src: In function ‘short_true_divide’:
../numpy/_core/src/umath/scalarmath.c.src:1389:23: error: ‘other_val_conv’ may be used uninitialized [-Werror=maybe-uninitialized]
 1389 |             other_val = other_val_conv;  /* Need a float value */
      |             ~~~~~~~~~~^~~~~~~~~~~~~~~~
../numpy/_core/src/umath/scalarmath.c.src:1357:15: note: ‘other_val_conv’ was declared here
 1357 |     @type@ other_val_conv;
      |               ^~~~~~~~~~~~  
../numpy/_core/src/umath/scalarmath.c.src: In function ‘ushort_true_divide’:
../numpy/_core/src/umath/scalarmath.c.src:1389:23: error: ‘other_val_conv’ may be used uninitialized [-Werror=maybe-uninitialized]
 1389 |             other_val = other_val_conv;  /* Need a float value */
      |             ~~~~~~~~~~^~~~~~~~~~~~~~~~
../numpy/_core/src/umath/scalarmath.c.src:1357:16: note: ‘other_val_conv’ was declared here
 1357 |     @type@ other_val_conv;
      |                ^~~~~~~~~~~   
../numpy/_core/src/umath/scalarmath.c.src: In function ‘int_true_divide’:
../numpy/_core/src/umath/scalarmath.c.src:1389:23: error: ‘other_val_conv’ may be used uninitialized [-Werror=maybe-uninitialized]
 1389 |             other_val = other_val_conv;  /* Need a float value */
      |             ~~~~~~~~~~^~~~~~~~~~~~~~~~
../numpy/_core/src/umath/scalarmath.c.src:1357:13: note: ‘other_val_conv’ was declared here
 1357 |     @type@ other_val_conv;
      |             ^~~~~~~~~~~~~~
../numpy/_core/src/umath/scalarmath.c.src: In function ‘uint_true_divide’:
../numpy/_core/src/umath/scalarmath.c.src:1389:23: error: ‘other_val_conv’ may be used uninitialized [-Werror=maybe-uninitialized]
 1389 |             other_val = other_val_conv;  /* Need a float value */
      |             ~~~~~~~~~~^~~~~~~~~~~~~~~~
../numpy/_core/src/umath/scalarmath.c.src:1357:14: note: ‘other_val_conv’ was declared here
 1357 |     @type@ other_val_conv;
      |              ^~~~~~~~~~~~~ 
../numpy/_core/src/umath/scalarmath.c.src: In function ‘ulong_true_divide’:
../numpy/_core/src/umath/scalarmath.c.src:1389:23: error: ‘other_val_conv’ may be used uninitialized [-Werror=maybe-uninitialized]
 1389 |             other_val = other_val_conv;  /* Need a float value */
      |             ~~~~~~~~~~^~~~~~~~~~~~~~~~
../numpy/_core/src/umath/scalarmath.c.src:1357:15: note: ‘other_val_conv’ was declared here
 1357 |     @type@ other_val_conv;
      |               ^~~~~~~~~~~~  
../numpy/_core/src/umath/scalarmath.c.src: In function ‘ulonglong_true_divide’:
../numpy/_core/src/umath/scalarmath.c.src:1389:23: error: ‘other_val_conv’ may be used uninitialized [-Werror=maybe-uninitialized]
 1389 |             other_val = other_val_conv;  /* Need a float value */
      |             ~~~~~~~~~~^~~~~~~~~~~~~~~~
../numpy/_core/src/umath/scalarmath.c.src:1357:19: note: ‘other_val_conv’ was declared here
 1357 |     @type@ other_val_conv;
      |                   ^~~~~~~~      

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0