From owner-freebsd-current@FreeBSD.ORG Thu May 20 07:24:34 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 76A86106566B for ; Thu, 20 May 2010 07:24:34 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (lev.vlakno.cz [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id 339008FC1D for ; Thu, 20 May 2010 07:24:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 8E9949CB099; Thu, 20 May 2010 09:21:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id leAsoJ8ypEoY; Thu, 20 May 2010 09:21:20 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 53C579CB151; Thu, 20 May 2010 09:21:20 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id o4K7LKCH037416; Thu, 20 May 2010 09:21:20 +0200 (CEST) (envelope-from rdivacky) Date: Thu, 20 May 2010 09:21:20 +0200 From: Roman Divacky To: ambrosehuang ambrose Message-ID: <20100520072120.GA36958@freebsd.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i 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 07:24:34 -0000 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"