[LLVMdev] LLVM/Clang SVN: 2 Questions
Óscar Fuentes
ofv at wanadoo.es
Thu May 31 08:45:41 PDT 2012
Kevin Kelley <kevin at kelleysoft.com> writes:
> On 5/31/2012 8:52 AM, Justin Holewinski wrote:
>> On Thu, May 31, 2012 at 1:44 AM, MortenMacFly <mac-fly at gmx.net
>> <mailto:mac-fly at gmx.net>> wrote:
>>
>>
>> Windows7, Cmake 2.8.8, MinGW 4.6.1. compiler:
>>
>> I got two questions seeking for help:
>>
>> 1.) I am trying to compile LLVM/Clang from trunk using the
>> instructions from
>> the LLVM homepage which works fine except that the llvm-config
>> tool is not
>> being built. When I do a "make" in the "tools\llvm-config" folder
>> it fails,
>> too with:
>> ../../Makefile.common:60: ../../Makefile.config: No such file or
>> directory
>> ../../Makefile.common:68: /Makefile.rules: No such file or directory
>> mingw32-make.exe: *** No rule to make target `/Makefile.rules'. Stop.
>> Those files are there, so I am a bit lost. Is there a
>> configuration switch I
>> am missing to build this tool? I searched through the Cmake
>> options, but I
>> could not find any.
>>
>>
>> The llvm-config tool is not built on Windows, since it requires sed
>> which is not available by default on Windows. I actually have a
>> patch for this somewhere (build llvm-config on Windows if sed is
>> found), I'll try to find it and post it.
>
> This "No Makefile.rules" problem is different, and recent, from what I see.
>
> With mingw, msys, and gnuwin32, on win7, then configure and make
> will normally succeed, including building llvm-config.exe.
The "No Makefile.rules" message is because the OP executed `make' on the
source directory, where a hand-made autoconf-dependant Makefile
exists. But he was actually building with cmake, which generates its own
makefiles. Either he invoked cmake on a separate build directory
(correct) and then switched to the source directory for executing `make'
(wrong) or he directly executed cmake on the source directory thus
overwriting the hand-made makefiles distributed with LLVM (wrong wrong
wrong). In that case, the hand-made Makefile on tools/llvm-config was
still there because he was not using MSYS. With gnuwin32 or a bare mingw
install the llvm-config directory is ignored.
[snip]
More information about the llvm-dev
mailing list