automake
[Top][All Lists]
Advanced

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

Re: Automake and makedepend


From: Stan Guillory
Subject: Re: Automake and makedepend
Date: Fri, 13 May 2005 11:14:38 -0500

Thanks for your quick response, Ralf.

On the first invocation, I get the following:

a.o: a/a.cc
a.o: b/b.h
a.o: ./c/a.h
a.o: /opt/SUNWspro/prod/include/CC/std/stdio.h

etc, i.e. a list of what I think I need. The errno was 0 after
executing that sequence of commands.

I got the same error you did when I executed the second CC invocation.
What version of the
compiler are you using, btw?

Thanks,
Stan


>>> Ralf Wildenhues <address@hidden> 5/13/2005 10:41:11 AM >>>
* Stan Guillory wrote on Thu, May 12, 2005 at 07:56:17PM CEST:
> 
> 1) Should the dependency tracking mechanism in automake work by
default
> with Sun Forte C++ 5.4?

I only have access to a different compiler version.  What does yours
do
after this series of commands (in a junk directory):

mkdir a b c d
cat >a/a.cc <<EOF
#include "b.h"
#include "c/a.h"
#include <stdio.h>
int x=0;
EOF
echo >b/b.h
echo >c/a.h
CC -Ib -I. -xM -c a/a.cc
echo $?

and what does it do with

CC -Ib -I. -xM -c a/a.cc -o d/a.o
echo $?

?  Over here, the second one triggers the error
| CC: Suffix mismatch between -o and produced file (should produce .i)

which prevents the dashXmstdout depmode to work.  I believe it's a
compiler bug, but don't know for sure (have only looked very briefly
at
the documentation).

However, on this system
  depmode=makedepend source=a/a.cc object=d/a.o libtool=no \
  sh -x path/to/depcomp CC -Ib -I. -c a/a.cc -o d/a.o

works.  So, the question is whether `depcomp' needs to cut out any of
your $CPPFLAGS or $CXXFLAGS which could make makedepend barf.

Regards,
Ralf






reply via email to

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