Re: Problem with buildworld with CLANG

From: Tom Evans <tevans.uk_at_googlemail.com>
Date: Wed, 23 Jun 2010 14:15:48 +0100
On Wed, Jun 23, 2010 at 1:38 PM, Cristiano Deana
<cristiano.deana_at_gmail.com> wrote:
> # uname -a
> FreeBSD test 9.0-CURRENT FreeBSD 9.0-CURRENT #3: Tue Jun 22 16:04:38
> CEST 2010     root_at_test:/usr/obj/usr/src/sys/GENERIC  amd64
>
> # cat /etc/src.conf
> #NO_WERROR=
> #WERROR=
> CC=     clang
> CXX=    clang++
>
> sources from this morning, i got this error:
>
> clang -O2 -pipe  -I/usr/src/lib/libc/include
> -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/amd64 -DNLS
> -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa
> -DINET6 -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv
> -D_ACL_PRIVATE -DPOSIX_MISTAKE
> -I/usr/src/lib/libc/../../contrib/tzcode/stdtime
> -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES
> -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING
> -DSYMBOL_VERSIONING -std=gnu99  -Wsystem-headers -Werror -Wall
> -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c
> /usr/src/lib/libc/sys/stack_protector.c
> /usr/src/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
>

Top of the '[TESTING] Clang..' email:

> hi,
>
> ClangBSD was updated to LLVM/clang revision 104832 which is what we aim to import
> into HEAD in roughly a week. We would like the initial import to be as painless
> as possible and therefore we ask you to test ClangBSD to assure that the revision
> we are importing does not have some really embarassing bugs.
>
> How to do it (on i386 and amd64):
>
> 0) install fresh devel/llvm-devel port
>
> 1) svn co http://svn.freebsd.org/base/projects/clangbsd src
>
> 2) echo NO_WERROR= >> /etc/src.conf ; echo WERROR= >> /etc/src.conf
>
> 3) cd src && make buildworld

So uncomment your src.conf lines that are incompatible.

Cheers

Tom
Received on Wed Jun 23 2010 - 11:15:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:04 UTC