[Bug 1141059] New: Recent zlib changes cause build failure of qemu-linux-user on ppc64le
http://bugzilla.suse.com/show_bug.cgi?id=1141059 Bug ID: 1141059 Summary: Recent zlib changes cause build failure of qemu-linux-user on ppc64le Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: brogers@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- At:https://build.opensuse.org/package/show/Virtualization:Staging/qemu building qemu-linux-user for ppc64le, I get the following build error now: [ 757s] /usr/lib64/gcc/powerpc64le-suse-linux/9/../../../../powerpc64le-suse-linux/bin/ld: /usr/lib64/gcc/powerpc64le-suse-linux/9/../../../../lib64/libc.a(dl-sysdep.o) and /usr/lib64/gcc/powerpc64le-suse-linux/9/../../../../lib64/libc.a(libc-start.o): warning: multiple common of `__cache_line_size' [ 757s] crc32.c:247:15: error: type of 'crc32_vpmsum' does not match original declaration [-Werror=lto-type-mismatch] [ 757s] contrib/power8-crc/vec_crc32.c:73:14: note: return value type mismatch [ 757s] contrib/power8-crc/vec_crc32.c:73:14: note: type 'unsigned int' should match type 'long unsigned int' [ 757s] contrib/power8-crc/vec_crc32.c:73:14: note: 'crc32_vpmsum' was previously declared here [ 757s] contrib/power8-crc/vec_crc32.c:73:14: note: code may be misoptimized unless '-fno-strict-aliasing' is used [ 757s] lto1: all warnings being treated as errors [ 757s] lto-wrapper: fatal error: c++ returned 1 exit status [ 757s] compilation terminated. [ 757s] /usr/lib64/gcc/powerpc64le-suse-linux/9/../../../../powerpc64le-suse-linux/bin/ld: error: lto-wrapper failed [ 757s] collect2: error: ld returned 1 exit status [ 757s] make[1]: *** [Makefile:218: qemu-aarch64_be] Error 1 [ 757s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/qemu-4.1.0-rc0/aarch64_be-linux-user' [ 757s] make: *** [Makefile:472: aarch64_be-linux-user/all] Error 2 [ 757s] error: Bad exit status from /var/tmp/rpm-tmp.yplz4T (%build) It appears to be related to our settings that warnings are errors, and recent lto enabling activity in zlib. At least, that is my analysis so far. Please investigate. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1141059
Bruce Rogers
http://bugzilla.suse.com/show_bug.cgi?id=1141059
http://bugzilla.suse.com/show_bug.cgi?id=1141059#c1
--- Comment #1 from Bruce Rogers
http://bugzilla.suse.com/show_bug.cgi?id=1141059
http://bugzilla.suse.com/show_bug.cgi?id=1141059#c2
--- Comment #2 from Bruce Rogers
http://bugzilla.suse.com/show_bug.cgi?id=1141059
http://bugzilla.suse.com/show_bug.cgi?id=1141059#c3
Martin Liška
At:https://build.opensuse.org/package/show/Virtualization:Staging/qemu building qemu-linux-user for ppc64le,
I get the following build error now: [ 757s] /usr/lib64/gcc/powerpc64le-suse-linux/9/../../../../powerpc64le-suse-linux/ bin/ld: /usr/lib64/gcc/powerpc64le-suse-linux/9/../../../../lib64/libc.a(dl-sysdep. o) and /usr/lib64/gcc/powerpc64le-suse-linux/9/../../../../lib64/libc.a(libc-start. o): warning: multiple common of `__cache_line_size' [ 757s] crc32.c:247:15: error: type of 'crc32_vpmsum' does not match original declaration [-Werror=lto-type-mismatch] [ 757s] contrib/power8-crc/vec_crc32.c:73:14: note: return value type mismatch [ 757s] contrib/power8-crc/vec_crc32.c:73:14: note: type 'unsigned int' should match type 'long unsigned int' [ 757s] contrib/power8-crc/vec_crc32.c:73:14: note: 'crc32_vpmsum' was previously declared here [ 757s] contrib/power8-crc/vec_crc32.c:73:14: note: code may be misoptimized unless '-fno-strict-aliasing' is used [ 757s] lto1: all warnings being treated as errors [ 757s] lto-wrapper: fatal error: c++ returned 1 exit status [ 757s] compilation terminated. [ 757s] /usr/lib64/gcc/powerpc64le-suse-linux/9/../../../../powerpc64le-suse-linux/ bin/ld: error: lto-wrapper failed [ 757s] collect2: error: ld returned 1 exit status [ 757s] make[1]: *** [Makefile:218: qemu-aarch64_be] Error 1 [ 757s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/qemu-4.1.0-rc0/aarch64_be-linux-user' [ 757s] make: *** [Makefile:472: aarch64_be-linux-user/all] Error 2 [ 757s] error: Bad exit status from /var/tmp/rpm-tmp.yplz4T (%build)
It appears to be related to our settings that warnings are errors, and recent lto enabling activity in zlib. At least, that is my analysis so far. Please investigate.
Yes, the enablement of LTO adds new warnings. I would recommend following what the warning says. It's most likely an issue in crc32.c. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1141059
http://bugzilla.suse.com/show_bug.cgi?id=1141059#c4
Bruce Rogers
http://bugzilla.suse.com/show_bug.cgi?id=1141059
http://bugzilla.suse.com/show_bug.cgi?id=1141059#c5
--- Comment #5 from Tomáš Chvátal
Adding Tomas as he's been involved in zlib, incl. the code in question.
I would love to help but this patchset is dump from IBM for ppc and I really don't know much of what it does apart from fixing few off-by-one issues that we detected... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1141059
http://bugzilla.suse.com/show_bug.cgi?id=1141059#c6
--- Comment #6 from Bruce Rogers
http://bugzilla.suse.com/show_bug.cgi?id=1141059
http://bugzilla.suse.com/show_bug.cgi?id=1141059#c8
--- Comment #8 from Bruce Rogers
Well, I don't know much about this code either, but in this case I think a fix for this is fairly straight forward, to align the crc32_vpmsum function type in the Power specific patch with it's usage. See SR#714685.
The whole issue points out a concern of the impact that LTO can have outside of the package being modified.
This SR was accepted, and fixes the issue for me. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1141059
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1141059
http://bugzilla.suse.com/show_bug.cgi?id=1141059#c9
--- Comment #9 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1141059
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1141059
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1141059
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1141059
http://bugzilla.suse.com/show_bug.cgi?id=1141059#c10
--- Comment #10 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1141059
http://bugzilla.suse.com/show_bug.cgi?id=1141059#c11
--- Comment #11 from Swamp Workflow Management
https://bugzilla.suse.com/show_bug.cgi?id=1141059
https://bugzilla.suse.com/show_bug.cgi?id=1141059#c12
Bruce Rogers
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com