[LLVMdev] Cross-compiling LLVM with llvm-gcc produces a lot of warnings

Mikhail Glushenkov foldr at codedgers.com
Fri Sep 3 03:13:44 PDT 2010


Hi,

I'm cross compiling (BUILD=darwin, HOST=i386-mingw32) LLVM with
llvm-gcc (both from current mainline). Everything works fine,
except that I get a lot of warnings of the following type:

[..]/lib/gcc/i386-mingw32/4.2.1/../../../../i386-mingw32/bin/ld:
/[..]/build-llvm/Release/lib/libLLVMSupport.a(APInt.o): warning:
duplicate section
`.text$linkonce__ZN4llvm5APInt17getSignedMinValueEj' has
different size

/[..]/lib/gcc/i386-mingw32/4.2.1/../../../../i386-mingw32/bin/ld:
/[..]/build-llvm/Release/lib/libLLVMSupport.a(APInt.o): warning:
duplicate section
`.text$linkonce__ZN4llvm5APInt17getSignedMaxValueEj' has
different size

/[..]/lib/gcc/i386-mingw32/4.2.1/../../../../i386-mingw32/bin/ld:
/[..]/build-llvm/Release/lib/libLLVMSupport.a(APInt.o): warning:
duplicate section `.text$linkonce__ZN4llvm5APIntlSEj' has
different size

/[..]/lib/gcc/i386-mingw32/4.2.1/../../../../i386-mingw32/bin/ld:
/[..]/build-llvm/Release/lib/libLLVMSupport.a(APInt.o): warning:
duplicate section `.text$linkonce__ZNK4llvm5APIntngEv' has
different size

Is this normal/known?




More information about the llvm-dev mailing list