[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Bug 1324112] [NEW] qemu parallel building error on lib
From: |
tal zilcer |
Subject: |
Re: [Qemu-devel] [Bug 1324112] [NEW] qemu parallel building error on libcacard.la |
Date: |
Tue, 10 Jun 2014 16:35:36 -0000 |
The following patch solved the issue for me:
--- a/qemu/libcacard/Makefile
+++ b/qemu/libcacard/Makefile
@@ -26,8 +26,8 @@ vscclient$(EXESUF): libcacard/vscclient.o libcacard.la
libcacard.la: LDFLAGS += -rpath $(libdir) -no-undefined \
-export-syms $(SRC_PATH)/libcacard/libcacard.syms
libcacard.la: LIBS = $(libcacard_libs)
-libcacard.la: $(libcacard-lobj-y)
- $(call LINK,$^)
+libcacard.la: $(libcacard-obj-y)
+ $(call LINK,$(libcacard-lobj-y))
libcacard.pc: $(SRC_PATH)/libcacard/libcacard.pc.in
$(call quiet-command,sed -e 's|@LIBDIR@|$(libdir)|' \
-----Original Message-----
From: Tal Zilcer
Sent: Tuesday, June 10, 2014 6:09 PM
To: 'Bug 1324112'
Subject: RE: [Qemu-devel] [Bug 1324112] [NEW] qemu parallel building error on
libcacard.la
To summarize what I think is the problem:
Libcacard.la depends on trace/generated*.la files(ibcacard.la:
$(libcacard-lobj-y))
Trace/generated*.o files depends on trace/generated*.la
files($(libcacard-obj-y): | $(libcacard-lobj-y))
Also util depends on generated-*.o files (util-obj-y += generated-events.o)
This means when libcacard.la is being build generated-*.o files can be build by
the util target.
I think you should change libcacard.la dependencies to include the o files and
not only the la files.
Thanks,
tal
-----Original Message-----
From: Tal Zilcer
Sent: Tuesday, June 10, 2014 3:46 PM
To: 'Bug 1324112'
Subject: RE: [Qemu-devel] [Bug 1324112] [NEW] qemu parallel building error on
libcacard.la
I did some more experiments and maybe I found the issue.
I added a two prints to rules.mak:
%.o: %.c
$(call quiet-command,$(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS)
$(QEMU_DGFLAGS) $(CFLAGS) $(address@hidden) -c -o $@ $<," CC
$(TARGET_DIR)$@")
@echo ooooooooooooo:$@
%.lo: %.c
$(call quiet-command,$(LIBTOOL) --mode=compile --tag=CC $(CC)
$(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," lt CC
$@")
@echo lolololololo:$@
This two prints symbolize the end of the file build.
Here is the end of the log that I got for a failed build(using V=1):
libtool: compile:
/home/talz/workspace/mmmmm/EZdk-nps/tools/3rd-party-libs/ccache/ccache_output/bin/ccache
/usr/bin/gcc -I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/tcg
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/tcg/i386
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/linux-headers
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/build/linux_x86_64/linux-headers
-I. -I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/include
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/libcacard -Itrace -Itrace
-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 -fno-common -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 -fstack-protector-all
-I/usr/include/libpng12 -I/usr/include/nss3 -I/usr/include/nspr4 -pthread
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/tests -MMD -MP -MT
trace/generated-tracers.lo -MF trace/generated-tracers.d -O2 -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -g -c trace/generated-tracers.c -fPIE -o
trace/generated-tracers.o >/dev/null 2>&1
lolololololo:trace/generated-tracers.lo
libtool --mode=link --tag=CC c++ -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 -fno-common -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 -fstack-protector-all -I/usr/include/libpng12
-I/usr/include/nss3 -I/usr/include/nspr4 -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/tests -O2
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -g -Wl,--warn-common -Wl,-z,relro -Wl,-z,now
-pie -m64 -g -rpath
/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/install/linux_x86_64/lib
-no-undefined -export-syms
/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/libcacard/libcacard.syms -o
libcacard.la stubs/arch-query-cpu-def.lo stubs/clock-warp.lo
stubs/cpu-get-clock.lo stubs/cpu-get-icount.lo stubs/dump.lo
stubs/fdset-add-fd.lo stubs/fdset-find-fd.lo stubs/fdset-get-fd.lo
stubs/fdset-remove-fd.lo stubs/gdbstub.lo stubs/get-fd.lo stubs/get-vm-name.lo
stubs/iothread-lock.lo stubs/migr-blocker.lo stubs/mon-is-qmp.lo
stubs/mon-printf.lo stubs/mon-print-filename.lo stubs/mon-protocol-event.lo
stubs/mon-set-error.lo stubs/pci-drive-hot-add.lo stubs/qtest.lo stubs/reset.lo
stubs/runstate-check.lo stubs/set-fd-handler.lo stubs/slirp.lo stubs/sysbus.lo
stubs/uuid.lo stubs/vm-stop.lo stubs/vmstate.lo stubs/cpus.lo stubs/kvm.lo
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
libcacard/vcardt.lo util/osdep.lo util/cutils.lo util/qemu-timer-common.lo
util/error.lo util/qemu-error.lo util/oslib-posix.lo util/qemu-thread-posix.lo
trace/generated-events.lo trace/default.lo trace/control.lo
trace/generated-tracers.lo -Wc,-fstack-protector-all -lssl3 -lsmime3 -lnss3
-lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl -pthread -lgthread-2.0 -lrt
-lglib-2.0
/home/talz/workspace/mmmmm/EZdk-nps/tools/3rd-party-libs/ccache/ccache_output/bin/ccache
/usr/bin/gcc -I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/tcg
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/tcg/i386
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/linux-headers
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/build/linux_x86_64/linux-headers
-I. -I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/include
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/libcacard -Itrace -Itrace
-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 -fno-common -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 -fstack-protector-all
-I/usr/include/libpng12 -I/usr/include/nss3 -I/usr/include/nspr4 -pthread
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/tests -I
qga/qapi-generated -MMD -MP -MT trace/generated-events.o -MF
trace/generated-events.d -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -c -o
trace/generated-events.o trace/generated-events.c
/home/talz/workspace/mmmmm/EZdk-nps/tools/3rd-party-libs/ccache/ccache_output/bin/ccache
/usr/bin/gcc -I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/tcg
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/tcg/i386
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/linux-headers
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/build/linux_x86_64/linux-headers
-I. -I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/include
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/libcacard -Itrace -Itrace
-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 -fno-common -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 -fstack-protector-all
-I/usr/include/libpng12 -I/usr/include/nss3 -I/usr/include/nspr4 -pthread
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/home/talz/workspace/mmmmm/EZdk-nps/tools/qemu/qemu/tests -I
qga/qapi-generated -MMD -MP -MT trace/generated-tracers.o -MF
trace/generated-tracers.d -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -c -o
trace/generated-tracers.o trace/generated-tracers.c
rm -f libqemustub.a && ar rcs libqemustub.a stubs/arch-query-cpu-def.o
stubs/clock-warp.o stubs/cpu-get-clock.o stubs/cpu-get-icount.o stubs/dump.o
stubs/fdset-add-fd.o stubs/fdset-find-fd.o stubs/fdset-get-fd.o
stubs/fdset-remove-fd.o stubs/gdbstub.o stubs/get-fd.o stubs/get-vm-name.o
stubs/iothread-lock.o stubs/migr-blocker.o stubs/mon-is-qmp.o
stubs/mon-printf.o stubs/mon-print-filename.o stubs/mon-protocol-event.o
stubs/mon-set-error.o stubs/pci-drive-hot-add.o stubs/qtest.o stubs/reset.o
stubs/runstate-check.o stubs/set-fd-handler.o stubs/slirp.o stubs/sysbus.o
stubs/uuid.o stubs/vm-stop.o stubs/vmstate.o stubs/cpus.o stubs/kvm.o
libtool: link: gcc -shared stubs/.libs/arch-query-cpu-def.o
stubs/.libs/clock-warp.o stubs/.libs/cpu-get-clock.o
stubs/.libs/cpu-get-icount.o stubs/.libs/dump.o stubs/.libs/fdset-add-fd.o
stubs/.libs/fdset-find-fd.o stubs/.libs/fdset-get-fd.o
stubs/.libs/fdset-remove-fd.o stubs/.libs/gdbstub.o stubs/.libs/get-fd.o
stubs/.libs/get-vm-name.o stubs/.libs/iothread-lock.o
stubs/.libs/migr-blocker.o stubs/.libs/mon-is-qmp.o stubs/.libs/mon-printf.o
stubs/.libs/mon-print-filename.o stubs/.libs/mon-protocol-event.o
stubs/.libs/mon-set-error.o stubs/.libs/pci-drive-hot-add.o stubs/.libs/qtest.o
stubs/.libs/reset.o stubs/.libs/runstate-check.o stubs/.libs/set-fd-handler.o
stubs/.libs/slirp.o stubs/.libs/sysbus.o stubs/.libs/uuid.o
stubs/.libs/vm-stop.o stubs/.libs/vmstate.o stubs/.libs/cpus.o
stubs/.libs/kvm.o libcacard/.libs/cac.o libcacard/.libs/event.o
libcacard/.libs/vcard.o libcacard/.libs/vreader.o
libcacard/.libs/vcard_emul_nss.o libcacard/.libs/vcard_emul_type.o
libcacard/.libs/card_7816.o libcacard/.libs/vcardt.o util/.libs/osdep.o
util/.libs/cutils.o util/.libs/qemu-timer-common.o util/.libs/error.o
util/.libs/qemu-error.o util/.libs/oslib-posix.o util/.libs/qemu-thread-posix.o
trace/.libs/generated-events.o trace/.libs/default.o trace/.libs/control.o
trace/.libs/generated-tracers.o -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4
-lplc4 -lnspr4 -lpthread -ldl -lgthread-2.0 -lrt -lglib-2.0 -m64 -pthread
-pthread -Wl,--warn-common -Wl,-z -Wl,relro -Wl,-z -Wl,now -m64
-fstack-protector-all -pthread -pthread -Wl,-soname -Wl,libcacard.so.0 -o
.libs/libcacard.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libcacard.so.0" && ln -s
"libcacard.so.0.0.0" "libcacard.so.0")
libtool: link: (cd ".libs" && rm -f "libcacard.so" && ln -s
"libcacard.so.0.0.0" "libcacard.so")
libtool: link: ar cru .libs/libcacard.a stubs/arch-query-cpu-def.o
stubs/clock-warp.o stubs/cpu-get-clock.o stubs/cpu-get-icount.o stubs/dump.o
stubs/fdset-add-fd.o stubs/fdset-find-fd.o stubs/fdset-get-fd.o
stubs/fdset-remove-fd.o stubs/gdbstub.o stubs/get-fd.o stubs/get-vm-name.o
stubs/iothread-lock.o stubs/migr-blocker.o stubs/mon-is-qmp.o
stubs/mon-printf.o stubs/mon-print-filename.o stubs/mon-protocol-event.o
stubs/mon-set-error.o stubs/pci-drive-hot-add.o stubs/qtest.o stubs/reset.o
stubs/runstate-check.o stubs/set-fd-handler.o stubs/slirp.o stubs/sysbus.o
stubs/uuid.o stubs/vm-stop.o stubs/vmstate.o stubs/cpus.o stubs/kvm.o
libcacard/cac.o libcacard/event.o libcacard/vcard.o libcacard/vreader.o
libcacard/vcard_emul_nss.o libcacard/vcard_emul_type.o libcacard/card_7816.o
libcacard/vcardt.o util/osdep.o util/cutils.o util/qemu-timer-common.o
util/error.o util/qemu-error.o util/oslib-posix.o util/qemu-thread-posix.o
trace/generated-events.o trace/default.o trace/control.o
trace/generated-tracers.o
ar: trace/generated-tracers.o: No such file or directory
make[2]: *** [libcacard.la] Error 1
make[2]: *** Waiting for unfinished jobs....
ooooooooooooo:trace/generated-tracers.o
ooooooooooooo:trace/generated-events.o
as you can see trace/generated-tracers.o target is being built after
trace/generated-tracers.la target.
Trace/generated-tracers.la is finished and after it trace/generated-tracers.o
is being built.
Libcacard.la has a dependency only to .la files and not .o files.
-----Original Message-----
From: Tal Zilcer
Sent: Tuesday, June 10, 2014 12:42 PM
To: 'Bug 1324112'
Subject: RE: [Qemu-devel] [Bug 1324112] [NEW] qemu parallel building error on
libcacard.la
I didn’t mention it but im building qemu out of the source tree(running the
configure in a different directory).
I tried to find the missing dependency but no luck.
The build error keeps happening Here is the end of the log(please note that I
don’t see here "CC trace/generated-events.o"):.
lt CC trace/generated-events.lo
GEN qemu-doc.html
GEN qemu.1
GEN qemu-img.1
CC qapi-types.o
CC qapi-visit.o
CC qga/commands.o
CPP optionrom/multiboot.asm
CPP optionrom/linuxboot.asm
CC qga/guest-agent-command-state.o
CC qga/main.o
CC qga/commands-posix.o
CPP optionrom/kvmvapic.asm
AS optionrom/multiboot.o
AS optionrom/linuxboot.o
CC qga/channel-posix.o
CC qga/qapi-generated/qga-qapi-types.o
AS optionrom/kvmvapic.o
Building optionrom/multiboot.img
Building optionrom/linuxboot.img
Building optionrom/multiboot.raw
Building optionrom/linuxboot.raw
Building optionrom/kvmvapic.img
CC qga/qapi-generated/qga-qapi-visit.o
Signing optionrom/multiboot.bin
Signing optionrom/linuxboot.bin
CC qga/qapi-generated/qga-qmp-marshal.o
CC qemu-img.o
CC qmp-marshal.o
LINK qemu-bridge-helper
install -c -m 0644
/home/talz/workspace/tools/qemu/qemu/sysconfigs/target/target-x86_64.conf
"/home/talz/workspace/ /tools/qemu/install/linux_x86_64/etc/qemu"
Building optionrom/kvmvapic.raw
Signing optionrom/kvmvapic.bin
lt CC trace/generated-tracers.lo
lt LINK libcacard.la
AR libqemustub.a
CC trace/generated-tracers.o
ar: .libs/libcacard.a: Error reading trace/generated-events.o: No such file or
directory
make[2]: *** [libcacard.la] Error 1
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Stefan Hajnoczi
Sent: Monday, June 09, 2014 4:38 PM
To: Tal Zilcer
Subject: Re: [Qemu-devel] [Bug 1324112] [NEW] qemu parallel building error on
libcacard.la
On Wed, Jun 04, 2014 at 03:33:34AM -0000, tal zilcer wrote:
> Version 2.0.0
>
> Isn’t the libcacard Makefile run as a recursive make?
> how do you keep the dependencies between two different makes(libcacard and
> trace)?
In qemu.git/master:Makefile I see:
ifeq ($(CONFIG_SMARTCARD_NSS),y)
include $(SRC_PATH)/libcacard/Makefile
endif
That doesn't look like recursive make to me, but maybe I'm missing
something.
Stefan
--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1324112
Title:
qemu parallel building error on libcacard.la
Status in QEMU:
New
Bug description:
hi,
im building qemu with a large make -j value(9).
sometimes the build fails because of an error:
libtool: link: ar cru .libs/libcacard.a stubs/arch-query-cpu-def.o
stubs/clock-warp.o stubs/cpu-get-clock.o stubs/cpu-get-icount.o stubs/dump.o
stubs/fdset-add-fd.o stubs/fdset-find-fd.o stubs/fdset-get-fd.o
stubs/fdset-remove-fd.o stubs/gdbstub.o stubs/get-fd.o stubs/get-vm-name.o
stubs/iothread-lock.o stubs/migr-blocker.o stubs/mon-is-qmp.o
stubs/mon-printf.o stubs/mon-print-filename.o stubs/mon-protocol-event.o
stubs/mon-set-error.o stubs/pci-drive-hot-add.o stubs/qtest.o stubs/reset.o
stubs/runstate-check.o stubs/set-fd-handler.o stubs/slirp.o stubs/sysbus.o
stubs/uuid.o stubs/vm-stop.o stubs/vmstate.o stubs/cpus.o stubs/kvm.o
libcacard/cac.o libcacard/event.o libcacard/vcard.o libcacard/vreader.o
libcacard/vcard_emul_nss.o libcacard/vcard_emul_type.o libcacard/card_7816.o
libcacard/vcardt.o util/osdep.o util/cutils.o util/qemu-timer-common.o
util/error.o util/qemu-error.o util/oslib-posix.o util/qemu-thread-posix.o
trace/generated-events.o trace/default.o trace/control.o
trace/generated-tracers.o
ar: trace/generated-events.o: No such file or directory
make[2]: *** [libcacard.la] Error 1
i see the build of generated-events.o in the log before the ar command.
because of the -j it was probably not completed yet.
the generated-events.o build command:
/usr/bin/gcc -I/home/npsdb/qemu/qemu/tcg -I/home/npsdb/qemu/qemu/tcg/i386
-I/home/npsdb/qemu/qemu/linux-headers
-I/home/npsdb/qemu/build/linux_x86_64/linux-headers -I. -I/home/npsdb/qemu/qemu
-I/home/npsdb/jenkins/qemu/qemu/include -I/home/npsdb/qemu/qemu/libcacard
-Itrace -Itrace -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 -fno-common
-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
-fstack-protector-all -I/usr/include/libpng12 -I/usr/include/nss3
-I/usr/include/nspr4 -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/home/npsdb/qemu/qemu/tests -I qga/qapi-generated -MMD -MP -MT
trace/generated-events.o -MF trace/generated-events.d -O2 -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -g -c -o trace/generated-events.o
trace/generated-events.c
must be a race condition in the makefile because of a missing dependency.
i tried to find it but it was a little bit complicated to me.
thanks,
tal
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1324112/+subscriptions
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1324112
Title:
qemu parallel building error on libcacard.la
Status in QEMU:
New
Bug description:
hi,
im building qemu with a large make -j value(9).
sometimes the build fails because of an error:
libtool: link: ar cru .libs/libcacard.a stubs/arch-query-cpu-def.o
stubs/clock-warp.o stubs/cpu-get-clock.o stubs/cpu-get-icount.o stubs/dump.o
stubs/fdset-add-fd.o stubs/fdset-find-fd.o stubs/fdset-get-fd.o
stubs/fdset-remove-fd.o stubs/gdbstub.o stubs/get-fd.o stubs/get-vm-name.o
stubs/iothread-lock.o stubs/migr-blocker.o stubs/mon-is-qmp.o
stubs/mon-printf.o stubs/mon-print-filename.o stubs/mon-protocol-event.o
stubs/mon-set-error.o stubs/pci-drive-hot-add.o stubs/qtest.o stubs/reset.o
stubs/runstate-check.o stubs/set-fd-handler.o stubs/slirp.o stubs/sysbus.o
stubs/uuid.o stubs/vm-stop.o stubs/vmstate.o stubs/cpus.o stubs/kvm.o
libcacard/cac.o libcacard/event.o libcacard/vcard.o libcacard/vreader.o
libcacard/vcard_emul_nss.o libcacard/vcard_emul_type.o libcacard/card_7816.o
libcacard/vcardt.o util/osdep.o util/cutils.o util/qemu-timer-common.o
util/error.o util/qemu-error.o util/oslib-posix.o util/qemu-thread-posix.o
trace/generated-events.o trace/default.o trace/control.o
trace/generated-tracers.o
ar: trace/generated-events.o: No such file or directory
make[2]: *** [libcacard.la] Error 1
i see the build of generated-events.o in the log before the ar command.
because of the -j it was probably not completed yet.
the generated-events.o build command:
/usr/bin/gcc -I/home/npsdb/qemu/qemu/tcg -I/home/npsdb/qemu/qemu/tcg/i386
-I/home/npsdb/qemu/qemu/linux-headers
-I/home/npsdb/qemu/build/linux_x86_64/linux-headers -I. -I/home/npsdb/qemu/qemu
-I/home/npsdb/jenkins/qemu/qemu/include -I/home/npsdb/qemu/qemu/libcacard
-Itrace -Itrace -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 -fno-common
-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
-fstack-protector-all -I/usr/include/libpng12 -I/usr/include/nss3
-I/usr/include/nspr4 -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/home/npsdb/qemu/qemu/tests -I qga/qapi-generated -MMD -MP -MT
trace/generated-events.o -MF trace/generated-events.d -O2 -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -g -c -o trace/generated-events.o
trace/generated-events.c
must be a race condition in the makefile because of a missing dependency.
i tried to find it but it was a little bit complicated to me.
thanks,
tal
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1324112/+subscriptions