PhoSim Install with Condor

Issue #2 resolved
Joseph Glaser created an issue

Hello Everyone,

So I just got HTCondor installed on the cluster here at Drexel and its running fine. However, when I tried to rebuild version 3.4.2 via ./configure and make, I got the following error popping up. Any ideas why its "not finding -lz?"

Warm Regards,

Joseph Glaser

[...]
make[1]: Entering directory `/home/jglaser/PhoSim/source/raytrace'
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ main.cpp -o main.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ observation.cpp -o observation.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ image.cpp -o image.o
In file included from image.cpp:29:
telescopesetup.cpp: In member function ‘int Image::telSetup()’:
telescopesetup.cpp:325: warning: unused variable ‘degree’
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ rng_mwc.cpp -o rng_mwc.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ raytrace.cpp -o raytrace.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ galaxy.cpp -o galaxy.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ dust.cpp -o dust.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ event.cpp -o event.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ grating.cpp -o grating.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ counter.cpp -o counter.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ silicon.cpp -o silicon.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ ../ancillary/readtext.cpp -o readtext.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ surface.cpp -o surface.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ coating.cpp -o coating.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ perturbation.cpp -o perturbation.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ obstruction.cpp -o obstruction.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ screen.cpp -o screen.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ medium.cpp -o medium.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ air.cpp -o air.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ chip.cpp -o chip.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ contamination.cpp -o contamination.o
condor_compile g++ -g -O3 -ffast-math -Wall -c -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -I ../ fea.cpp -o fea.o
condor_compile g++ main.o observation.o image.o rng_mwc.o raytrace.o galaxy.o dust.o event.o grating.o counter.o silicon.o readtext.o surface.o coating.o perturbation.o obstruction.o screen.o medium.o air.o chip.o contamination.o fea.o -g -O3 -ffast-math -Wall -I/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/include/ -L/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/lib/ -lcfitsio -I/home/jglaser/lsst/Linux64/fftw/3.3.3/include/ -L/home/jglaser/lsst/Linux64/fftw/3.3.3/lib/ -lfftw3 -lm -lz -o ./raytrace
LINKING FOR CONDOR : /usr/bin/ld -L/usr/lib64/condor -Bstatic --eh-frame-hdr --build-id -m elf_x86_64 --hash-style=gnu -o ./raytrace /usr/lib64/condor/condor_rt0.o /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.4.7/crtbeginT.o -L/home/jglaser/lsst/Linux64/cfitsio/3360.lsst1/lib/ -L/home/jglaser/lsst/Linux64/fftw/3.3.3/lib/ -L/usr/lib64/condor -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../.. main.o observation.o image.o rng_mwc.o raytrace.o galaxy.o dust.o event.o grating.o counter.o silicon.o readtext.o surface.o coating.o perturbation.o obstruction.o screen.o medium.o air.o chip.o contamination.o fea.o -lcfitsio -lfftw3 -lz /usr/lib64/condor/libcondorsyscall.a /usr/lib64/condor/libcondor_z.a /usr/lib64/condor/libcomp_libstdc++.a /usr/lib64/condor/libcomp_libstdc++.a -lm /usr/lib64/condor/libcomp_libgcc.a /usr/lib64/condor/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 /usr/lib64/condor/libcomp_libgcc.a /usr/lib64/condor/libcomp_libgcc_eh.a /usr/lib/gcc/x86_64-redhat-linux/4.4.7/crtfastmath.o /usr/lib/gcc/x86_64-redhat-linux/4.4.7/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/crtn.o
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [raytrace] Error 1
make[1]: Leaving directory `/home/jglaser/PhoSim/source/raytrace'
mv: cannot stat `raytrace': No such file or directory
make: *** [all] Error 1

Comments (3)

  1. John Peterson

    So Joseph it looks like it is complaining about not being able to find zlib. This doesn’t have much to do with condor i think. Can you find that library in your cluster’s environment?

    john

  2. John Peterson

    joseph-

    what you could do is manually go through any makefile in the source directory, and then under lflags add the -L/lib64/

    there must be a way to do that with a path as well, but i’m not sure about your setup.

    john

  3. Log in to comment