Closed
Description
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
Labels
No labels