Re: Import of clang/LLVM about to start

From: Garrett Cooper <yanefbsd_at_gmail.com>
Date: Wed, 9 Jun 2010 15:02:14 -0700
On Wed, Jun 9, 2010 at 2:30 PM, Alexander Best
<alexbestms_at_uni-muenster.de> wrote:
> that's great news! :)
>
> just tried to do `make depend all` in usr.bin/clang and got:
>
> ===> clang (depend)
> tblgen -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver
> -I. -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/../../lib/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Driver
>  -gen-opt-parser-defs
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Driver/CC1AsOptions.td
>> CC1AsOptions.inc.h
> tblgen -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver
> -I. -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/../../lib/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Driver
>  -gen-opt-parser-defs
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Driver/CC1Options.td
>> CC1Options.inc.h
> tblgen -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver
> -I. -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/../../lib/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Basic
>  -gen-clang-diags-defs -clang-component=Common
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Basic/Diagnostic.td
>> DiagnosticCommonKinds.inc.h
> tblgen -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver
> -I. -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/../../lib/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Basic
>  -gen-clang-diags-defs -clang-component=Driver
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Basic/Diagnostic.td
>> DiagnosticDriverKinds.inc.h
> tblgen -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver
> -I. -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/../../lib/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Basic
>  -gen-clang-diags-defs -clang-component=Frontend
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Basic/Diagnostic.td
>> DiagnosticFrontendKinds.inc.h
> tblgen -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver
> -I. -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/../../lib/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Basic
>  -gen-clang-diags-defs -clang-component=Lex
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Basic/Diagnostic.td
>> DiagnosticLexKinds.inc.h
> tblgen -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver
> -I. -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/../../lib/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Basic
>  -gen-clang-diags-defs -clang-component=Sema
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Basic/Diagnostic.td
>> DiagnosticSemaKinds.inc.h
> tblgen -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver
> -I. -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/../../lib/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Driver
>  -gen-opt-parser-defs
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include/clang/Driver/Options.td
>> Options.inc.h
> rm -f .depend
> mkdep -f .depend -a
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver
> -I. -I/usr/src/usr.bin/clang/clang/../../../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\"
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver/cc1_main.cpp
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver/cc1as_main.cpp
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver/driver.cpp
> echo clang: /usr/lib/libc.a CC1AsOptions.inc.h CC1Options.inc.h
> DiagnosticCommonKinds.inc.h DiagnosticDriverKinds.inc.h
> DiagnosticFrontendKinds.inc.h DiagnosticLexKinds.inc.h
> DiagnosticSemaKinds.inc.h Options.inc.h
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libclangfrontend/libclangfrontend.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libclangdriver/libclangdriver.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libclangcodegen/libclangcodegen.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libclangsema/libclangsema.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libclangchecker/libclangchecker.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libclanganalysis/libclanganalysis.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libclangrewrite/libclangrewrite.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libclangast/libclangast.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libclangparse/libclangparse.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libclanglex/libclanglex.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libclangbasic/libclangbasic.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvminstcombine/libllvminstcombine.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmipo/libllvmipo.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmbitwriter/libllvmbitwriter.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmbitreader/libllvmbitreader.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmpowerpccodegen/libllvmpowerpccodegen.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmpowerpcasmprinter/libllvmpowerpcasmprinter.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmpowerpcinfo/libllvmpowerpcinfo.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmx86asmparser/libllvmx86asmparser.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmx86asmprinter/libllvmx86asmprinter.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmx86codegen/libllvmx86codegen.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmx86info/libllvmx86info.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmmipsasmprinter/libllvmmipsasmprinter.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmmipscodegen/libllvmmipscodegen.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmmipsinfo/libllvmmipsinfo.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmarmasmparser/libllvmarmasmparser.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmarmasmprinter/libllvmarmasmprinter.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmarmcodegen/libllvmarmcodegen.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmselectiondag/libllvmselectiondag.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmasmprinter/libllvmasmprinter.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmcodegen/libllvmcodegen.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmscalaropts/libllvmscalaropts.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmtransformutils/libllvmtransformutils.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmmc/libllvmmc.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmmcparser/libllvmmcparser.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmipa/libllvmipa.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmanalysis/libllvmanalysis.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmtarget/libllvmtarget.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmmc/libllvmmc.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmcore/libllvmcore.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmarminfo/libllvmarminfo.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmsupport/libllvmsupport.a
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmsystem/libllvmsystem.a
>>> .depend
> echo clang: /usr/lib/libstdc++.a >> .depend
> ===> clang (all)
> Warning: Object directory not changed from original /usr/src/usr.bin/clang/clang
> c++ -O2 -pipe -fno-strict-aliasing -funroll-loops -march=nocona
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver
> -I. -I/usr/src/usr.bin/clang/clang/../../../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\" -g
> -fstack-protector -fconserve-space -g -c
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver/cc1_main.cpp
> c++ -O2 -pipe -fno-strict-aliasing -funroll-loops -march=nocona
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver
> -I. -I/usr/src/usr.bin/clang/clang/../../../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\" -g
> -fstack-protector -fconserve-space -g -c
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver/cc1as_main.cpp
> c++ -O2 -pipe -fno-strict-aliasing -funroll-loops -march=nocona
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include
> -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver
> -I. -I/usr/src/usr.bin/clang/clang/../../../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\" -g
> -fstack-protector -fconserve-space -g -c
> /usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver/driver.cpp
> make: don't know how to make
> /usr/src/usr.bin/clang/clang/../../../lib/clang/libclangfrontend/libclangfrontend.a.
> Stop
> *** Error code 2
>
> Stop in /usr/src/usr.bin/clang.
>
> but i'll be testing buildworld/buildkernel next.

As I was told earlier, make depend from subdirectories has some issues
(which needs to be tracked down and fixed). I think that some bits
might be missing from lib/Makefile, or bsd.libs.mk that would create a
proper target for this library.

Thanks,
-Garrett
Received on Wed Jun 09 2010 - 20:02:17 UTC

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