This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Strange Behavior with compiling


Thanks for the tip!  By the way, I am using automake-1.4.

Here's what it produced

----
-DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -O2 -Wall -DIRIX
-Wp,-MDupdate,.deps/sema.pp -c sema.C
----

Upon seeing this, I remembered that I had changed a portion of
depend2.am quite a while ago so that I could use automake on our IRIX
6.5 systems.  Here's the diff between my depend2.am and the one that is
in the automake-1.4:

-------------- begin diff ------------------
diff automake-1.4/depend2.am automake-1.4_IRIX6.5/depend2.am
29c29
<       $(@PFX@COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
---
>       $(@PFX@COMPILE) -Wp,-MDupdate,.deps/$(*F).pp -c $<
48c48
<       $(LT@PFX@COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
---
>       $(LT@PFX@COMPILE) -Wp,-MDupdate,.deps/$(*F).pp -c $<
---------------- end diff -------------------

It now makes perfect sense why it didn't work.  However, I'm not sure
what a general solution may be.

As a side note: I imagine that if I were to re-run automake on my Linux
system, I would not see these results as the local copy of automake
(1.4, I think) would not have been modified to support the IRIX 6.5
system.

Still, I would like to compile with EGCS on the SGI occaisonally.  Any
ideas?

Thanks for your help in diagnosing this!

Pavel Roskin wrote:
> 
> Hello, Pete!
> 
> First of all, you didn't mention the version of Automake which you are
> using.
> 
> > I can't see what's wrong with the compile command.  In fact, if I cut
> > and paste the "c++ -D..." line above at a shell prompt everything works
> > out fine.
> 
> Automake must be concealing some details. Write a wrapper around c++
> recording the commands actually used.
> 
> #!/bin/sh
> echo "$@" >>~/my_log
> /usr/bin/c++ "$@"
> 
> Most likely, there are hidden switches to generate dependencies, which are
> interpreted incorrectly by your compiler.
> 
> This ought to be interesting to Automake developers.
> 
> Pavel Roskin

-- 

Pete
----------------------------------------------
Pete Willemsen        Department of Comp. Sci.
willemsn@cs.uiowa.edu       University of Iowa
----------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]