[Bug 1133305] New: LTO: multipath-tools build fails
http://bugzilla.opensuse.org/show_bug.cgi?id=1133305 Bug ID: 1133305 Summary: LTO: multipath-tools build fails 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: martin.wilck@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- in the LTO staging project (openSUSE:Factory:Staging:N), libaio doesn't export all symbols it used to export. In particular, io_cancel() and io_getevents() are undefined: apollon:/mnt/img/lib64 # nm -D libaio.so.1 0000000000000000 A LIBAIO_0.1 0000000000000000 A LIBAIO_0.4 U __stack_chk_fail U io_cancel 0000000000001050 T io_destroy U io_getevents 0000000000001110 T io_queue_init 0000000000001100 T io_queue_release 0000000000001080 T io_queue_run 0000000000001060 T io_setup 0000000000001070 T io_submit This causes the multipath-tools build to fail. The failure is independent on whether -flto=X is active while building multipath-tools itself.
[ 50s] gcc -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -flto=4 -g -DBIN_DIR=\"/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -I../libmultipath -I../libmpathcmd main.o -o multipath -Wl,-z,relro -Wl,-z,now -pie -L../libmultipath -lmultipath -L../libmpathcmd -lmpathcmd -lpthread -ldevmapper -ldl -ludev -laio [ 50s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: ../libmultipath/libmultipath.so: undefined reference to `io_getevents' [ 50s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: ../libmultipath/libmultipath.so: undefined reference to `io_cancel'' [ 50s] collect2: error: ld returned 1 exit status [ 50s] make[1]: *** [Makefile:18: multipath] Error 1
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133305 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1133084 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133305 http://bugzilla.opensuse.org/show_bug.cgi?id=1133305#c1 --- Comment #1 from Martin Wilck <martin.wilck@suse.com> --- I checked out rev 2 from openSUSE:Factory:Staging:N/libaio in my branch project (home:mwilck:branches:openSUSE:Factory:Staging:N), which has LTO disabled. With that libaio build, multipath-tools builds successfully. libaio now contains all required symbols: apollon:~ # nm -D /mnt/img/lib64/libaio.so.1 0000000000000000 A LIBAIO_0.1 0000000000000000 A LIBAIO_0.4 U __stack_chk_fail 0000000000001190 T io_cancel 00000000000011c0 T io_cancel 00000000000011b0 T io_destroy 0000000000001140 T io_getevents 0000000000001250 T io_getevents 0000000000001060 T io_queue_init 0000000000001080 T io_queue_release 00000000000010a0 T io_queue_run 0000000000001200 T io_queue_wait 0000000000001090 T io_queue_wait 00000000000011a0 T io_setup 0000000000001180 T io_submit -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133305 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|LTO: multipath-tools build |LTO: multipath-tools build |fails |fails because of missing | |symbols in libaio -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133305 http://bugzilla.opensuse.org/show_bug.cgi?id=1133305#c5 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(martin.liska@suse | |.com) --- Comment #5 from Martin Wilck <martin.wilck@suse.com> --- marxin, we may have just been missing each other. Of course I'd want to help rather than interfere. After disabling LTO for libaio, why would it necessary to disable it for multipath-tools? My tests showed that multipath-tools compiles just fine if libaio is fixed. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133305 http://bugzilla.opensuse.org/show_bug.cgi?id=1133305#c6 Martin Liška <martin.liska@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID Flags|needinfo?(martin.liska@suse | |.com) | --- Comment #6 from Martin Liška <martin.liska@suse.com> --- (In reply to Martin Wilck from comment #5)
marxin, we may have just been missing each other. Of course I'd want to help rather than interfere.
After disabling LTO for libaio, why would it necessary to disable it for multipath-tools? My tests showed that multipath-tools compiles just fine if libaio is fixed.
Good, then this can be closed ;) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133305 Bug 1133305 depends on bug 1133233, which changed state. Bug 1133233 Summary: LTO: libaio build fails http://bugzilla.opensuse.org/show_bug.cgi?id=1133233 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133305 Bug 1133305 depends on bug 1133233, which changed state. Bug 1133233 Summary: LTO: libaio build fails http://bugzilla.opensuse.org/show_bug.cgi?id=1133233 What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com