2009/1/13 Anton Korobeynikov <anton at korobeynikov.info>:> Hello, Duncan > > * LD (which I took to be representative of Binutils version) 2.17.50 > 20060824> Why you're using such old binutils? 2.18.50-20080109 definitely worked for > me (and release binaries were built so...).Thank you for your reply Anton. I'm sorry it's taken a while to get back to you. This binutils came with the MinGW installer. I have made some progress by reinstalling according to these instructions, though I took slightly more recent versions in some cases and also found I needed Perl (thank you Anton and Ted): http://blogs.tedneward.com/2008/02/24/Building+LLVM+On+Windows+Using+MinGW32.aspx Now I can compile and install llvm-2.4 but the first step in the tutorial fails for me with another missing symbol: $ g++ -g tut1.cpp `llvm-config --cxxflags --ldflags --libs core` -o tut1 /mingw/lib/libLLVMSystem.a(Process.o):Process.cpp:(.text+0x8d): undefined reference to `GetProcessMemoryInfo at 12' collect2: ld returned 1 exit status I'm using GNU ld (GNU Binutils) 2.18.50.20080109. Thanks for any further help you can provide, Duncan Pierce
Hello, Duncan> $ g++ -g tut1.cpp `llvm-config --cxxflags --ldflags --libs core` -o tut1 > /mingw/lib/libLLVMSystem.a(Process.o):Process.cpp:(.text+0x8d): > undefined reference to `GetProcessMemoryInfo at 12' > collect2: ld returned 1 exit statusI believe you will need additional libraries like imagehlp and psapi. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Hi Anton>> $ g++ -g tut1.cpp `llvm-config --cxxflags --ldflags --libs core` -o tut1 >> /mingw/lib/libLLVMSystem.a(Process.o):Process.cpp:(.text+0x8d): >> undefined reference to `GetProcessMemoryInfo at 12' >> collect2: ld returned 1 exit status > I believe you will need additional libraries like imagehlp and psapi.I have /lib/libimagehlp.a and /lib/libpsapi.a nm --defined-only /lib/libpsapi.a | grep "GetProcessMemoryInfo" - returns: 00000000 T _GetProcessMemoryInfo at 12 00000000 I __imp__GetProcessMemoryInfo at 12 And llvm-config seems to be asking for them to be picked up: -I//include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -O2 -fomit-frame-pointer -Woverloaded-virtual -L//lib -lpsapi -limagehlp -lm -lLLVMCore -lLLVMSupport -lLLVMSystem So I'm still mystified. Best regards, Duncan