[LLVMdev] Compile llvm-gcc fortran backend using mingw

Pavel Holoborodko pavel at holoborodko.com
Mon Oct 17 00:05:25 PDT 2011

Hello everyone!

I got following error while trying to compile llvm-gcc-4.2 using mingw:

undefined reference to `flag_iasm_blocks'
stub-c.o:stub-c.c:(.debug_info+0x81a0): undefined reference to
stub-c.o:stub-c.c:(.debug_info+0x81b9): undefined reference to `iasm_state'
stub-c.o:stub-c.c:(.debug_info+0x81d8): undefined reference to

Configuration command:
../configure --enable-languages=,c++,fortran --prefix=u:/libs/llvm-gcc-2.9
--program-prefix=llvm- --enable-llvm=u:/libs/llvm-2.9 --disable-bootstrap

LLVM itself was compiled & installed successfully with such configuration:
../configure --prefix=u:/libs/llvm-2.9 --enable-optimized

I tried latest sources from SVN and from official download page - result is
the same.
I followed few guides on compilation(including official one) - same.

MinGW has gcc 4.6.1 and it seems all required packages (binutils, perl,
gfortran, mpfr, gmp, etc) are installed.

I would appreciate any help on how to solve this problem.

Thank you in advance.

BTW, it is little bit strange that llvm-gcc doesn't support CMake building
LLVM does and it is extremely convenient....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111017/af15549e/attachment.html>

More information about the llvm-dev mailing list