libtool
[Top][All Lists]
Advanced

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

Multiple "mv" commands?


From: Brian W. Taylor
Subject: Multiple "mv" commands?
Date: Wed, 10 Apr 2002 15:54:39 -0700

Hi All,

I am working with automake 1.6, autoconf 2.53, libtool 1.4.2, and the SUNWspro 6 update 2 compilers. I am getting some thing a bit weird and I am not sure if I have configured libtool
correctly and I am trying to get the auto dependency tracking working.

Here is an example of my problem, the "mv" error is the problem:

make[2]: Entering directory `/hipo/home/taylor/LOIS/libs/liblois'
source='bswap.c' object='bswap.lo' libtool=yes \
depfile='.deps/bswap.Plo' tmpdepfile='.deps/bswap.TPlo' \
depmode=dashXmstdout /bin/ksh ../../depcomp \
/bin/ksh ../../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../../include -g -xCC -v -I/usr/openwin/include -I/usr/local/include -I/hipo/home/taylor/LOIS/include -c -o bswap.lo `test -f bswap.c || echo './'`bswap.c cc -DHAVE_CONFIG_H -I. -I. -I../../include -g -xCC -v -I/usr/openwin/include -I/usr/local/include -I/hipo/home/taylor/LOIS/include -c bswap.c -KPIC -DPIC -o bswap.o
mv -f bswap.o bswap.lo
mv: cannot rename bswap.o: No such file or directory



I found that if I make the following change to libtool:

# Just move the object if needed, then go on to compile the next one
      if test x"$output_obj" != x"$libobj"; then
        $show "$mv $output_obj $libobj"
        if test -r $output_obj; then <--- added
           if $run $mv $output_obj $libobj; then :
           else
             error=$?
             $run $rm $removelist
             exit $error
           fi
        fi
      fi


 I can kinda get it to work. But I get this failure mode also

mv: cannot rename lsidtm.o: No such file or directory

It seems as through the mv command is being executed more than once on a
file. Can anybody tell me what I am doing wrong?


   Thanks in Advance!
    Brian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]