-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 11
-
Component/s: security-libs
-
None
-
master
-
aarch64
-
linux
Upgrading gcc13.2.0 to gcc14.2.0 reports below error for linux-aarch64 build
In function 'mp_zero',
inlined from 'mp_zero' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:316:8,
inlined from 'mp_set_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:353:3,
inlined from 'mp_cmp_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1735:26:
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:321:3: error: 'tmp.dp' may be used uninitialized [-Werror=maybe-uninitialized]
321 | s_mp_setz(DIGITS(mp), ALLOC(mp));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c: In function 'mp_cmp_int':
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1730:11: note: 'tmp' declared here
1730 | mp_int tmp;
| ^~~
In function 'mp_zero',
inlined from 'mp_zero' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:316:8,
inlined from 'mp_set_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:353:3,
inlined from 'mp_cmp_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1735:26:
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:321:3: error: 'tmp.alloc' may be used uninitialized [-Werror=maybe-uninitialized]
321 | s_mp_setz(DIGITS(mp), ALLOC(mp));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c: In function 'mp_cmp_int':
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1730:11: note: 'tmp' declared here
1730 | mp_int tmp;
| ^~~
In function 'mp_zero',
inlined from 'mp_zero' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:316:8,
inlined from 'mp_set_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:353:3,
inlined from 'mp_cmp_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1735:26:
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:321:3: error: 'tmp.alloc' may be used uninitialized [-Werror=maybe-uninitialized]
321 | s_mp_setz(DIGITS(mp), ALLOC(mp));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c: In function 'mp_cmp_int':
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1730:11: note: 'tmp' declared here
1730 | mp_int tmp;
| ^~~
Compiling 40 files for jdk.jcmd
Compiling 251 files for jdk.jdi
Running nasgen
Compiling 266 files for java.xml.crypto
Compiling 14 files for jdk.management.jfr
Compiling 30 files for jdk.security.auth
Compiling 16 files for jdk.security.jgss
Compiling 94 files for jdk.xml.dom
cc1: all warnings being treated as errors
Lib-jdk.crypto.ec.gmk:41: recipe for target '/tank/fmatte/repos/git/jdk11u-cpu/build/linux-aarch64/support/native/jdk.crypto.ec/libsunec/static/mpi.o' failed
make[3]: *** [/tank/fmatte/repos/git/jdk11u-cpu/build/linux-aarch64/support/native/jdk.crypto.ec/libsunec/static/mpi.o] Error 1
make/Main.gmk:229: recipe for target 'jdk.crypto.ec-static-libs' failed
make[2]: *** [jdk.crypto.ec-static-libs] Error 2
make[2]: *** Waiting for unfinished jobs....
Updating support/src.zip
ERROR: Build failed for target 'default (product-bundles test-bundles static-libs-bundles)' in configuration 'linux-aarch64' (exit code 2)
Stopping sjavac server
=== Output from failing command(s) repeated here ===
* For target support_native_jdk.crypto.ec_libsunec_static_mpi.o:
In function 'mp_zero',
inlined from 'mp_zero' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:316:8,
inlined from 'mp_set_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:353:3,
inlined from 'mp_cmp_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1735:26:
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:321:3: error: 'tmp.dp' may be used uninitialized [-Werror=maybe-uninitialized]
321 | s_mp_setz(DIGITS(mp), ALLOC(mp));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c: In function 'mp_cmp_int':
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1730:11: note: 'tmp' declared here
1730 | mp_int tmp;
| ^~~
In function 'mp_zero',
... (rest of output omitted)
* All command lines available in /tank/fmatte/repos/git/jdk11u-cpu/build/linux-aarch64/make-support/failure-logs.
=== End of repeated output ===
=== Make failed targets repeated here ===
Lib-jdk.crypto.ec.gmk:41: recipe for target '/tank/fmatte/repos/git/jdk11u-cpu/build/linux-aarch64/support/native/jdk.crypto.ec/libsunec/static/mpi.o' failed
make/Main.gmk:229: recipe for target 'jdk.crypto.ec-static-libs' failed
=== End of repeated output ===
Hint: Try searching the build log for the name of the first failed target.
In function 'mp_zero',
inlined from 'mp_zero' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:316:8,
inlined from 'mp_set_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:353:3,
inlined from 'mp_cmp_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1735:26:
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:321:3: error: 'tmp.dp' may be used uninitialized [-Werror=maybe-uninitialized]
321 | s_mp_setz(DIGITS(mp), ALLOC(mp));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c: In function 'mp_cmp_int':
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1730:11: note: 'tmp' declared here
1730 | mp_int tmp;
| ^~~
In function 'mp_zero',
inlined from 'mp_zero' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:316:8,
inlined from 'mp_set_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:353:3,
inlined from 'mp_cmp_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1735:26:
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:321:3: error: 'tmp.alloc' may be used uninitialized [-Werror=maybe-uninitialized]
321 | s_mp_setz(DIGITS(mp), ALLOC(mp));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c: In function 'mp_cmp_int':
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1730:11: note: 'tmp' declared here
1730 | mp_int tmp;
| ^~~
In function 'mp_zero',
inlined from 'mp_zero' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:316:8,
inlined from 'mp_set_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:353:3,
inlined from 'mp_cmp_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1735:26:
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:321:3: error: 'tmp.alloc' may be used uninitialized [-Werror=maybe-uninitialized]
321 | s_mp_setz(DIGITS(mp), ALLOC(mp));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c: In function 'mp_cmp_int':
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1730:11: note: 'tmp' declared here
1730 | mp_int tmp;
| ^~~
Compiling 40 files for jdk.jcmd
Compiling 251 files for jdk.jdi
Running nasgen
Compiling 266 files for java.xml.crypto
Compiling 14 files for jdk.management.jfr
Compiling 30 files for jdk.security.auth
Compiling 16 files for jdk.security.jgss
Compiling 94 files for jdk.xml.dom
cc1: all warnings being treated as errors
Lib-jdk.crypto.ec.gmk:41: recipe for target '/tank/fmatte/repos/git/jdk11u-cpu/build/linux-aarch64/support/native/jdk.crypto.ec/libsunec/static/mpi.o' failed
make[3]: *** [/tank/fmatte/repos/git/jdk11u-cpu/build/linux-aarch64/support/native/jdk.crypto.ec/libsunec/static/mpi.o] Error 1
make/Main.gmk:229: recipe for target 'jdk.crypto.ec-static-libs' failed
make[2]: *** [jdk.crypto.ec-static-libs] Error 2
make[2]: *** Waiting for unfinished jobs....
Updating support/src.zip
ERROR: Build failed for target 'default (product-bundles test-bundles static-libs-bundles)' in configuration 'linux-aarch64' (exit code 2)
Stopping sjavac server
=== Output from failing command(s) repeated here ===
* For target support_native_jdk.crypto.ec_libsunec_static_mpi.o:
In function 'mp_zero',
inlined from 'mp_zero' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:316:8,
inlined from 'mp_set_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:353:3,
inlined from 'mp_cmp_int' at /tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1735:26:
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:321:3: error: 'tmp.dp' may be used uninitialized [-Werror=maybe-uninitialized]
321 | s_mp_setz(DIGITS(mp), ALLOC(mp));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c: In function 'mp_cmp_int':
/tank/fmatte/repos/git/jdk11u-cpu/open/src/jdk.crypto.ec/share/native/libsunec/impl/mpi.c:1730:11: note: 'tmp' declared here
1730 | mp_int tmp;
| ^~~
In function 'mp_zero',
... (rest of output omitted)
* All command lines available in /tank/fmatte/repos/git/jdk11u-cpu/build/linux-aarch64/make-support/failure-logs.
=== End of repeated output ===
=== Make failed targets repeated here ===
Lib-jdk.crypto.ec.gmk:41: recipe for target '/tank/fmatte/repos/git/jdk11u-cpu/build/linux-aarch64/support/native/jdk.crypto.ec/libsunec/static/mpi.o' failed
make/Main.gmk:229: recipe for target 'jdk.crypto.ec-static-libs' failed
=== End of repeated output ===
Hint: Try searching the build log for the name of the first failed target.