Compile or link error


I am generating profile_rt.dll by perfoming ‘make’ in $LLVM_SRC_DIR/runtime/libprofile. After make, I got the following error messages.

llvm[0]: Linking Debug+Asserts Loadable Module profile_rt.dll
llvm/runtime/libprofile/Debug+Asserts/exported_symbols.lst: file format not reco
gnized; treating as linker script
llvm/runtime/libprofile/Debug+Asserts/exported_symbols.lst:2: syntax error
collect2: ld returned 1 exit status
make: *** [/cygdrive/c/llvm/Debug+Asserts/bin/profile_rt.dll] Error 1

Can anybody please help me generate the shared library successfully?

Thank you,

Good morning.

Which version of LLVM do you use?
IIRC llvm-2.8(and ToT) should be compiled profile_rt.dll manually.
And, older version of LLVM was not capable to build DLLs on cygming.

It seems yours might not have Mikhail's patch r112964.