[cfe-dev] Errors building clang with mingw
Óscar Fuentes
ofv at wanadoo.es
Wed Mar 16 16:38:41 PDT 2011
Edward Diener <eldlistmailingz at tropicsoft.com>
writes:
> I followed the instructions on the clang "Getting Started" page. running
> '../llvm/configure' worked fine. Running 'make' worked for a long while
> but finally gave me this error:
>
> "make[1]: Entering directory
> `/c/Programming/VersionControl/clangbuild/tools/llvm-config'
> llvm[1]: Regenerating LibDeps.txt.tmp
> 'C:' is not recognized as an internal or external command,
> operable program or batch file.
> nm failed at c:/Programming/VersionControl/llvm/utils/GenLibDeps.pl line
> 230.
> make[1]: ***
> [/c/Programming/VersionControl/clangbuild/tools/llvm-config/LibDeps.txt.tmp]
> Error 255
> make[1]: Leaving directory
> `/c/Programming/VersionControl/clangbuild/tools/llvm-config'
> make: *** [all] Error 1"
Most likely the build is using a non-MSYS Perl install.
> I then tried running "make" again and eventually received:
>
> "make[2]: Leaving directory
> `/c/Programming/VersionControl/clangbuild/tools/llvm-config'
> llvm-config: unknown component name: bitreader
> make[2]: Entering directory
> `/c/Programming/VersionControl/clangbuild/tools/opt'
> /c/Programming/VersionControl/llvm/Makefile.rules:959: *** llvm-config
> --libs failed. Stop.
> make[2]: Leaving directory
> `/c/Programming/VersionControl/clangbuild/tools/opt'
> make[1]: *** [opt/.makeall] Error 2
> make[1]: Leaving directory `/c/Programming/VersionControl/clangbuild/tools'
> make: *** [all] Error 1"
That's probably due to the failed generaion of llvm-config
above. llvm-config is an script used for determining library
dependencies and is used by the configure&make build. At some point on
the build a tool determines the mutual dependencies among the multiple
LLVM libraries and that information is embedded on llvm-config.
[snip]
More information about the cfe-dev
mailing list