> >>> d:/objs/llvm/msys/Debug/lib/libLLVMSystem.a(Process.o):e:/Downloads/llvm-trunk/lib/System/Win32/Process.inc:78: > >>> undefined reference to `GetProcessMemoryInfo at 12' > >> GetProcessMemoryInfo should be defined in psapi.lib, but AFAICS mingw32 > >> doesn't have this import lib. It is included in the MS Platform SDK, > >> but I'm not sure whether you can link that into mingw32 programs... > > msdn suggests kernel32, but that is already included. > > My apologies, I was mistaken, as Yonggang pointed out to me privately; > mingw32 does come with a libpsapi.lib file, but in your case it does not > get added to the libs to be linked with, apparently. > > In my case, the configure script does check for the existence of > libpsapi.a, and adds both a HAVE_LIBPSAPI define to config.h, and > -lpsapi to LIBS. > > Can you find anything in your config.log file about libpsapi?#define HAVE_LIBPSAPI 1 in config.h Ronald
> > >>> d:/objs/llvm/msys/Debug/lib/libLLVMSystem.a(Process.o):e:/Downloads/llvm-trunk/lib/System/Win32/Process.inc:78: > > >>> undefined reference to `GetProcessMemoryInfo at 12' > > >> GetProcessMemoryInfo should be defined in psapi.lib, but AFAICS mingw32 > > >> doesn't have this import lib. It is included in the MS Platform SDK, > > >> but I'm not sure whether you can link that into mingw32 programs... > > > msdn suggests kernel32, but that is already included. > > > > My apologies, I was mistaken, as Yonggang pointed out to me privately; > > mingw32 does come with a libpsapi.lib file, but in your case it does not > > get added to the libs to be linked with, apparently. > > > > In my case, the configure script does check for the existence of > > libpsapi.a, and adds both a HAVE_LIBPSAPI define to config.h, and > > -lpsapi to LIBS. > > > > Can you find anything in your config.log file about libpsapi? > > #define HAVE_LIBPSAPI 1 > in config.hI had a close look at the link line, and -lpsapi is specified before -lLLVMSystem (which is giving the error). When I put -lpsapi after -lLLVMSystem, it links ok. Ronald
Am 02.10.2009 um 21:07 schrieb Ronald Pijnacker:> I had a close look at the link line, and -lpsapi is specified before > -lLLVMSystem (which is giving the error). > When I put -lpsapi after -lLLVMSystem, it links ok.I commited a fix for this problem and a modified version of Jay's patch here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090928/088265.html I hope MingW builds work again now :)
Possibly Parallel Threads
- [LLVMdev] llvm build errors on windows/mingw32
- [LLVMdev] Building LLVM on PPC
- [LLVMdev] [PATCH] utils/unittest: Consistency of gtest and gtest_main libs.
- [LLVMdev] llvm build errors on windows/mingw32
- [LLVMdev] linker warnings in Linking CXX executable Debug/AsanTest