[Top][All Lists]

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

Re: problem with fortran sources in recent automake.

From: Ralf Wildenhues
Subject: Re: problem with fortran sources in recent automake.
Date: Tue, 11 Mar 2008 01:20:32 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hello Dan,

* Dan McMahill wrote on Mon, Mar 10, 2008 at 01:49:54PM CET:
> I'm trying to debug a piece of open-source 3rd party software.  It mixes  
>  c++ and fortran and has a fragment that looks like:
> foo_SOURCES= src/file1.cpp src/file2.cpp src/file3.F src/file4.F
> The c++ parts compile file but then make dies with a complaint about no  
> rule for target file3.o.  So I took a look at the automake-1.10.1  
> generated and see something like this:
> am__objects_1 = src/file1.$(OBJEXT) src/file2.$(OBJEXT)
> am__objects_2 = file3.$(OBJEXT) file4.$(OBJEXT)

I assume that you're using the Automake option subdir-objects then,

> Note that in am__objects_2, we've lost the "src/" part of the names of  
> the fortran sources.

Because in 1.10.1, subdir-objects weren't working for Fortran yet.
That limitation has been lifted in the current development sources
(in what will eventually be 1.11).

But one thing I don't understand: apart from the naming, you haven't
encountered any build failure, right?  Because AFAICS things should
still work.  If they don't, then please post 'make' output of such a

If you were not using subdir-objects, no object name would have a
directory part.


reply via email to

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