From owner-freebsd-current@FreeBSD.ORG Thu May 20 14:10:24 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDE00106566C for ; Thu, 20 May 2010 14:10:24 +0000 (UTC) (envelope-from ambrosehua@gmail.com) Received: from mail-qy0-f188.google.com (mail-qy0-f188.google.com [209.85.221.188]) by mx1.freebsd.org (Postfix) with ESMTP id 7F4C58FC18 for ; Thu, 20 May 2010 14:10:24 +0000 (UTC) Received: by qyk26 with SMTP id 26so7641250qyk.28 for ; Thu, 20 May 2010 07:10:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=ziGr+8J7Ni2rnwZSNu1lb8i4AY92w7Ng0wjaZAdWnAo=; b=tAv3o/gNZSf+akDsiK615JV9rxpM9vhkp0IC0T77EjozSSxaXXW8oxP3VayEoXAZkj S0ncuLaMJ5F+F12U7wqdNr74pCElgg0OWwznQIaY1cOHF3FqfVKqchfR/ZP6PGlOEycE x2jtSdRVtr1BWaDE7j3cU9QC3shWPambp4ywM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=RRuEpyN2Zc9XyWcO9onn9mxmcRxFnWhUupNM5APhtTr4UoONPHpIzpsHadZlp3IAC/ uyH/28f6QefaClVzi2+KHDs5HIpTLw/2VJCip47u9RmOVXS7RwUoUPK9l4B9we52d3Xo v2hDIkyUxcvIEZwuJcjKL3OO9sPLw05aNAh+I= MIME-Version: 1.0 Received: by 10.224.68.1 with SMTP id t1mr83147qai.14.1274364623463; Thu, 20 May 2010 07:10:23 -0700 (PDT) Received: by 10.229.98.205 with HTTP; Thu, 20 May 2010 07:10:23 -0700 (PDT) In-Reply-To: <20100520072120.GA36958@freebsd.org> References: <20100520072120.GA36958@freebsd.org> Date: Thu, 20 May 2010 22:10:23 +0800 Message-ID: From: ambrosehuang ambrose To: Roman Divacky X-Mailman-Approved-At: Thu, 20 May 2010 15:07:28 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org Subject: Re: clangBSD build error X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 14:10:24 -0000 I found my clang version is : [root@lateaxfreebsd src]# clang --version clang version 2.0 (trunk) Target: *x86_64-portbld-freebsd8.0* Thread model: posix svn revision is r10379_1 in PORTS I think maybe you can use the llvm-devel in PORTS to reproduce this I try to update clang to the latest version with make BOOTSTRAP=1 _CKSUMFILES="", but it seems the patch file confilcts with latest code? Could you tell me how to bypass the patching step ? 2010/5/20 Roman Divacky > > I tried building clangbsd yesterday with clang/llvm r104146 and it worked > ok. > > and it still does: > > pes ~/clangbsd$ clang --version > clang version 2.0 (trunk 104146) > Target: x86_64-unknown-freebsd8.0 > Thread model: posix > > > pes ~/clangbsd$ clang -c lib/libc/stdlib/malloc.c -I lib/libc/include/ > -DMAXPAGESIZES=1 && echo success > lib/libc/stdlib/malloc.c:5408:12: warning: implicit declaration of function > 'getpagesizes' is invalid in C99 > [-Wimplicit-function-declaration] > nsizes = getpagesizes(pagesizes, MAXPAGESIZES); > ^ > 1 warning generated. > success > > can you retry with newer version? or show me how exactly to reproduce this? > > On Wed, May 19, 2010 at 11:46:37PM +0800, ambrosehuang ambrose wrote: > > building clangBSD revision > > URL: http://svn.freebsd.org/base/projects/clangbsd > > Repository Root: http://svn.freebsd.org/base > > Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > > Revision: 208300 > > Node Kind: directory > > Schedule: normal > > Last Changed Author: rdivacky > > Last Changed Rev: 208260 > > Last Changed Date: 2010-05-18 18:21:49 +0800 (Tue, 18 May 2010) > > > > with llvm-devel(r103179) on freebsd 8 stable amd64 according to clangBSD > > wiki failed with following message: > > > > make -j4 buildworld > > > ------------------------------------------------------------------------------------------------------------------------------------------------- > > ....................... > > /usr/src.svn/src/lib/libc/stdlib/malloc.c:1098:38: error: 'tls_model' > > attribute ignored > > static __thread arena_t *arenas_map TLS_MODEL; > > ^ > > /usr/src.svn/src/lib/libc/stdlib/malloc.c:240:37: note: instantiated > from: > > # define TLS_MODEL __attribute__((tls_model("initial-exec"))) > > ^ > > /usr/src.svn/src/lib/libc/stdlib/malloc.c:1103:38: error: 'tls_model' > > attribute ignored > > static __thread tcache_t *tcache_tls TLS_MODEL; > > ^ > > /usr/src.svn/src/lib/libc/stdlib/malloc.c:240:37: note: instantiated > from: > > # define TLS_MODEL __attribute__((tls_model("initial-exec"))) > > ^ > > /usr/src.svn/src/lib/libc/stdlib/malloc.c:1122:37: error: 'tls_model' > > attribute ignored > > static __thread bool mmap_unaligned TLS_MODEL; > > ^ > > /usr/src.svn/src/lib/libc/stdlib/malloc.c:240:37: note: instantiated > from: > > # define TLS_MODEL __attribute__((tls_model("initial-exec"))) > > > -------------------------------------------------------------------------------------------------------------------------------------------------- > > > > it seems that clang does NOT support tls_model attribute, I'm not sure. > > > > Does anyone meet similar error ? > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to " > freebsd-current-unsubscribe@freebsd.org" >