Hi,
On Thu, 24 Aug 2006, Scott Brozell wrote:
> Hi,
>
> On Thu, 24 Aug 2006, Myunggi Yi wrote:
>
> > The compilation stopped.
> > The following is the end of the screen output.
> >
> > =====================================
> > cd build_amoeba; make install
> > /lib/cpp -P -DMASSLIB -DNMLEQ -DCLINK_PLAIN -DXLF90 > amoeba_parm.f
> >
> > What's going on?
> > I waited for tens of minuites, but nothing happened.
>
> You are waiting because cpp is expecting input that is missing, namely
> amoeba_parm.f90. The command should be:
>
> /lib/cpp -P -DMASSLIB -DNMLEQ -DCLINK_PLAIN -DXLF90 amoeba_parm.f90 > amoeba_parm.f
>
> It looks like $< is not being evaluated correctly.
It may be that $< is only valid in an inference rule for a picky
make, such as ibm's. In which we may have to bugfix the Makefile.
On a technical note for future Ambers using .F90 instead of .f90
would also avoid this issue if ibm supports the popular conventions
on uppercase extensions indicating preprocessing.
> >From build_amoeba/Makefile
> amoeba_parm.o: amoeba_parm.f90
> $(FPP) $< > $*.f
> $(FC) -c $(FOPTFLAGS) $(FREEFORMAT_FLAG) -o $. $*.f
>
> Note that config.h has a suffixes for .f90
> I'll sleep on it; someone with access to an ibm may wake before me :)
>
>
> You can fix this and the others like it by editing the Makefile:
>
> amoeba_parm.o: amoeba_parm.f90
> $(FPP) $< > $*.f
> $(FC) -c $(FOPTFLAGS) $(FREEFORMAT_FLAG) -o $. $*.f
>
> ->
>
> amoeba_parm.o: amoeba_parm.f90
> $(FPP) $*.f90 > $*.f
> $(FC) -c $(FOPTFLAGS) $(FREEFORMAT_FLAG) -o $. $*.f
>
> etc.
Note, do a make clean after you edit the Makefile.
> Good luck,
> Scott
-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber.scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
Received on Sun Aug 27 2006 - 06:07:21 PDT