"krb" fails to build, suspect GCC bug
I got this weird build failure from the "krb" package:
| make[3]: Entering directory '/TOPDIR/build/tmp/work/mips32el-oe-linux/krb5/1.13.2-r0/krb5-1.13.2/src/lib/krb5/ccache'
| mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/TOPDIR/build/tmp/sysroots/formuler1 -fPIC -DSHARED -DHAVE_CONFIG_H -I../../../include -I../../../include -I./ccapi -I. -I.
-DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -Os -pipe -g
-feliminate-unused-debug-types -DDESTRUCTOR_ATTR_WORKS=1 -I/TOPDIR/build/tmp/sysroots/formuler1/usr/include/et -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Werror=uninitialized -Werror=pointer-arith -Werror=declaration-after-statement -Werror-implicit-function-declaration -pthread -c cc_file.c -o cc_file.so.o && mv -f cc_file.so.o cc_file.so
| cc_file.c: In function 'fcc_next_cred': | cc_file.c:368:9: error: 'maxsize' may be used uninitialized in this function [-Werror=maybe-uninitialized] | ret = load_data(context, id, maxsize, buf); | ^ | cc_file.c:1091:12: note: 'maxsize' was declared here | size_t maxsize; | ^ | cc1: some warnings being treated as errors
Looking at the source, this doesn't make any sense at all. The declaration of the variable isn't even in the same method body. And the line it complains about is about the fifth time it passes that variable to another method.
And working around it by initializing maxsize=0 just makes the compiler choke on a similar situation elsewhere:
| packet.c:50:67: error: 'id' may be used uninitialized in this function
I suspect the problem here is GCC and not the krb code. Anyone seen this?
Signature · 1 line
Mike Looijmans
Quoted 33 lines · Mike Looijmans
I got this weird build failure from the "krb" package:
| make[3]: Entering directory '/TOPDIR/build/tmp/work/mips32el-oe-linux/krb5/1.13.2-r0/krb5-1.13.2/src/lib/krb5/ccache' | mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/TOPDIR/build/tmp/sysroots/formuler1 -fPIC -DSHARED
(quoted diff) +0
-10-DHAVE_CONFIG_H -I../../../include -I../../../include -I./ccapi -I. -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -Os -pipe -g -feliminate-unused-debug-types -DDESTRUCTOR_ATTR_WORKS=1 -I/TOPDIR/build/tmp/sysroots/formuler1/usr/include/et -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Werror=uninitialized -Werror=pointer-arith -Werror=declaration-after-statement -Werror-implicit-function-declaration -pthread -c cc_file.c -occ_file.so.o && mv -f cc_file.so.o cc_file.so
|cc_file.c: In function 'fcc_next_cred':
| cc_file.c:368:9: error: 'maxsize' may be used uninitialized in this function [-Werror=maybe-uninitialized]| ret = load_data(context, id, maxsize, buf); | ^ | cc_file.c:1091:12: note: 'maxsize' was declared here | size_t maxsize; | ^ | cc1: some warnings being treated as errorsLooking at the source, this doesn't make any sense at all. The declaration of the variable isn't even in the same method body. And the line it complains about is about the fifth time it passes that variable to another method.
Quoted 6 lines
And working around it by initializing maxsize=0 just makes the compiler choke on a similar situation elsewhere:
| packet.c:50:67: error: 'id' may be used uninitialized in this functionI suspect the problem here is GCC and not the krb code. Anyone seen this?
I've seen it today in my world builds, It seems to fail only when building with -Os.
I've seen similar issue in mdadm, also only with -Os.
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 39 lines · Martin Jansa
Quoted 38 lines · Mike Looijmans
I got this weird build failure from the "krb" package:
| make[3]: Entering directory '/TOPDIR/build/tmp/work/mips32el-oe-linux/krb5/1.13.2-r0/krb5-1.13.2/src/lib/krb5/ccache' | mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/TOPDIR/build/tmp/sysroots/formuler1 -fPIC -DSHARED
(quoted diff) +0
-10-DHAVE_CONFIG_H -I../../../include -I../../../include -I./ccapi -I. -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -Os -pipe -g -feliminate-unused-debug-types -DDESTRUCTOR_ATTR_WORKS=1 -I/TOPDIR/build/tmp/sysroots/formuler1/usr/include/et -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Werror=uninitialized -Werror=pointer-arith -Werror=declaration-after-statement -Werror-implicit-function-declaration -pthread -c cc_file.c -occ_file.so.o && mv -f cc_file.so.o cc_file.so
|cc_file.c: In function 'fcc_next_cred':
| cc_file.c:368:9: error: 'maxsize' may be used uninitialized in this function [-Werror=maybe-uninitialized]| ret = load_data(context, id, maxsize, buf); | ^ | cc_file.c:1091:12: note: 'maxsize' was declared here | size_t maxsize; | ^ | cc1: some warnings being treated as errorsLooking at the source, this doesn't make any sense at all. The declaration of the variable isn't even in the same method body. And the line it complains about is about the fifth time it passes that variable to another method.
And working around it by initializing maxsize=0 just makes the compiler choke on a similar situation elsewhere:
| packet.c:50:67: error: 'id' may be used uninitialized in this function
Quoted 6 lines
Quoted 1 line
I suspect the problem here is GCC and not the krb code. Anyone seen this?
I've seen it today in my world builds, It seems to fail only when building with -Os.
I've seen similar issue in mdadm, also only with -Os.
is this regression ? or seen for first time?
Quoted 9 lines
--
Martin 'JaMa' Jansa jabber: [email protected]--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 40 lines · Khem Raj
Quoted 39 lines · Martin Jansa
Quoted 38 lines · Mike Looijmans
I got this weird build failure from the "krb" package:
| make[3]: Entering directory '/TOPDIR/build/tmp/work/mips32el-oe-linux/krb5/1.13.2-r0/krb5-1.13.2/src/lib/krb5/ccache' | mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/TOPDIR/build/tmp/sysroots/formuler1 -fPIC -DSHARED
(quoted diff) +0
-10-DHAVE_CONFIG_H -I../../../include -I../../../include -I./ccapi -I. -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -Os -pipe -g -feliminate-unused-debug-types -DDESTRUCTOR_ATTR_WORKS=1 -I/TOPDIR/build/tmp/sysroots/formuler1/usr/include/et -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Werror=uninitialized -Werror=pointer-arith -Werror=declaration-after-statement -Werror-implicit-function-declaration -pthread -c cc_file.c -occ_file.so.o && mv -f cc_file.so.o cc_file.so
|cc_file.c: In function 'fcc_next_cred':
| cc_file.c:368:9: error: 'maxsize' may be used uninitialized in this function [-Werror=maybe-uninitialized]| ret = load_data(context, id, maxsize, buf); | ^ | cc_file.c:1091:12: note: 'maxsize' was declared here | size_t maxsize; | ^ | cc1: some warnings being treated as errorsLooking at the source, this doesn't make any sense at all. The declaration of the variable isn't even in the same method body. And the line it complains about is about the fifth time it passes that variable to another method.
And working around it by initializing maxsize=0 just makes the compiler choke on a similar situation elsewhere:
| packet.c:50:67: error: 'id' may be used uninitialized in this function
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
I suspect the problem here is GCC and not the krb code. Anyone seen this?
I've seen it today in my world builds, It seems to fail only when building with -Os.
I've seen similar issue in mdadm, also only with -Os.
is this regression ? or seen for first time?
krb5 fails to build like this with -Os at least since dizzy
mdadm failure:
| raid6check.c: In function 'check_stripes': | raid6check.c:315:8: error: 'stripe_buf' may be used uninitialized in this function [-Werror=maybe-uninitialized] | char *stripe_buf; | ^ | cc1: all warnings being treated as errors | make: *** [raid6check.o] Error 1 | ERROR: oe_runmake failed
is newer (seen only in Jethro builds).
But maybe only because this is built in do_compile_ptest_base and ptest support was added in oe-core/jethro, it fails the same with gcc-5.2 and gcc-4.9.
Quoted 15 lines
Quoted 10 lines
--
Martin 'JaMa' Jansa jabber: [email protected]--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-develSignature · 4 lines
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 61 lines · Martin Jansa
Quoted 40 lines · Khem Raj
Quoted 39 lines · Martin Jansa
Quoted 38 lines · Mike Looijmans
I got this weird build failure from the "krb" package:
| make[3]: Entering directory '/TOPDIR/build/tmp/work/mips32el-oe-linux/krb5/1.13.2-r0/krb5-1.13.2/src/lib/krb5/ccache' | mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/TOPDIR/build/tmp/sysroots/formuler1 -fPIC -DSHARED
(quoted diff) +0
-10-DHAVE_CONFIG_H -I../../../include -I../../../include -I./ccapi -I. -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -Os -pipe -g -feliminate-unused-debug-types -DDESTRUCTOR_ATTR_WORKS=1 -I/TOPDIR/build/tmp/sysroots/formuler1/usr/include/et -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Werror=uninitialized -Werror=pointer-arith -Werror=declaration-after-statement -Werror-implicit-function-declaration -pthread -c cc_file.c -occ_file.so.o && mv -f cc_file.so.o cc_file.so
|cc_file.c: In function 'fcc_next_cred':
| cc_file.c:368:9: error: 'maxsize' may be used uninitialized in this function [-Werror=maybe-uninitialized]| ret = load_data(context, id, maxsize, buf); | ^ | cc_file.c:1091:12: note: 'maxsize' was declared here | size_t maxsize; | ^ | cc1: some warnings being treated as errorsLooking at the source, this doesn't make any sense at all. The declaration of the variable isn't even in the same method body. And the line it complains about is about the fifth time it passes that variable to another method.
And working around it by initializing maxsize=0 just makes the compiler choke on a similar situation elsewhere:
| packet.c:50:67: error: 'id' may be used uninitialized in this functionQuoted 8 lines
Quoted 6 lines
Quoted 1 line
I suspect the problem here is GCC and not the krb code. Anyone seen this?
I've seen it today in my world builds, It seems to fail only when building with -Os.
I've seen similar issue in mdadm, also only with -Os.
is this regression ? or seen for first time?
krb5 fails to build like this with -Os at least since dizzy
mdadm failure:
| raid6check.c: In function 'check_stripes': | raid6check.c:315:8: error: 'stripe_buf' may be used uninitialized in this function [-Werror=maybe-uninitialized] | char *stripe_buf; | ^ | cc1: all warnings being treated as errors | make: *** [raid6check.o] Error 1 | ERROR: oe_runmake failed
Quoted 4 lines
is newer (seen only in Jethro builds).
But maybe only because this is built in
do_compile_ptest_baseand ptest support was added in oe-core/jethro, it fails the same with gcc-5.2 and gcc-4.9.
Quick grep in my last -Os world build shows 2 more recipes with similar issue (smbnetfs is failing in krb5 dependency already):
physfs:
| physfs/2.0.3-r0/physfs-2.0.3/archivers/zip.c: In function 'ZIP_openArchive': | physfs/2.0.3-r0/physfs-2.0.3/archivers/zip.c:944:19: error: 'data_start' may be used uninitialized in this function [-Werror=maybe-uninitialized] | entry->offset += ofs_fixup; | ^ | physfs/2.0.3-r0/physfs-2.0.3/archivers/zip.c:1116:19: note: 'data_start' was declared here | PHYSFS_uint32 data_start; | ^ | physfs/2.0.3-r0/physfs-2.0.3/archivers/zip.c: In function 'ZIP_openArchive': | physfs/2.0.3-r0/physfs-2.0.3/archivers/zip.c:944:19: error: 'data_start' may be used uninitialized in this function [-Werror=maybe-uninitialized] | entry->offset += ofs_fixup; | ^ | physfs/2.0.3-r0/physfs-2.0.3/archivers/zip.c:1116:19: note: 'data_start' was declared here | PHYSFS_uint32 data_start; | ^ | cc1: all warnings being treated as errors
tvheadend:
| tvheadend/3.3-r0/git/src/serviceprobe.c: In function 'serviceprobe_thread': | tvheadend/3.3-r0/git/src/serviceprobe.c:168:7: error: 's' may be used uninitialized in this function [-Werror=maybe-uninitialized] | subscription_unsubscribe(s); | ^
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 46 lines · Martin Jansa
Quoted 45 lines · Martin Jansa
Quoted 44 lines · Khem Raj
Quoted 43 lines · Martin Jansa
Quoted 33 lines · Mike Looijmans
I got this weird build failure from the "krb" package:
| make[3]: Entering directory '/TOPDIR/build/tmp/work/mips32el-oe-linux/krb5/1.13.2-r0/krb5-1.13.2/src/lib/krb5/ccache' | mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/TOPDIR/build/tmp/sysroots/formuler1 -fPIC -DSHARED
(quoted diff) +0
-10-DHAVE_CONFIG_H -I../../../include -I../../../include -I./ccapi -I. -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -Os -pipe -g -feliminate-unused-debug-types -DDESTRUCTOR_ATTR_WORKS=1 -I/TOPDIR/build/tmp/sysroots/formuler1/usr/include/et -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Werror=uninitialized -Werror=pointer-arith -Werror=declaration-after-statement -Werror-implicit-function-declaration -pthread -c cc_file.c -occ_file.so.o && mv -f cc_file.so.o cc_file.so
|cc_file.c: In function 'fcc_next_cred':
| cc_file.c:368:9: error: 'maxsize' may be used uninitialized in this function [-Werror=maybe-uninitialized]| ret = load_data(context, id, maxsize, buf); | ^ | cc_file.c:1091:12: note: 'maxsize' was declared here | size_t maxsize; | ^ | cc1: some warnings being treated as errorsLooking at the source, this doesn't make any sense at all. The declaration of the variable isn't even in the same method body. And the line it complains about is about the fifth time it passes that variable to another method.
Quoted 6 lines
And working around it by initializing maxsize=0 just makes the compiler choke on a similar situation elsewhere:
| packet.c:50:67: error: 'id' may be used uninitialized in this functionI suspect the problem here is GCC and not the krb code. Anyone seen this?
I've seen it today in my world builds, It seems to fail only when building with -Os.
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
I've seen similar issue in mdadm, also only with -Os.
is this regression ? or seen for first time?
krb5 fails to build like this with -Os at least since dizzy
Since the move to gcc5 this fails. This workaround makes the build pass once more:
https://github.com/OpenPLi/openpli-oe-core/commit/781fea2e5e5e9a18ee905a01b1e2ee80b3aa4721
...
Quoted 2 lines
Quick grep in my last -Os world build shows 2 more recipes with similar issue (smbnetfs is failing in krb5 dependency already):
...
I suspect the bug is in GCC, not in the code of these recipes.
Kind regards,
Mike Looijmans
System Expert
TOPIC Embedded Products Eindhovenseweg 32-C, NL-5683 KH Best Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: [email protected]
Website: www.topicproducts.com
Please consider the environment before printing this e-mail
Visit us at : Aerospace Electrical Systems Expo Europe which will be held from 17.11.2015 till 19.11.2015, Findorffstrasse 101 Bremen, Germany, Hall 5, stand number C65
http://www.aesexpo.eu