Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-11-09 02:09:23

Hi Toon,

sorry I did not reply yesterday, it's was a holiday in Russia,

> I found the problem. The thing is the line below in gfortran.jam:
> > fortran.register-fortran-compiler gfortran.compile.fortran : FORTRAN :
> > OBJ : <toolset>gfortran ;
> If I change this into
> fortran.register-fortran-compiler gfortran.compile-fortran : FORTRAN : OBJ
> ;
> my 'rule compile-fortran' is called. I have no clue what the function
> was of the additional ": <toolset>gfortran". I had just copied it from
> builtin.jam.

That's "generator requirement" --- a set of properties which are needed to
even try running the generator. Since you have not defined the 'gfortran'
toolset (and I think we decided fortan toolset should be orthogonal from
ordinary C++ toolset), the generator is never run. V2 unhelpfully allows
sources which are not consumed in any way.

There are two questions:

1. Why can't we issue a warning that .f file is not used? We used to issue
such warning but this ended up being a mess. The warning was issued on some
valid uses and implementation was complex.

2. Why "generator requirements" are not documented? Hell knows -- I completely
forgot about them. I'll fix that asap.

- Volodya


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at