Date: Thu, 20 May 2010 17:39:09 +0800 From: Vanilla Hsu <vanilla@fatpipi.com> To: Roman Divacky <rdivacky@freebsd.org> Cc: freebsd-current@freebsd.org, ambrosehuang ambrose <ambrosehua@gmail.com> Subject: Re: clangBSD build error Message-ID: <AANLkTimcMzCOXI6B02SGVmI67loVDkzRLMzye6_Jnvur@mail.gmail.com> In-Reply-To: <20100520072120.GA36958@freebsd.org> References: <AANLkTikxYjqM_MKT8O9YXxtNwwgeJFmoGk2UgK9bStOU@mail.gmail.com> <20100520072120.GA36958@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I got such message since 2 weeks ago. -- /home/clangbsd/lib/libc/sys/stack_protector.c:88:19: error: format string is not a string literal (potentially insecure) [-Wformat-security] syslog(LOG_CRIT, msg); ^~~ 1 error generated. *** Error code 1 Stop in /home/clangbsd/lib/libc. -- desktop [/root] -root- clang -v clang version 2.0 (trunk) Target: x86_64-portbld-freebsd9.0 Thread model: posix 2010/5/20 Roman Divacky <rdivacky@freebsd.org> > > 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" > _______________________________________________ > 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimcMzCOXI6B02SGVmI67loVDkzRLMzye6_Jnvur>