Hi Nick Thanks for you reply. CMAKE is very new to me. I complied using GNU WIN32 and got those errors. Is it possible to compile it using GNU WIN 32 and anything need to be modified? I managed to compile the run time library on a mac machine. Yafan On Fri, Apr 22, 2011 at 5:04 PM, Nick Lewycky <nicholas at mxc.ca> wrote:> yafan zhao wrote: > >> Hi All >> Thanks for all replies regarding to my GCC problem. >> I am trying to do profiling now and need to generate "profile_rt.so" >> file. I compiled the runtime library using MAKE and tried on both >> Windows and Mac, but the compiling can not be done properly. I got the >> following error message: >> ------------------------------ >> make: Entering directory `C:/llvm/runtime' >> ../Makefile.config.in:59 <http://makefile.config.in:59/> < >> http://Makefile.config.in:59 <http://makefile.config.in:59/>>: *** >> Projects >> >> must define PROJ_SRC_ROOT. Stop. >> make: Leaving directory `C:/llvm/runtime' >> ----------------------------- >> How to fix these errors? Is these any other way to compile the runtime >> library and generate "profile_rt.so" file? >> > > It looks like llvm/runtime is missing CMakeFile.txt's, and probably just > can't be built when using cmake. > > Do you know cmake well enough to write them? If so, please try it and send > us a patch, otherwise I'll get to it eventually. > > Nick >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110424/6056483f/attachment.html>
Hi, Zhao You can apply the attachment to LLVM 2.9 Release. It has been tested on FreeBSD/x86. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 -------------- next part -------------- diff -ruN llvm-2.9/CMakeLists.txt llvm-2.9.new/CMakeLists.txt --- llvm-2.9/CMakeLists.txt 2011-03-02 06:31:19.000000000 +0800 +++ llvm-2.9.new/CMakeLists.txt 2011-04-24 15:41:07.180714774 +0800 @@ -233,6 +233,13 @@ add_subdirectory(tools) endif() +option(LLVM_BUILD_RUNTIME + " Build the LLVM runtime. If OFF, just generate build targets." OFF) +option(LLVM_INCLUDE_RUNTIME "Generate build targets for the LLVM examples" ON) +if( LLVM_INCLUDE_RUNTIME ) + add_subdirectory(runtime) +endif() + option(LLVM_BUILD_EXAMPLES "Build the LLVM example programs. If OFF, just generate build targets." OFF) option(LLVM_INCLUDE_EXAMPLES "Generate build targets for the LLVM examples" ON) diff -ruN llvm-2.9/runtime/CMakeLists.txt llvm-2.9.new/runtime/CMakeLists.txt --- llvm-2.9/runtime/CMakeLists.txt 1970-01-01 08:00:00.000000000 +0800 +++ llvm-2.9.new/runtime/CMakeLists.txt 2011-04-24 15:41:26.915556956 +0800 @@ -0,0 +1 @@ +add_subdirectory(libprofile) diff -ruN llvm-2.9/runtime/libprofile/CMakeLists.txt llvm-2.9.new/runtime/libprofile/CMakeLists.txt --- llvm-2.9/runtime/libprofile/CMakeLists.txt 1970-01-01 08:00:00.000000000 +0800 +++ llvm-2.9.new/runtime/libprofile/CMakeLists.txt 2011-04-24 15:41:56.549409372 +0800 @@ -0,0 +1,8 @@ +add_llvm_loadable_module( profile_rt + BasicBlockTracing.c + CommonProfiling.c + PathProfiling.c + EdgeProfiling.c + OptimalEdgeProfiling.c + Profiling.h + )
On 24 April 2011 00:57, 陳韋任 <chenwj at iis.sinica.edu.tw> wrote:> Hi, Zhao > > You can apply the attachment to LLVM 2.9 Release. It has been tested > on FreeBSD/x86. >Hi Chen, may I commit this (updated to include GCDAProfiling.cpp) to LLVM SVN? Nick> > Regards, > chenwj > > -- > Wei-Ren Chen (陳韋任) > Computer Systems Lab, Institute of Information Science, > Academia Sinica, Taiwan (R.O.C.) > Tel:886-2-2788-3799 #1667 > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110425/e0b296a4/attachment.html>
Apparently Analagous Threads
- [LLVMdev] Problem with compiling the runtime libary
- [LLVMdev] Problem with compiling the runtime libary
- [LLVMdev] Problem with compiling the runtime libary
- [LLVMdev] Problem with compiling the runtime libary
- [LLVMdev] Problem with compiling the runtime libary