Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 459716

Summary: app-emulation/qemu - ERROR: User requested feature linux AIO - ERROR: configure was not able to find it - /lib64/libaio.so.1: undefined reference to `io_getevents'
Product: Gentoo Linux Reporter: Sasha Medvedev <Sasha.Medvedev>
Component: Current packagesAssignee: Doug Goldstein (RETIRED) <cardoe>
Status: RESOLVED INVALID    
Severity: normal CC: de.techno, qemu+disabled
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: my emerge --info
build.log
work/qemu-kvm-1.2.0/softmmu-build/config.log

Description Sasha Medvedev 2013-02-28 14:29:27 UTC
The configuration of any non-masked qemu version in the portage stops with the error:

ERROR
ERROR: User requested feature linux AIO
ERROR: configure was not able to find it
ERROR

In the config.log I found the following 2 errors:

x86_64-pc-linux-gnu-gcc -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -I/usr/include/libpng15 -o /tmp/portage/app-emulation/qemu-1.2.2-r3/temp/qemu-conf-19434-13482-2971.exe /tmp/portage/app-emulation/qemu-1.2.2-r3/temp/qemu-conf-29680-13482-11925.c -Wl,-z,relro -Wl,-z,now -pie -m64 -fno-use-linker-plugin
/tmp/portage/app-emulation/qemu-1.2.2-r3/temp/ccyM8HWo.o: In function `main':
qemu-conf-29680-13482-11925.c:(.text+0x66): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
x86_64-pc-linux-gnu-gcc -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -I/usr/include/libpng15 -o /tmp/portage/app-emulation/qemu-1.2.2-r3/temp/qemu-conf-19434-13482-2971.exe /tmp/portage/app-emulation/qemu-1.2.2-r3/temp/qemu-conf-29680-13482-11925.c -Wl,-z,relro -Wl,-z,now -pie -m64 -fno-use-linker-plugin -pthread
x86_64-pc-linux-gnu-gcc -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -I/usr/include/libpng15 -o /tmp/portage/app-emulation/qemu-1.2.2-r3/temp/qemu-conf-19434-13482-2971.exe /tmp/portage/app-emulation/qemu-1.2.2-r3/temp/qemu-conf-29680-13482-11925.c -Wl,-z,relro -Wl,-z,now -pie -m64 -fno-use-linker-plugin -laio
/lib64/libaio.so.1: undefined reference to `io_getevents'
collect2: ld returned 1 exit status


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-02-28 16:59:04 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Sasha Medvedev 2013-03-01 08:50:04 UTC
Created attachment 340600 [details]
my emerge --info
Comment 3 Sasha Medvedev 2013-03-01 08:51:47 UTC
Created attachment 340602 [details]
build.log
Comment 4 Sasha Medvedev 2013-03-01 08:52:31 UTC
Created attachment 340604 [details]
work/qemu-kvm-1.2.0/softmmu-build/config.log
Comment 5 Sasha Medvedev 2013-03-01 09:30:08 UTC
Disabling aio useflag allows me to build qemu.
Comment 6 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-03-03 21:20:22 UTC
The occurrence of -fno-use-linker-plugin in the config.log is interesting...

Did you build libaio with experimental flags like -fLTO or -fuse-linker-plugin?

See bug #453938 for more information.
Comment 7 Sasha Medvedev 2013-03-03 21:46:42 UTC
(In reply to comment #6)
> The occurrence of -fno-use-linker-plugin in the config.log is interesting...
> 
> Did you build libaio with experimental flags like -fLTO or
> -fuse-linker-plugin?
> 
> See bug #453938 for more information.

Yes, this is the case. Sorry for bothering you with this problem.
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2013-03-03 21:52:01 UTC
For some reason unknown to me, a bunch of symbols are missing for libaio when its built with -fLTO.
Comment 9 Matthias Maier gentoo-dev 2014-12-14 23:20:13 UTC
*** Bug 530724 has been marked as a duplicate of this bug. ***