[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] condor_compile



I think the problem is that condor_compile doesn't support system calls and sleep functions since a checkpoint during a sleep function would have indeterminate results.  See Section 1.4 of the Condor manual for more information on the limitations of checkpointing programs: http://www.cs.wisc.edu/condor/manual/v7.6/1_4Current_Limitations.html .  To run this program in Condor with the sleep function, you'll have to compile it without condor_compile and run it in the vanilla universe.

Best Regards,
 ~ Garrett K.

On Aug 27, 2011, at 3:38 AM, 关中大侠 wrote:

I tried to use the standard universe,and some one has told me that the condor-7.6.3-x86_64_rhap_6.1-updated-unstripped.tar.gz release can do this.
And I write a simple Helloworld like this:

in the source file called a.cpp:
-------------------------------------------
#include<iostream>
using namespace std;
int main(){
        for (int i=0;i<20;i++){
                cout<<i<<": hello world"<<endl;
                sleep(1);
        }
        return 0;
}
-----------------------------------------------
then,I compile it with the command:
condor_compile g++ a.cpp -o a
but I have the result:
------------------------------------------------
LINKING FOR CONDOR : /usr/bin/ld -L/home/yangguang/opt/condor7.6.3/release_dir/lib -Bstatic --eh-frame-hdr --build-id -m elf_x86_64 --hash-style=gnu -o a /home/yangguang/opt/condor7.6.3/release_dir/lib/condor_rt0.o /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtbeginT.o -L/home/yangguang/opt/condor7.6.3/release_dir/lib -L/usr/lib/gcc/x86_64-redhat-linux/4.4.4 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.4 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../.. /tmp/ccSoRyCX.o /home/yangguang/opt/condor7.6.3/release_dir/lib/libcondorsyscall.a /home/yangguang/opt/condor7.6.3/release_dir/lib/libcondor_z.a /home/yangguang/opt/condor7.6.3/release_dir/lib/libcomp_libstdc++.a /home/yangguang/opt/condor7.6.3/release_dir/lib/libcomp_libstdc++.a -lm /home/yangguang/opt/condor7.6.3/release_dir/lib/libcomp_libgcc.a /home/yangguang/opt/condor7.6.3/release_dir/lib/libcomp_libgcc_eh.a -lcondor_c -lcondor_nss_files -lcondor_nss_dns -lcondor_resolv -lcondor_c -lcondor_nss_files -lcondor_nss_dns -lcondor_resolv -lcondor_c /home/yangguang/opt/condor7.6.3/release_dir/lib/libcomp_libgcc.a /home/yangguang/opt/condor7.6.3/release_dir/lib/libcomp_libgcc_eh.a /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/crtn.o
/usr/bin/ld: cannot find -lm
collect2: ld returned 1 exit status

------------------------------------------------
Could anyone tell me how to overcome it? 
Thank you!
_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/