[cfe-dev] Building clang with mingw/msys/gcc 4.4

Azriel Fasten fst911 at gmail.com
Mon Feb 28 14:42:53 PST 2011

I managed to build clang on mingw/msys today.

Running configure, make install worked for both debug and optimized builds
in general. However there were a few hitches along the way. Make would fail

ln: creating symbolic link
to `clang.exe': No such file or directory
ln: creating symbolic link `/usr/local/bin/clang++.exe' to `clang.exe': No
such file or directory

And similar errors. Running make with the -i argument finished the build,
and I manually created the links. I don't think there were any other
problems in the build, and

I changed InitHeaderSearch.cpp as instructed for clang to locate the header

clang managed to build my large (personal) project, forcing me to fix some
syntax errors gcc allowed.

Linking ran into a single multiple definition error:

multiple definition of `std::type_info::operator==(std::type_info const&)
const&) const]+0x0): first defined here

This seemed to be defined in the libstdc++, and also in each of my
Translation Units.

I used gcc version 4.4.0 (GCC) and GNU Make 3.81

Azriel Fasten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110228/f223cdf2/attachment.html>

More information about the cfe-dev mailing list