From: Stefan Weil <sw@weilnetz.de>
To: Markus Armbruster <armbru@redhat.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>, Avi Kivity <avi@redhat.com>
Subject: Re: [Qemu-devel] Latest QEMU does not support --enable-check-utests on Debian with --enable-pie (default)
Date: Thu, 24 Nov 2011 19:36:34 +0100 [thread overview]
Message-ID: <4ECE8EB2.4090301@weilnetz.de> (raw)
In-Reply-To: <m3hb1u2bmi.fsf@blackfin.pond.sub.org>
Am 24.11.2011 09:00, schrieb Markus Armbruster:
> Stefan Weil<sw@weilnetz.de> writes:
>
>
>> This is my configuration and the output from configure:
>>
>> configure '--audio-card-list=ac97,es1370,sb16,cs4231a,adlib,gus,hda'
>> --audio-drv-list=alsa,sdl,oss,esd,pa' '--enable-mixemu'
>> --enable-check-utests' '--enable-vnc-thread'
>> ERROR
>> ERROR: User requested feature check
>> ERROR: configure was not able to find it
>> ERROR
>>
> Works for me, see appended log.
>
>
>> This is what configure does internally:
>>
>> gcc -fPIE -DPIE -m64 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE
>> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes
>> -Wredundant-decls -Wmissing-format-attribute -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/libpng12 -o
>> /tmp/qemu-conf--4272-.exe /tmp/qemu-conf--4272-.c -Wl,-z,relro
>> -Wl,-z,now -pie -m64 -g -lcheck
>> /usr/bin/ld:
>> /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcheck.a(check.o):
>> relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
>> making a shared object; recompile with -fPIC
>> /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcheck.a: could
>> not read symbols: Bad value
>>
>> When I add --disable-pie, configure works.
>>
> You can't link non-PIC code like libcheck.a into a PIE. Do you have
> libcheck.so?
>
Debian squeeze has libcheck.a and libcheck_pic.a, but no
libcheck.so in package 'check'.
There are other files names *_pic.a, and obviously those
libraries are to be linked to a PIE. If I use -lcheck_pic,
building PIEs works.
Maybe configure must be extended to try library names
with an additional _pic for PIE.
Regards,
Stefan Weil
prev parent reply other threads:[~2011-11-24 18:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-23 19:40 [Qemu-devel] Latest QEMU does not support --enable-check-utests on Debian with --enable-pie (default) Stefan Weil
2011-11-24 8:00 ` Markus Armbruster
2011-11-24 18:36 ` Stefan Weil [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ECE8EB2.4090301@weilnetz.de \
--to=sw@weilnetz.de \
--cc=armbru@redhat.com \
--cc=avi@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.