[cfe-dev] Errors building clang with mingw

Francois Pichet pichet2000 at gmail.com
Wed Mar 16 16:09:01 PDT 2011


On Wed, Mar 16, 2011 at 6:56 PM, Edward Diener
<eldlistmailingz at tropicsoft.com> wrote:
> 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"
>
> 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"
>
> Anybody have any idea what has gone wrong in this process ?
>

When I want to build with MinGW I do this from the normal cmd.exe
command prompt:

>cd C:\llvm
>mkdir Build
>cd Build
>cmake -G "MinGW Makefiles" ..
>make

Binaries will be in llvm\Build\bin




More information about the cfe-dev mailing list