mainGNU Libtool - Support: sr #102300, libtool confused by depcomp

 
 

sr #102300: libtool confused by depcomp

Submitter:  None
Submitted:  Thu 24 Jul 2003 02:19:20 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  2 - Minor Status:  Need Info
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 29 Jan 2024 06:30:57 AM UTC, comment #1: 

sorry, but i'm not quite following the issue here.  can you include a full command line & error message ?  and maybe include a patch showing what you're thinking ?

Mike Frysinger <vapier>
Group Member
Thu 24 Jul 2003 02:19:20 PM UTC, original submission:  


A typical incantation as observed in OpenEXR-1.0.5:
source='ImfAttribute.cpp' \
object='libIlmImf_la-ImfAttribute.lo' libtool=yes \
depfile='.deps/libIlmImf_la-ImfAttribute.Plo' \
tmpdepfile='.deps/libIlmImf_la-ImfAttribute.TPlo' \
depmode=sgi /bin/sh \
/apps/src/OpenEXR-1.0.5-INST-irix/depcomp \
        /bin/sh ../libtool --mode=compile CC ...

Now, depcomp adds
`-Wp,-MDupdate,.deps/libIlmImf_la-ImfAttribute.TPlo' to
the end of the command line before handing it to
libtool.  libtool, then, mistakes that option for a
source file.  This gets important when compiler_c_o==no
(compiler can't use -c and -o at the same time), and
the object file has a different basename than the
source ($CC -o newname.o -c oldname.c).

Relevant lines in libtool:

    # Calculate the filename of the output object if
compiler does
    # not support -o with -c
    if test "$compiler_c_o" = no; then
      output_obj=`$echo "X$srcfile" | $Xsed -e
's%^.*/%%' -e 's%\.[^.]*$%%'`.${o
bjext}
      lockfile="$output_obj.lock"
      removelist="$removelist $output_obj $lockfile"
      trap "$run $rm $removelist; exit 1" 1 2 15
    else

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vapier (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-01-29 vapier StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code