Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jul 2010 23:55:32 +0200
From:      Rene Ladan <rene@freebsd.org>
To:        Roman Divacky <rdivacky@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: [TESTING]: updated clang/LLVM needs testing in ClangBSD
Message-ID:  <4C40D554.7010301@freebsd.org>
In-Reply-To: <20100715174222.GA79771@freebsd.org>
References:  <20100714183834.GA19684@freebsd.org> <AANLkTik4owLZXSK-eFC2mF_ZprkZoVLAkZFrZ1K0mk2F@mail.gmail.com> <20100715174222.GA79771@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15-07-2010 19:42, Roman Divacky wrote:
> I updated clang/LLVM in clangbsd to a newer version which I believe
> will fix thas. can you rene (and everyone else) please retest with
> updated ClangBSD and report back?
> 
The updated version builds and installs fine, I'm now running the
clangbsd kernel. The clangbsd world (chrooted with "make distribution
DESTDIR=/usr/clangbsd" and "mount -t devfs devfs /usr/clangbsd/dev")
seems to work fine, some basic commands work.

Using a clang kernel with gcc kernel modules also works fine :)

Regards,
Rene
> 
> On Thu, Jul 15, 2010 at 01:33:04PM +0200, Ren? Ladan wrote:
>> 2010/7/14 Roman Divacky <rdivacky@freebsd.org>:
>>> hi,
>>>
>>> ClangBSD was updated to LLVM/clang revision r108243 which we plan to
>>> merge into HEAD. We would like that revision to be tested as much as possible
>>> and therefore we ask you to test ClangBSD to assure that the revision
>>> we are updating to 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
>>>
>> And here my buildworld fails with:
>>
>> ===> lib/clang/libclanglex (depend)
>> tblgen -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/include
>> -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/include
>> -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex
>> -I. -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/../../lib/clang/include
>> -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/include/clang/Basic
>>  -gen-clang-diags-defs -clang-component=Common
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/include/clang/Basic/Diagnostic.td
>>> DiagnosticCommonKinds.inc.h
>> tblgen -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/include
>> -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/include
>> -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex
>> -I. -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/../../lib/clang/include
>> -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/include/clang/Basic
>>  -gen-clang-diags-defs -clang-component=Lex
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/include/clang/Basic/Diagnostic.td
>>> DiagnosticLexKinds.inc.h
>> rm -f .depend
>> CC='clang -isysroot /usr/obj/usr/home/rene/freebsd/clangbsd/tmp
>> -B/usr/obj/usr/home/rene/freebsd/clangbsd/tmp/usr/lib/
>> -L/usr/obj/usr/home/rene/freebsd/clangbsd/tmp/usr/lib/' mkdep -f
>> .depend -a    -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/include
>> -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/include
>> -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex
>> -I. -I/usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/../../lib/clang/include
>> -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS
>> -D__STDC_CONSTANT_MACROS
>> -DLLVM_HOSTTRIPLE=\"amd64-undermydesk-freebsd9.0\"
>> -DCLANG_VENDOR=\"FreeBSD\ \" -DSVN_REVISION=\"108243\"
>> -DCLANG_VENDOR_SUFFIX=\"\ 20100713\"
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/HeaderMap.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/HeaderSearch.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/Lexer.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/LiteralSupport.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/MacroArgs.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/MacroInfo.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/PPCaching.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/PPDirectives.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/PPExpressions.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/PPLexerChange.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/PPMacroExpansion.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/PTHLexer.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/Pragma.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/PreprocessingRecord.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/Preprocessor.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/PreprocessorLexer.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/ScratchBuffer.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/TokenConcatenation.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/TokenLexer.cpp
>> /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex/../../../contrib/llvm/tools/clang/lib/Lex/Lexer.cpp:1110:10:
>> fatal error:
>>       'emmintrin.h' file not found
>> #include <emmintrin.h>
>>          ^
>> 1 error generated.
>> mkdep: compile failed
>> *** Error code 1
>>
>> Stop in /usr/home/rene/freebsd/clangbsd/lib/clang/libclanglex.
>> *** Error code 1
>>
>> Stop in /usr/home/rene/freebsd/clangbsd/lib/clang.
>> *** Error code 1
>>
>> Stop in /usr/home/rene/freebsd/clangbsd/lib.
>> *** Error code 1
>>
>> Stop in /usr/home/rene/freebsd/clangbsd.
>> *** Error code 1
>>
>> Stop in /usr/home/rene/freebsd/clangbsd.
>> *** Error code 1
>>
>> Stop in /usr/home/rene/freebsd/clangbsd.
>> *** Error code 1
>>
>> Stop in /usr/home/rene/freebsd/clangbsd.
>>
>> I do have CPUTYPE=nocona in /etc/make.conf, but apart from that /etc/make.conf
>> only contains port-related stuff. /etc/src.conf only contains the two
>> WERROR lines.
>>
>> acer# locate emmintrin.h
>> /usr/home/rene/freebsd/clangbsd/contrib/gcc/config/i386/.svn/prop-base/emmintrin.h.svn-base
>> /usr/home/rene/freebsd/clangbsd/contrib/gcc/config/i386/.svn/text-base/emmintrin.h.svn-base
>> /usr/home/rene/freebsd/clangbsd/contrib/gcc/config/i386/emmintrin.h
>> /usr/home/rene/freebsd/clangbsd/contrib/llvm/tools/clang/lib/Headers/.svn/text-base/emmintrin.h.svn-base
>> /usr/home/rene/freebsd/clangbsd/contrib/llvm/tools/clang/lib/Headers/emmintrin.h
>> /usr/include/clang/2.0/emmintrin.h
>> /usr/include/gcc/4.2/emmintrin.h
>> /usr/local/lib/gcc44/gcc/x86_64-portbld-freebsd9.0/4.4.5/include/emmintrin.h
>> /usr/obj/usr/src/tmp/usr/include/clang/2.0/emmintrin.h
>> /usr/obj/usr/src/tmp/usr/include/gcc/4.2/emmintrin.h
>> acer# ls -l /usr/obj/usr/home/rene/freebsd/clangbsd/tmp/usr/include/*/*/emmintrin.h
>> -rwxr-xr-x  1 root  wheel  36913 Jul 15 11:24
>> /usr/obj/usr/home/rene/freebsd/clangbsd/tmp/usr/include/clang/2.8/emmintrin.h
>> -rwxr-xr-x  1 root  wheel  42617 Oct 14  2009
>> /usr/obj/usr/home/rene/freebsd/clangbsd/tmp/usr/include/gcc/4.2/emmintrin.h
>>
>> acer# uname -a
>> FreeBSD acer 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r209980M: Tue Jul 13
>> 11:48:03 CEST 2010     rene@acer:/usr/obj/usr/src/sys/GENERIC  amd64
>>

-- 
http://www.rene-ladan.nl/

GPG fingerprint = ADBC ECCD EB5F A6B4 549F  600D 8C9E 647A E564 2BFC
(subkeys.pgp.net)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C40D554.7010301>