Re: Problem with buildworld with CLANG

2010-06-24 Thread Tom Evans
On Thu, Jun 24, 2010 at 2:33 PM, Cristiano Deana
 wrote:
> On Thu, Jun 24, 2010 at 11:24 AM, Tom Evans  wrote:
>
>> The error in your first email was clearly a warning being promoted to
>> an error, so either you had a different error on your build with
>> NO_WERROR/WERROR, or your NO_WERROR/WERROR settings were not being
>> respected. Please retry with NO_WERROR/WERROR set in /etc/src.conf,
>> and show the resulting error.
>
> Last lines:
>
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:135:2:
> error: unsupported inline asm: input with type 'unsigned long'
> matching output with type
>      'unsigned int'
>        R1(D,A,B,C,X( 4), 5,0x5A827999L);
>        ^~~~
> In file included from
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:60:
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_locl.h:108:4:
> note: instantiated from:
>        a=ROTATE(a,s); };\
>          ^
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:135:2:
> note: instantiated from:
>        R1(D,A,B,C,X( 4), 5,0x5A827999L);
>        ^  ~
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:135:5:
> note: instantiated from:
>        R1(D,A,B,C,X( 4), 5,0x5A827999L);
>           ^
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:136:2:
> error: unsupported inline asm: input with type 'unsigned long'
> matching output with type
>      'unsigned int'
>        R1(C,D,A,B,X( 8), 9,0x5A827999L);
>        ^~~~
> In file included from
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:60:
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_locl.h:108:4:
> note: instantiated from:
>        a=ROTATE(a,s); };\
>          ^
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:136:2:
> note: instantiated from:
>        R1(C,D,A,B,X( 8), 9,0x5A827999L);
>        ^  ~
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:136:5:
> note: instantiated from:
>        R1(C,D,A,B,X( 8), 9,0x5A827999L);
>           ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 4 warnings and 20 errors generated.
> *** Error code 1
>
> Stop in /usr/src/secure/lib/libcrypto.
> *** Error code 1
>
>

So thats a completely different error than you had been reporting. I'm
afraid I don't know enough about clang to help with that one.

Cheers

Tom
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Problem with buildworld with CLANG

2010-06-24 Thread Dimitry Andric
On 2010-06-24 15:33, Cristiano Deana wrote:
> Last lines:
> 
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:135:2:
> error: unsupported inline asm: input with type 'unsigned long'
> matching output with type
>   'unsigned int'
> R1(D,A,B,C,X( 4), 5,0x5A827999L);
> ^~~~

Don't try building head with clang, it is not possible yet.  Use
clangbsd instead. :)
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Problem with buildworld with CLANG

2010-06-24 Thread Cristiano Deana
On Thu, Jun 24, 2010 at 11:24 AM, Tom Evans  wrote:

> The error in your first email was clearly a warning being promoted to
> an error, so either you had a different error on your build with
> NO_WERROR/WERROR, or your NO_WERROR/WERROR settings were not being
> respected. Please retry with NO_WERROR/WERROR set in /etc/src.conf,
> and show the resulting error.

Last lines:

/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:135:2:
error: unsupported inline asm: input with type 'unsigned long'
matching output with type
  'unsigned int'
R1(D,A,B,C,X( 4), 5,0x5A827999L);
^~~~
In file included from
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:60:
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_locl.h:108:4:
note: instantiated from:
a=ROTATE(a,s); };\
  ^
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:135:2:
note: instantiated from:
R1(D,A,B,C,X( 4), 5,0x5A827999L);
^  ~
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:135:5:
note: instantiated from:
R1(D,A,B,C,X( 4), 5,0x5A827999L);
   ^
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:136:2:
error: unsupported inline asm: input with type 'unsigned long'
matching output with type
  'unsigned int'
R1(C,D,A,B,X( 8), 9,0x5A827999L);
^~~~
In file included from
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:60:
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_locl.h:108:4:
note: instantiated from:
a=ROTATE(a,s); };\
  ^
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:136:2:
note: instantiated from:
R1(C,D,A,B,X( 8), 9,0x5A827999L);
^  ~
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/md4/md4_dgst.c:136:5:
note: instantiated from:
R1(C,D,A,B,X( 8), 9,0x5A827999L);
   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
4 warnings and 20 errors generated.
*** Error code 1

Stop in /usr/src/secure/lib/libcrypto.
*** Error code 1


-- 
Cris, member of G.U.F.I
Italian FreeBSD User Group
http://www.gufi.org/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Problem with buildworld with CLANG

2010-06-24 Thread Tom Evans
On Wed, Jun 23, 2010 at 4:52 PM, Cristiano Deana
 wrote:
> On Wed, Jun 23, 2010 at 3:15 PM, Tom Evans  wrote:
>
>> 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):
>
>>> 1) svn co http://svn.freebsd.org/base/projects/clangbsd src
>
> i already did it and it worked, two weeks ago.
> now i wanted to try with clan in system
>
>>> 2) echo NO_WERROR= >> /etc/src.conf ; echo WERROR= >> /etc/src.conf
>
>> So uncomment your src.conf lines that are incompatible.
>
> forgot to tell before. i tried with and without those lines.
>

The error in your first email was clearly a warning being promoted to
an error, so either you had a different error on your build with
NO_WERROR/WERROR, or your NO_WERROR/WERROR settings were not being
respected. Please retry with NO_WERROR/WERROR set in /etc/src.conf,
and show the resulting error.

Cheers

Tom
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Problem with buildworld with CLANG

2010-06-23 Thread Cristiano Deana
On Wed, Jun 23, 2010 at 3:15 PM, Tom Evans  wrote:

> 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):

>> 1) svn co http://svn.freebsd.org/base/projects/clangbsd src

i already did it and it worked, two weeks ago.
now i wanted to try with clan in system

>> 2) echo NO_WERROR= >> /etc/src.conf ; echo WERROR= >> /etc/src.conf

> So uncomment your src.conf lines that are incompatible.

forgot to tell before. i tried with and without those lines.

-- 
Cris, member of G.U.F.I
Italian FreeBSD User Group
http://www.gufi.org/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Problem with buildworld with CLANG

2010-06-23 Thread Tom Evans
On Wed, Jun 23, 2010 at 1:38 PM, Cristiano Deana
 wrote:
> # uname -a
> FreeBSD test 9.0-CURRENT FreeBSD 9.0-CURRENT #3: Tue Jun 22 16:04:38
> CEST 2010     r...@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
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Problem with buildworld with CLANG

2010-06-23 Thread René Ladan
2010/6/23 Cristiano Deana :
> # uname -a
> FreeBSD test 9.0-CURRENT FreeBSD 9.0-CURRENT #3: Tue Jun 22 16:04:38
> CEST 2010     r...@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:
>
[.. error ..]

If you are using HEAD sources, then an error-free build with clang is
not guaranteed.
There is a separate branch of HEAD, clangbsd, which can be built (almost)
completely with clang, see http://wiki.freebsd.org/BuildingFreeBSDWithClang

Rene
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Problem with buildworld with CLANG

2010-06-23 Thread Cristiano Deana
# uname -a
FreeBSD test 9.0-CURRENT FreeBSD 9.0-CURRENT #3: Tue Jun 22 16:04:38
CEST 2010 r...@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

-- 
Cris, member of G.U.F.I
Italian FreeBSD User Group
http://www.gufi.org/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"