Received: from eggs.gnu.org ([2001:4830:134:3::10]:40453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEn7J-0003Cw-Oq for qemu-devel@nongnu.org; Fri, 23 Jan 2015 17:54:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEn7G-0008Rx-IU for qemu-devel@nongnu.org; Fri, 23 Jan 2015 17:54:17 -0500 Received: from mail-qg0-x235.google.com ([2607:f8b0:400d:c04::235]:44176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEn7G-0008Rt-EE for qemu-devel@nongnu.org; Fri, 23 Jan 2015 17:54:14 -0500 Received: by mail-qg0-f53.google.com with SMTP id a108so71253qge.12 for ; Fri, 23 Jan 2015 14:54:14 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: <54C2C199.3060607@redhat.com> Date: Fri, 23 Jan 2015 17:54:11 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <6EF0A76B-7542-4045-B983-19076069A7F0@gmail.com> References: <4CA1A9CB-10A5-4CC9-BC96-7402E4DD78CA@gmail.com> <54C2B00D.7030307@redhat.com> <54C2B547.5010801@redhat.com> <3B3F06B4-5633-4CC7-9A32-8D2B244D0ED6@gmail.com> <54C2BF2F.7040208@redhat.com> <54C2C199.3060607@redhat.com> Subject: Re: [Qemu-devel] qemu-coroutine.c: error: thread-local storage not supported for this target List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Kevin Wolf , qemu-devel qemu-devel On Jan 23, 2015, at 4:48 PM, Paolo Bonzini wrote: >=20 >=20 > On 23/01/2015 22:37, Paolo Bonzini wrote: >>=20 >>=20 >> On 23/01/2015 22:33, Programmingkid wrote: >>>> Use clang then. >>>=20 >>> Could you provide directions on how you want me to do this? In the = configure options, this was all I found:=20 >>> --objcc=3DOBJCC use Objective-C compiler OBJCC [clang] >>=20 >> ./configure --cc=3Dclang --cxx=3Dclang++ >>=20 >> But QEMU uses "cc" and "c++" by default, not "gcc" and "g++", and on = Mac >> OS X "cc" and "c++" should be clang. So "./configure" should just = work. >=20 > Sorry, I was wrong. I missed that you are using 10.6.x. >=20 > Thread-local storage was introduced on Mac OS X in 10.7. For 10.6.x > you'll have to compile GCC 4.3 or newer yourself (or take it from > fink/homebrew/whatever the Mac folks use these days). >=20 The code that causes this problem needs to be #ifdef'ed. I'm just not = sure what the problem code is.