From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUAcg-00072E-KE for qemu-devel@nongnu.org; Tue, 15 May 2012 01:48:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUAce-0005TG-No for qemu-devel@nongnu.org; Tue, 15 May 2012 01:48:38 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:58885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUAce-0005T1-HF for qemu-devel@nongnu.org; Tue, 15 May 2012 01:48:36 -0400 Message-ID: <4FB1EE31.5060608@weilnetz.de> Date: Tue, 15 May 2012 07:48:33 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1337059639-4936-1-git-send-email-sw@weilnetz.de> <4FB1EAC0.4040604@weilnetz.de> In-Reply-To: <4FB1EAC0.4040604@weilnetz.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1.1] tests: Fix linker failure for fdc-test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Anthony Liguori , qemu-devel@nongnu.org Am 15.05.2012 07:33, schrieb Stefan Weil: > Am 15.05.2012 07:27, schrieb Stefan Weil: >> When QEMU was built with the simple trace backend, linking failed: >> LINK tests/fdc-test oslib-posix.o: In function `trace_qemu_memalign': >> qemu/bin/debug/x86/./trace.h:31: undefined reference to `trace3' >> oslib-posix.o: In function `trace_qemu_vmalloc': >> qemu/bin/debug/x86/./trace.h:35: undefined reference to `trace2' >> oslib-posix.o: In function `trace_qemu_vfree': >> qemu/bin/debug/x86/./trace.h:39: undefined reference to `trace1' >> collect2: error: ld returned 1 exit status make: *** [tests/fdc-test] >> Fehler 1 Signed-off-by: Stefan Weil --- >> tests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) >> diff --git a/tests/Makefile b/tests/Makefile index 20e4da9..f1b317a >> 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -68,7 +68,7 @@ >> tests/test-qmp-commands$(EXESUF): tests/test-qmp-commands.o >> tests/test-qmp-marsh tests/rtc-test$(EXESUF): tests/rtc-test.o >> $(trace-obj-y) tests/m48t59-test$(EXESUF): tests/m48t59-test.o >> $(trace-obj-y) -tests/fdc-test$(EXESUF): tests/fdc-test.o >> tests/libqtest.o +tests/fdc-test$(EXESUF): tests/fdc-test.o >> tests/libqtest.o $(trace-obj-y) # QTest rules > > ... and after this linker failure was fixed, the test reports an error: > > GTESTER check-qtest-sparc64 > ** > ERROR:/home/stefan/src/qemu/qemu.org/qemu/tests/fdc-test.c:120:test_media_change: > assertion failed ((dir) & (DSKCHG) == 0): (0x00000080 == 0x00000000) > GTester: last random seed: R02Sd438078cdc65f1843886ab2983bf20ba > ** > ERROR:/home/stefan/src/qemu/qemu.org/qemu/tests/fdc-test.c:120:test_media_change: > assertion failed ((dir) & (DSKCHG) == 0): (0x00000080 == 0x00000000) > GTester: last random seed: R02Sb6ef6a57dc94cacf2d7ba4e3bd34b7a4 > > I like buildbots. They also fail in the same test with a timeout, > that's why I had run this check. > > Regards, > Stefan W. The failure was caused by old object files. Obviously there are missing dependencies in tests/Makefile, therefore running "make check" before running "make" can cause harm. When I run "make && make check", all is fine. Regards, Stefan W.