[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:

..\llvm-gcc-4.2\obj\libcpp/../../libcpp/macro.c:1165:
undefined reference to `flag_iasm_blocks'
stub-c.o:stub-c.c:(.debug_info+0x81a0): undefined reference to
`flag_iasm_blocks'
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
`iasm_in_operands'

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
--disable-multilib

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

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.
Pavel.

P.S.
BTW, it is little bit strange that llvm-gcc doesn't support CMake building
system.
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