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: