Received: from eggs.gnu.org ([2001:4830:134:3::10]:60492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bych2-0007Q7-L2 for qemu-devel@nongnu.org; Mon, 24 Oct 2016 06:41:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bycgz-0002Ck-I2 for qemu-devel@nongnu.org; Mon, 24 Oct 2016 06:41:24 -0400 Received: from indium.canonical.com ([91.189.90.7]:39074) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bycgz-0002Cb-DC for qemu-devel@nongnu.org; Mon, 24 Oct 2016 06:41:21 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bycgx-0007t9-Rq for ; Mon, 24 Oct 2016 10:41:19 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id B8C872E80C9 for ; Mon, 24 Oct 2016 10:41:19 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 24 Oct 2016 10:21:57 -0000 From: Thomas Huth <1453436@bugs.launchpad.net> Reply-To: Bug 1453436 <1453436@bugs.launchpad.net> Sender: bounces@canonical.com References: <20150509181946.28678.5025.malonedeb@soybean.canonical.com> Message-Id: <20161024102157.19777.95888.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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org According to comment #4, the build finally worked, so I'm closing this ticket now. ** Changed in: qemu Status: New =3D> Won't Fix -- = 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: Won't Fix 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