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

Re: [Condor-users] condor_compile and lapack



Junaid,
I set the environment-variables of the condor_compile-skript manually
and tried to compile without the keyword condor_compile but with
the  libraries I got as you mentioned. Explicitly I added

condor_rt0.o libcondorzsyscall.a libz.a -lgcc libcomp_libstdc++.a
libcomp_libgcc.a libcomp_libgcc_eh.a

to my gcc command. But I got the same error. So I think the problem is
not related to the condor_compile-skript, but to the modified linker or
to the condor-libraries which are linked. Or did I miss a library?

I'm using gcc-3.3.5 and lapack 3.0. Has anyone succeeded to
condor_compile a program using lapack?

Thanks
Hermann Zellner



Zitat von "Junaid N. Sahibzada" <sjunaidn@xxxxxxxxx>:

> i was facing a similar problem.
>
>   the way out is not to use the condor_compile shell script.
>
>   the condor_compile has problems parsing very long lines of
> instructions.
>
>   i ll give u details of what happened to me later on.
>
>   right now what u should do is that condor_compile automatically
> inserts the linking of some libraries.
>
>   so you can manually edit your file to link those libraries. that
> way  you will compile for condor with out having to write the key
> word  condor_compile before the gcc command.
>
>   how to know what libraries are added by condor_compile?
>
>   first run the command without condor_compile.
>
>   then run the command with condor_compile.
>
>   you will notice the difference in the output.
>
>   just insert that difference in the command and things will compile
> for  condor without you to have to write the key word condor_compile.
>
>
>   tell me if it works
>
> Hermann Zellner <Hermann1.Zellner@xxxxxxxxxxxxxxxxxxxxxx> wrote:  Hi,
>
> I failed to relink some c-code using lapack for condor. I'm using
> gcc-3.3.5, lapack-3.0 and condor-6.6.10.
>
> As an example I've writen the following test program:
>
> main()
> {
>   int N=10;
>   int M=10;
>
>   double test[10*10];
>   int IPIV[10];
>   int info;
>
>   zgetrf_(&N,&M, &test,&N, &IPIV, &info);
> }
>
> It compiles fine by "gcc test.c -llapack -lblas -lg2c".
> But when I use "condor_compile gcc test.c -llapack -lblas -lg2c" I
> get
> the error
>
> LINKING FOR CONDOR : /usr/bin/ld.real -L/psi/condor-6.6.10/lib
> -Bstatic
> --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2
> /psi/condor-6.6.10/lib/condor_rt0.o
> /usr/lib/gcc-lib/i486-linux/3.3.5/../../../crti.o
> /usr/lib/gcc-lib/i486-linux/3.3.5/crtbeginT.o
> -L/usr/lib/gcc-lib/i486-linux/3.3.5
> -L/usr/lib/gcc-lib/i486-linux/3.3.5/../../.. /tmp/ccE0ToMj.o -llapack
> -lblas /psi/condor-6.6.10/lib/libcondorzsyscall.a
> /psi/condor-6.6.10/lib/libz.a
> /psi/condor-6.6.10/lib/libcomp_libstdc++.a -lg2c
> /psi/condor-6.6.10/lib/libcomp_libgcc.a
> /psi/condor-6.6.10/lib/libcomp_libgcc_eh.a --as-needed --no-as-needed
> -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv
> -lc /psi/condor-6.6.10/lib/libcomp_libgcc.a
> /psi/condor-6.6.10/lib/libcomp_libgcc_eh.a --as-needed --no-as-needed
> /usr/lib/gcc-lib/i486-linux/3.3.5/crtend.o
> /usr/lib/gcc-lib/i486-linux/3.3.5/../../../crtn.o
>
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libblas.a(xerbla.o)(.text+0xd0):
> In function `xerbla_':
> : multiple definition of `xerbla_'
>
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../liblapack.a(xerbla.o)(.text+0x0):
> first defined here
> /usr/bin/ld.real: Warning: size of symbol `xerbla_' changed from 97
> in
> /usr/lib/gcc-lib/i486-linux/3.3.5/../../../liblapack.a(xerbla.o) to
> 57
> in /usr/lib/gcc-lib/i486-linux/3.3.5/../../../liblapack.a(xerbla.o)
>
/psi/condor-6.6.10/lib/libcondorzsyscall.a(condor_file_agent.o)(.text+0x250):
> In function `CondorFileAgent::open(char const*, int, int)':
>
/home/condor/execute/dir_16550/userdir/src/condor_ckpt/condor_file_agent.C:99:
> warning: the use of `tmpnam' is dangerous, better use `mkstemp'
> collect2: ld returned 1 exit status
>
> This "multiple definition"-error only hapens when I use lapack with
> condor_compile.
>
>
> Thanks
>
> Hermann Zellner
> _______________________________________________
> Condor-users mailing list
> Condor-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>
>
>
>
> Junaid N. Sahibzada
> Cell # (+61) 404 998 494
> 284/9 Crystal St. Waterloo, 2017, NSW, Australia
> International Student MSc Internetworking, UTS, Australia
> Bachelor of Information Technology, NUST, Pakistan
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ---------------------------------
>  Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>