From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEFsk-0000zQ-Hw for qemu-devel@nongnu.org; Thu, 22 Jan 2015 06:25:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEFsh-0002nZ-5C for qemu-devel@nongnu.org; Thu, 22 Jan 2015 06:25:02 -0500 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:35733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEFsg-0002nB-VY for qemu-devel@nongnu.org; Thu, 22 Jan 2015 06:24:59 -0500 Received: by mail-we0-f172.google.com with SMTP id k11so1157549wes.3 for ; Thu, 22 Jan 2015 03:24:58 -0800 (PST) Received: from crunchbang (204.Red-79-145-9.dynamicIP.rima-tde.net. [79.145.9.204]) by mx.google.com with ESMTPSA id cg8sm3593738wjc.1.2015.01.22.03.24.57 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 22 Jan 2015 03:24:57 -0800 (PST) Date: Thu, 22 Jan 2015 12:24:52 +0100 From: Marc =?UTF-8?B?TWFyw60=?= Message-ID: <20150122122452.618000f5@crunchbang> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] acpi tcg test errors when compiled with clang List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel While I was searching for other errors in make check, I set up a few machines on top of virtualbox to compile and check qemu master, and make check failed in a few of them when compiling with clang (< 3.5) (gcc works perfectly). I found two errors in acpi/tcg test in tests/bios-tables-test.c --- Error 1 --- Log (sometimes the first, sometimes the second): /i386/acpi/tcg: [I 1421766735.433486] OPENED {"QMP": {"version": {"qemu": {"micro": 50, "minor": 2, "major": 2}, "package": ""}, "capabilities": []}}{"execute": "qmp_capabilities"} {"return": {}}[R +0.027951] readb 0x7c10 [S +0.028104] OK 0x0000000000000000 [R +0.028267] readb 0x7c11 [S +0.028290] OK 0x0000000000000000 Broken pipe /i386/acpi/tcg: [I 1421766738.230861] OPENED {"QMP": {"version": {"qemu": {"micro": 50, "minor": 2, "major": 2}, "package": ""}, "capabilities": []}}{"execute": "qmp_capabilities"} {"return": {}}Broken pipe Platforms it failed (all on top of Virtualbox): - Ubuntu 14.04.1 Linux 3.13.0 i386 Clang 3.4. Had to configure with -disable-werror because of "clang: error: argument unused during compilation: '-nopie'". --- Error 2 --- Log: /i386/acpi/tcg: [I 1421845839.538638] OPENED {"QMP": {"version": {"qemu": {"micro": 50, "minor": 2, "major": 2}, "package": ""}, "capabilities": []}}{"execute": "qmp_capabilities"} {"return": {}}[R +0.025626] readb 0x7c10 [S +0.025858] OK 0x0000000000000000 [R +0.026287] readb 0x7c11 [S +0.026506] OK 0x0000000000000000 /home/markmb/qemu/cpu-exec.c:550:&: Object 0xb84dc1a0 is not an instance of type 8=EF=BF=BD@=EF=BF=BDx=EF=BF=BD@=EF=BF=BDh=04@=EF=BF=BDh=04= @=EF=BF=BD Platforms it failed (all on top of Virtualbox): - Debian 7.8.0 Linux 3.2.0 i386 Clang 3.0-6 - Ubuntu 12.04 Linux 3.13.0 i386 Clang 3.0-6 I tried in other setups with Clang 3.5 and no errors. I tried with x86_64 virtualized systems and no errors. I tried in a native x86_64 (host for all tests. Debian 7 Linux 3.2.65 clang 3.0-6) and did not fail. I could not test in a native i386. Maybe it's not important as it just happens with old clangs, or maybe you want to give it a look. Thanks Marc