Received: from eggs.gnu.org ([2001:4830:134:3::10]:46132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsqG1-0003Fk-9R for qemu-devel@nongnu.org; Thu, 14 May 2015 06:20:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsqFx-0000WB-4p for qemu-devel@nongnu.org; Thu, 14 May 2015 06:20:49 -0400 Received: from indium.canonical.com ([91.189.90.7]:37433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsqFw-0000V4-S4 for qemu-devel@nongnu.org; Thu, 14 May 2015 06:20:44 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1YsqFv-0005LD-P8 for ; Thu, 14 May 2015 10:20:43 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id BCDB02E80C3 for ; Thu, 14 May 2015 10:20:43 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 14 May 2015 10:13:50 -0000 From: Peter Maydell Sender: bounces@canonical.com References: <20150509181946.28678.5025.malonedeb@soybean.canonical.com> Message-Id: <20150514101350.23903.29140.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1453436] Re: Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data Reply-To: Bug 1453436 <1453436@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org It's /opt/X11/lib/libpixman-1.dylib and /opt/X11/include/pixman-1/ for me, but yes, it's possible I've got that from somewhere other than XQuartz. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1453436 Title: Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data Status in QEMU: New Bug description: Trying to build qemu on my system fails during linking with the error: Undefined symbols for architecture x86_64: "___emutls_v.prng_state", referenced from: _main in region-test.o __GLOBAL__sub_I_65535_0_region_test.c in region-test.o "___emutls_v.prng_state_data", referenced from: _main in region-test.o __GLOBAL__sub_I_65535_0_region_test.c in region-test.o My setup: OS: OS X 10.10.3, 64bit gcc: 5.1.0 clang: 6.1.0 configure command: configure --prefix=3D"$HOME/local" --cc=3Dclang --host-cc=3Dclang --cxx=3Dclang++ It makes no difference whether I try to build in the source directory or = somewhere else. It is the same for qemu release 2.3.0 and qemu git@f8340b360b9bc29d48716b= a8aca79df2b9544979. Now this is clearly happening in the pixman submodule, but it does not seem to be a pixman issue, as I can clone git://anongit.freedesktop.org/pixman @cf086d4949092861dc3729465a3881d229cc1060 and build it without any errors with just : configure --prefix=3D"$HOME/local" make It also works with configure --prefix=3D"$HOME/local" CC=3Dclang CXX=3Dclang++ make although then OpenMP is disabled. Also, running nm qemu/pixman/test/utils.o gives me (amongst other stuff): 0000000000000020 C ___emutls_v.prng_state 0000000000000020 C ___emutls_v.prng_state_data So the symbols are actually there, it's really just linking that fails. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1453436/+subscriptions