* [xen-unstable] 26319: libcacard error
@ 2013-01-03 5:11 yanxiaoliang
2013-01-03 9:59 ` Ian Campbell
0 siblings, 1 reply; 4+ messages in thread
From: yanxiaoliang @ 2013-01-03 5:11 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 896 bytes --]
hello, everyone, I got some problems as below when i compiled a xen-unstable src .
./configure
make xen
It was ok until here.
But when "make tools"
It showed
/usr/bin/ld: libcacard/.libs/vcard.o: relocation R_X86_64_PC32 against `vcard_delete_applet' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[4]: *** [libcacard.la] Error 1
make[3]: *** [subdir-libcacard] Error 2
make[3]: Leaving directory `/root/xen-unstable.hg/tools/qemu-xen-dir-remote'
make[2]: *** [subdir-all-qemu-xen-dir] Error 2
make[2]: Leaving directory `/root/xen-unstable.hg/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/root/xen-unstable.hg/tools'
make: *** [install-tools] Error 2
Could anyone give me some advices ?
best regards
leo
yanxiaoliang@gmail.com
[-- Attachment #1.2: Type: text/html, Size: 2182 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [xen-unstable] 26319: libcacard error
2013-01-03 5:11 [xen-unstable] 26319: libcacard error yanxiaoliang
@ 2013-01-03 9:59 ` Ian Campbell
2013-12-03 0:11 ` Don Slutz
0 siblings, 1 reply; 4+ messages in thread
From: Ian Campbell @ 2013-01-03 9:59 UTC (permalink / raw)
To: yanxiaoliang; +Cc: Anthony Perard, Stefano Stabellini, xen-devel
On Thu, 2013-01-03 at 05:11 +0000, yanxiaoliang@gmail.com wrote:
>
> hello, everyone, I got some problems as below when i compiled
> a xen-unstable src .
>
> ./configure
> make xen
> It was ok until here.
> But when "make tools"
> It showed
Please can you give a more complete log, specifically including the
actual gcc invocation which resulted in this error message.
> /usr/bin/ld: libcacard/.libs/vcard.o: relocation R_X86_64_PC32 against `vcard_delete_applet' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> make[4]: *** [libcacard.la] Error 1
> make[3]: *** [subdir-libcacard] Error 2
> make[3]: Leaving directory `/root/xen-unstable.hg/tools/qemu-xen-dir-remote'
> make[2]: *** [subdir-all-qemu-xen-dir] Error 2
> make[2]: Leaving directory `/root/xen-unstable.hg/tools'
> make[1]: *** [subdirs-install] Error 2
> make[1]: Leaving directory `/root/xen-unstable.hg/tools'
> make: *** [install-tools] Error 2
>
> Could anyone give me some advices ?
This sort of error is typically specific to the version of gcc and/or
the distro -- what are you using?
It seems likely that his is an upstream qemu issue, but it's not clear
to me why this appears to not happen anywhere else (according to
google). It's possible that this functionality is just not widely used?
It might be useful to raise this on qemu-devel.
As a workaround in the meantime you could try adding --disable-smartcard
to the invocation of configure in tools/Makefile, or perhaps
--disable-smartcard-nss would do the trick.
Removing the libnss library (the smart card one) package from your
system would also work around the issue, if that is possible.
Ian.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [xen-unstable] 26319: libcacard error
2013-01-03 9:59 ` Ian Campbell
@ 2013-12-03 0:11 ` Don Slutz
2013-12-03 10:16 ` Ian Campbell
0 siblings, 1 reply; 4+ messages in thread
From: Don Slutz @ 2013-12-03 0:11 UTC (permalink / raw)
To: Ian Campbell, yanxiaoliang; +Cc: Anthony Perard, Stefano Stabellini, xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 14689 bytes --]
I have been able to reproduce this on CentOS 5.10.
On 01/03/13 04:59, Ian Campbell wrote:
> On Thu, 2013-01-03 at 05:11 +0000, yanxiaoliang@gmail.com wrote:
>>
>> hello, everyone, I got some problems as below when i compiled
>> a xen-unstable src .
>>
>> ./configure
>> make xen
>> It was ok until here.
>> But when "make tools"
>> It showed
> Please can you give a more complete log, specifically including the
> actual gcc invocation which resulted in this error message.
libtool --mode=link --quiet --tag=CC gcc -rpath /usr/local/lib -o libcacard.la libcacard/cac.lo libcacard/event.lo libcacard/vcard.lo libcacard/vreader.lo libcacard/vcard_emul_nss.lo libcacard/vcard_emul_type.lo libcacard/card_7816.lo osdep.lo cutils.lo qemu-timer-common.lo oslib-posix.lo qemu-thread-posix.lo trace.lo trace/stderr.lo trace/control.lo stubs/arch-query-cpu-def.lo stubs/fdset-add-fd.lo stubs/fdset-find-fd.lo stubs/fdset-get-fd.lo stubs/fdset-remove-fd.lo stubs/get-fd.lo stubs/set-fd-handler.lo -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl -pthread -L/lib64 -lgthread-2.0 -lglib-2.0
/usr/bin/ld: libcacard/.libs/vcard.o: relocation R_X86_64_PC32 against `vcard_buffer_response_delete' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[4]: *** [libcacard.la] Error 1
make[4]: Leaving directory `/home/don/xen/tools/qemu-xen-dir-remote/libcacard'
make[3]: *** [subdir-libcacard] Error 2
make[3]: Leaving directory `/home/don/xen/tools/qemu-xen-dir-remote'
make[2]: *** [subdir-all-qemu-xen-dir] Error 2
make[2]: Leaving directory `/home/don/xen/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/don/xen/tools'
make: *** [install-tools] Error 2
>
>> /usr/bin/ld: libcacard/.libs/vcard.o: relocation R_X86_64_PC32 against `vcard_delete_applet' can not be used when making a shared object; recompile with -fPIC
>> /usr/bin/ld: final link failed: Bad value
>> collect2: ld returned 1 exit status
>> make[4]: *** [libcacard.la] Error 1
>> make[3]: *** [subdir-libcacard] Error 2
>> make[3]: Leaving directory `/root/xen-unstable.hg/tools/qemu-xen-dir-remote'
>> make[2]: *** [subdir-all-qemu-xen-dir] Error 2
>> make[2]: Leaving directory `/root/xen-unstable.hg/tools'
>> make[1]: *** [subdirs-install] Error 2
>> make[1]: Leaving directory `/root/xen-unstable.hg/tools'
>> make: *** [install-tools] Error 2
>>
>> Could anyone give me some advices ?
> This sort of error is typically specific to the version of gcc and/or
> the distro -- what are you using?
CentOS 5.10
> It seems likely that his is an upstream qemu issue, but it's not clear
> to me why this appears to not happen anywhere else (according to
> google). It's possible that this functionality is just not widely used?
> It might be useful to raise this on qemu-devel.
https://bugs.launchpad.net/qemu/+bug/1257099
> As a workaround in the meantime you could try adding --disable-smartcard
> to the invocation of configure in tools/Makefile, or perhaps
> --disable-smartcard-nss would do the trick.
Using the patch:
From 57af66ee9bb0edb7545fc84b5b6d628cebd29f95 Mon Sep 17 00:00:00 2001
From: Don Slutz <dslutz@verizon.com>
Date: Mon, 2 Dec 2013 21:07:16 +0000
Subject: [PATCH] Add QEMU_UPSTREAM_EXTRA_CONFIG.
this allows 'make QEMU_UPSTREAM_EXTRA_CONFIG=--disable-smartcard-nss' to work on CentOS 5.10
Signed-off-by: Don Slutz <dslutz@verizon.com>
---
tools/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/Makefile b/tools/Makefile
index 00c69ee..9e1efca 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -187,7 +187,7 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
fi; \
cd qemu-xen-dir; \
$$source/configure --enable-xen --target-list=i386-softmmu \
- $(QEMU_XEN_ENABLE_DEBUG) \
+ $(QEMU_XEN_ENABLE_DEBUG) $(QEMU_UPSTREAM_EXTRA_CONFIG) \
--prefix=$(PREFIX) \
--source-path=$$source \
--extra-cflags="-I$(XEN_ROOT)/tools/include \
--
1.8.2.1
And then "make QEMU_UPSTREAM_EXTRA_CONFIG=--disable-smartcard-nss dist" gets past this error.
This is at:
* 57af66e (HEAD, master) Add QEMU_UPSTREAM_EXTRA_CONFIG.
* e439e0b (origin/master, origin/HEAD) x86/pvh: change epte_get_entry_emt() for pvh mem types
Does it make sense to send this as a top post?
It then dies in:
[ 3%] Building C object tpm/CMakeFiles/tpm.dir/tpm_daa.o
cd /home/don/xen/stubdom/tpm_emulator-x86_64/build/tpm && /usr/bin/gcc -std=c99 -DTPM_NO_EXTERN -isystem /home/don/xen/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /home/don/xen/stubdom/../extras/mini-os/include/posix -isystem /home/don/xen/stubdom/../tools/xenstore -isystem /home/don/xen/stubdom/../extras/mini-os/include/x86 -isystem /home/don/xen/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /home/don/xen/stubdom/../extras/mini-os/include/posix -isystem /home/don/xen/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include -isystem /home/don/xen/stubdom/lwip-x86_64/src/include -isystem /home/don/xen/stubdom/lwip-x86_64/src/include/ipv4 -I/home/don/xen/stubdom/include -I/home/don/xen/stubdom/../xen/include -mno-red-zone -O1 -fno-omit-frame-pointer -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing
-std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -fno-stack-protector -fno-exceptions -Wno-declaration-after-statement -I/opt/local/include -I/home/don/xen/stubdom/tpm_emulator-x86_64 -I/home/don/xen/stubdom/tpm_emulator-x86_64/build -Wall -Werror -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings -Wextra -o CMakeFiles/tpm.dir/tpm_daa.o -c /home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c
cc1: warnings being treated as errors
/home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c: In function 'TPM_DAA_Join':
/home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c:336: warning: unused parameter 'ordinal'
/home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c: In function 'TPM_DAA_Sign':
/home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c:2362: warning: unused parameter 'ordinal'
make[5]: *** [tpm/CMakeFiles/tpm.dir/tpm_daa.o] Error 1
make[5]: Leaving directory `/home/don/xen/stubdom/tpm_emulator-x86_64/build'
make[4]: *** [tpm/CMakeFiles/tpm.dir/all] Error 2
make[4]: Leaving directory `/home/don/xen/stubdom/tpm_emulator-x86_64/build'
make[3]: *** [tpm/CMakeFiles/tpm.dir/rule] Error 2
make[3]: Leaving directory `/home/don/xen/stubdom/tpm_emulator-x86_64/build'
make[2]: *** [tpm] Error 2
make[2]: Leaving directory `/home/don/xen/stubdom/tpm_emulator-x86_64/build'
make[1]: *** [cross-root-x86_64/x86_64-xen-elf/lib/libtpm.a] Error 2
make[1]: Leaving directory `/home/don/xen/stubdom'
make: *** [install-stubdom] Error 2
Doing "./configure --disable-stubdom" allows a clean build.
On stable-4.3:
86e80b6 (HEAD, origin/stable-4.3, stable-4.3) x86/xsave: fix nonlazy state handling
...
lt LINK libcacard.la
/usr/bin/ld: libcacard/.libs/vcard.o: relocation R_X86_64_PC32 against `vcard_delete_applet' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[4]: *** [libcacard.la] Error 1
make[3]: *** [subdir-libcacard] Error 2
make[3]: Leaving directory `/home/don/xen/tools/qemu-xen-dir-remote'
make[2]: *** [subdir-all-qemu-xen-dir] Error 2
make[2]: Leaving directory `/home/don/xen/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/don/xen/tools'
make: *** [install-tools] Error 2
Almost the same error. The attached 4.3 patch, and then "make QEMU_UPSTREAM_EXTRA_CONFIG=--disable-smartcard-nss dist"
* 5714078 (HEAD, stable-4.3) Add QEMU_UPSTREAM_EXTRA_CONFIG.
* 86e80b6 (origin/stable-4.3) x86/xsave: fix nonlazy state handling
Also dies with:
...
cd /home/don/xen/stubdom/tpm_emulator-x86_64/build/tpm && /usr/bin/gcc -std=c99 -DTPM_NO_EXTERN -isystem /home/don/xen/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /home/don/xen/stubdom/../extras/mini-os/include/posix -isystem /home/don/xen/stubdom/../tools/xenstore -isystem /home/don/xen/stubdom/../extras/mini-os/include/x86 -isystem /home/don/xen/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /home/don/xen/stubdom/../extras/mini-os/include/posix -isystem /home/don/xen/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include -isystem /home/don/xen/stubdom/lwip-x86_64/src/include -isystem /home/don/xen/stubdom/lwip-x86_64/src/include/ipv4 -I/home/don/xen/stubdom/include -I/home/don/xen/stubdom/../xen/include -mno-red-zone -O1 -fno-omit-frame-pointer -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing
-std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -fno-stack-protector -fno-exceptions -Wno-declaration-after-statement -I/opt/local/include -I/home/don/xen/stubdom/tpm_emulator-x86_64 -I/home/don/xen/stubdom/tpm_emulator-x86_64/build -Wall -Werror -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings -Wextra -o CMakeFiles/tpm.dir/tpm_daa.o -c /home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c
cc1: warnings being treated as errors
/home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c: In function 'TPM_DAA_Join':
/home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c:336: warning: unused parameter 'ordinal'
/home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c: In function 'TPM_DAA_Sign':
/home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c:2362: warning: unused parameter 'ordinal'
make[5]: *** [tpm/CMakeFiles/tpm.dir/tpm_daa.o] Error 1
make[5]: Leaving directory `/home/don/xen/stubdom/tpm_emulator-x86_64/build'
make[4]: *** [tpm/CMakeFiles/tpm.dir/all] Error 2
make[4]: Leaving directory `/home/don/xen/stubdom/tpm_emulator-x86_64/build'
make[3]: *** [tpm/CMakeFiles/tpm.dir/rule] Error 2
make[3]: Leaving directory `/home/don/xen/stubdom/tpm_emulator-x86_64/build'
make[2]: *** [tpm] Error 2
make[2]: Leaving directory `/home/don/xen/stubdom/tpm_emulator-x86_64/build'
make[1]: *** [cross-root-x86_64/x86_64-xen-elf/lib/libtpm.a] Error 2
make[1]: Leaving directory `/home/don/xen/stubdom'
make: *** [install-stubdom] Error 2
And not building the stubdom works.
* 094900d x86/crash: disable the watchdog NMIs on the crashing cpu
...
lt LINK libcacard.la
/usr/bin/ld: libcacard/.libs/vcard.o: relocation R_X86_64_PC32 against `vcard_delete_applet' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[4]: *** [libcacard.la] Error 1
make[3]: *** [subdir-libcacard] Error 2
make[3]: Leaving directory `/home/don/xen/tools/qemu-xen-dir-remote'
make[2]: *** [subdir-all-qemu-xen-dir] Error 2
make[2]: Leaving directory `/home/don/xen/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/don/xen/tools'
make: *** [install-tools] Error 2
* 84e1ba0 (HEAD, staging-4.3) Add QEMU_UPSTREAM_EXTRA_CONFIG.
* 86e80b6 (origin/staging-4.3, origin/stable-4.3) x86/xsave: fix nonlazy state handling
Also gets the error:
...
cd /home/don/xen/stubdom/tpm_emulator-x86_64/build/tpm && /usr/bin/gcc -std=c99 -DTPM_NO_EXTERN -isystem /home/don/xen/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /home/don/xen/stubdom/../extras/mini-os/include/posix -isystem /home/don/xen/stubdom/../tools/xenstore -isystem /home/don/xen/stubdom/../extras/mini-os/include/x86 -isystem /home/don/xen/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /home/don/xen/stubdom/../extras/mini-os/include/posix -isystem /home/don/xen/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include -isystem /home/don/xen/stubdom/lwip-x86_64/src/include -isystem /home/don/xen/stubdom/lwip-x86_64/src/include/ipv4 -I/home/don/xen/stubdom/include -I/home/don/xen/stubdom/../xen/include -mno-red-zone -O1 -fno-omit-frame-pointer -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing
-std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -fno-stack-protector -fno-exceptions -Wno-declaration-after-statement -I/opt/local/include -I/home/don/xen/stubdom/tpm_emulator-x86_64 -I/home/don/xen/stubdom/tpm_emulator-x86_64/build -Wall -Werror -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings -Wextra -o CMakeFiles/tpm.dir/tpm_daa.o -c /home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c
cc1: warnings being treated as errors
/home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c: In function 'TPM_DAA_Join':
/home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c:336: warning: unused parameter 'ordinal'
/home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c: In function 'TPM_DAA_Sign':
/home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c:2362: warning: unused parameter 'ordinal'
make[5]: *** [tpm/CMakeFiles/tpm.dir/tpm_daa.o] Error 1
make[5]: Leaving directory `/home/don/xen/stubdom/tpm_emulator-x86_64/build'
make[4]: *** [tpm/CMakeFiles/tpm.dir/all] Error 2
make[4]: Leaving directory `/home/don/xen/stubdom/tpm_emulator-x86_64/build'
make[3]: *** [tpm/CMakeFiles/tpm.dir/rule] Error 2
make[3]: Leaving directory `/home/don/xen/stubdom/tpm_emulator-x86_64/build'
make[2]: *** [tpm] Error 2
make[2]: Leaving directory `/home/don/xen/stubdom/tpm_emulator-x86_64/build'
make[1]: *** [cross-root-x86_64/x86_64-xen-elf/lib/libtpm.a] Error 2
make[1]: Leaving directory `/home/don/xen/stubdom'
make: *** [install-stubdom] Error 2
420ff58 (HEAD, origin/stable-4.2, stable-4.2) x86/HVM: only allow ring 0 guest code to make hypercalls
...
Is a clean build.
All of these build cleanly on a Fedora 17 system.
-Don Slutz
> Removing the libnss library (the smart card one) package from your
> system would also work around the issue, if that is possible.
>
> Ian.
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
[-- Attachment #1.2: Type: text/html, Size: 19046 bytes --]
[-- Attachment #2: 4.4-0001-Add-QEMU_UPSTREAM_EXTRA_CONFIG.patch --]
[-- Type: text/x-patch, Size: 887 bytes --]
>From 57af66ee9bb0edb7545fc84b5b6d628cebd29f95 Mon Sep 17 00:00:00 2001
From: Don Slutz <dslutz@verizon.com>
Date: Mon, 2 Dec 2013 21:07:16 +0000
Subject: [PATCH] Add QEMU_UPSTREAM_EXTRA_CONFIG.
this allows 'make QEMU_UPSTREAM_EXTRA_CONFIG=--disable-smartcard-nss' to work on CentOS 5.10
Signed-off-by: Don Slutz <dslutz@verizon.com>
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--git a/tools/Makefile b/tools/Makefile
index 00c69ee..9e1efca 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -187,7 +187,7 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
fi; \
cd qemu-xen-dir; \
$$source/configure --enable-xen --target-list=i386-softmmu \
- $(QEMU_XEN_ENABLE_DEBUG) \
+ $(QEMU_XEN_ENABLE_DEBUG) $(QEMU_UPSTREAM_EXTRA_CONFIG) \
--prefix=$(PREFIX) \
--source-path=$$source \
--extra-cflags="-I$(XEN_ROOT)/tools/include \
--
1.8.2.1
[-- Attachment #3: 4.3-0001-Add-QEMU_UPSTREAM_EXTRA_CONFIG.patch --]
[-- Type: text/x-patch, Size: 816 bytes --]
>From 3938aa86f4490effb562961fe6012e811ebb3646 Mon Sep 17 00:00:00 2001
From: Don Slutz <dslutz@verizon.com>
Date: Mon, 2 Dec 2013 21:07:16 +0000
Subject: [PATCH] Add QEMU_UPSTREAM_EXTRA_CONFIG.
this allows 'make QEMU_UPSTREAM_EXTRA_CONFIG=--disable-smartcard-nss' to work on CentOS 5.10
Signed-off-by: Don Slutz <dslutz@verizon.com>
---
| 1 +
1 file changed, 1 insertion(+)
--git a/tools/Makefile b/tools/Makefile
index e44a3e9..415c1e2 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -188,6 +188,7 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
fi; \
cd qemu-xen-dir; \
$$source/configure --enable-xen --target-list=i386-softmmu \
+ $(QEMU_UPSTREAM_EXTRA_CONFIG) \
--prefix=$(PREFIX) \
--source-path=$$source \
--extra-cflags="-I$(XEN_ROOT)/tools/include \
--
1.8.2.1
[-- Attachment #4: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [xen-unstable] 26319: libcacard error
2013-12-03 0:11 ` Don Slutz
@ 2013-12-03 10:16 ` Ian Campbell
0 siblings, 0 replies; 4+ messages in thread
From: Ian Campbell @ 2013-12-03 10:16 UTC (permalink / raw)
To: Don Slutz
Cc: xen-devel, Stefano Stabellini, yanxiaoliang, Anthony Perard,
Samuel Thibault, Daniel De Graaf
On Mon, 2013-12-02 at 19:11 -0500, Don Slutz wrote:
> > It seems likely that his is an upstream qemu issue, but it's not clear
> > to me why this appears to not happen anywhere else (according to
> > google). It's possible that this functionality is just not widely used?
> > It might be useful to raise this on qemu-devel.
> https://bugs.launchpad.net/qemu/+bug/1257099
Thanks, lets wait and see what they say. Once there is a backportable
patch please let us (mostly Stefano) know.
> cd /home/don/xen/stubdom/tpm_emulator-x86_64/build/tpm && /usr/bin/gcc
> -std=c99 -DTPM_NO_EXTERN
> -isystem /home/don/xen/stubdom/../extras/mini-os/include -D__MINIOS__
> -DHAVE_LIBC
> -isystem /home/don/xen/stubdom/../extras/mini-os/include/posix
> -isystem /home/don/xen/stubdom/../tools/xenstore
> -isystem /home/don/xen/stubdom/../extras/mini-os/include/x86
> -isystem /home/don/xen/stubdom/../extras/mini-os/include/x86/x86_64 -U
> __linux__ -U __FreeBSD__ -U __sun__ -nostdinc
> -isystem /home/don/xen/stubdom/../extras/mini-os/include/posix
> -isystem /home/don/xen/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include -isystem /home/don/xen/stubdom/lwip-x86_64/src/include -isystem /home/don/xen/stubdom/lwip-x86_64/src/include/ipv4 -I/home/don/xen/stubdom/include -I/home/don/xen/stubdom/../xen/include -mno-red-zone -O1 -fno-omit-frame-pointer -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -fno-stack-protector -fno-exceptions -Wno-declaration-after-statement -I/opt/local/include -I/home/don/xen/stubdom/tpm_emulator-x86_64 -I/home/don/xen/stubdom/tpm_emulator-x86_64/build -Wall -Werror -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings -Wex
tra -o CMakeFiles/tpm.dir/tpm_daa.o -c /home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c
> cc1: warnings being treated as errors
> /home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c: In function 'TPM_DAA_Join':
> /home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c:336: warning: unused parameter 'ordinal'
> /home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c: In function 'TPM_DAA_Sign':
> /home/don/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_daa.c:2362: warning: unused parameter 'ordinal'
> make[5]: *** [tpm/CMakeFiles/tpm.dir/tpm_daa.o] Error 1
This is despite -Wno-unused-parameter being used in the command line.
Perhaps the subsequent -Wextra turns it back on?
This is probably one for the tpm_emulator upstream.
Ian.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-03 10:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-03 5:11 [xen-unstable] 26319: libcacard error yanxiaoliang
2013-01-03 9:59 ` Ian Campbell
2013-12-03 0:11 ` Don Slutz
2013-12-03 10:16 ` Ian Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).