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

[condor-users] Newbie - /usr/bin/ld: cannot find -lgcc_s



HI,
I'm newbie, I got a problem using "condor_compile"

I have a Makefile of my project:

#CC     = g++
CC       = condor_compile g++

LIB       =  -DCPP -I/export/now01/mex/csimCD/csim_cpp-19.0/lib
END     = /export/now01/mex/csimCD/csim_cpp-19.0/lib/csim.cpp.a -lm

all : Task.o BagOfTask.o Msg.o RscDst.o RscFrR.o RscHw.o Broker.o ChkPntMng.o FaultMng.o RscMng.o Rsc.o em.o
$(CC) $(LIB) *.o $(END)


em.o : em.cpp em.h Task.h RscMng.h Msg.h
       $(CC) $(LIB) -c em.cpp

Broker.o : Broker.h Broker.cpp em.h Msg.h Task.h
       $(CC) $(LIB) -c Broker.cpp

....and so on.


The error occour only in the execution of the target "all" (the last thing to do):


condor_compile g++ -g -DCPP -I/export/now01/mex/csimCD/csim_cpp-19.0/lib *.o /export/now01/mex/csimCD/csim_cpp-19.0/lib/csim.cpp.a -lm
LINKING FOR CONDOR : /usr/bin/ld -Bstatic -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /export/now01/condor_release_dir/lib/condor_rt0.o /usr/lib/crti.o /usr/local/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/crtbegin.o -L/export/now01/condor_release_dir/lib -L/usr/local/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3 -L/usr/local/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../../i686-pc-linux-gnu/lib -L/usr/local/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../.. BagOfTask.o Broker.o ChkPntMng.o em.o FaultMng.o Msg.o RscDst.o RscFrR.o RscHw.o RscMng.o Rsc.o Task.o /export/now01/mex/csimCD/csim_cpp-19.0/lib/csim.cpp.a /export/now01/condor_release_dir/lib/libcondorzsyscall.a /usr/lib/libz.a -lstdc++ -lm -lgcc_s -lgcc -L/export/now01/condor_release_dir/lib -lc -lnss_files -lnss_dns -lresolv -lc -lgcc_s -lgcc /usr/local/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/crtend.o /usr/lib/crtn.o /export/now01/condor_release_dir/lib/libcondorc++support.a
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make: *** [all] Error 1



The machine where I'm try to run has gcc2.96 as default compiler, but setting PATH and LD_LIBRARY_PATH properly I can use gcc 3.3:
[mex@now01 sim]$ echo $PATH
/usr/local/gcc-3.3/bin:/opt/c3-3:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/export/now01/mex/bin:/usr/local/bin:/usr/local/valgrind/bin:.:/export/now01/mex/bin


[mex@now01 sim]$ echo $LD_LIBRARY_PATH
/usr/local/gcc-3.3/lib

Using "g++" instead of "condor_compile" I have no problem.

Could you help me, please?

THanks in advance,
   M.

Condor Support Information:
http://www.cs.wisc.edu/condor/condor-support/
To Unsubscribe, send mail to majordomo@xxxxxxxxxxx with
unsubscribe condor-users <your_email_address>