bug-make
[Top][All Lists]
Advanced

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

Re: problem with make


From: Paul D. Smith
Subject: Re: problem with make
Date: Wed, 12 Feb 2003 11:43:27 -0500

%% Dusan Turk <address@hidden> writes:

  dt> I am running into strange kind of a problem with "make" on 

  dt> $ make -v 
  dt> GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. 

  dt> Argument #6 of `reflect_set_calc' is one type at (2) but is some other
  dt> type at (1) [info -f g77 M GLOBALS] 
  dt> make[1]: *** [kongrd.o_LINUX] Error 1 
  dt> make[1]: Leaving directory `/stef/dus/main/source' 
  dt> make[1]: Entering directory `/stef/dus/main/source/graph' 
  dt> /usr/bin/g77 -DG77  -O2 -c -fbounds-check -g -O0  -DOPENGL -DNVIDIA   -F
  dt> -o imacom.f imacom.F 
  dt> g77: unrecognized option `-F' 
  dt> make[1]: *** Deleting file `imacom.f' 
  dt> make[1]: *** [imacom.f] Interrupt 
  dt> make: *** [main_LINUX] Interrupt 

  dt> /usr/bin/g77 -DG77  -O2 -c -fbounds-check -g -O0    -F -o kongrd.f
  dt> kongrd.F 
  dt> g77: unrecognized option `-F' 
  dt> kongrd.F: In subroutine `gen_cmap_phase_false': 
  dt> kongrd.F:2606: 
  dt>            integer*4 iscale, ifset, irg(2), ioper(3), 

  dt> my construct is the following: 

  dt> kongrd.o_$(SYSTEM): kongrd.f 
  dt>  $(CPP)  kongrd.f > kongrd.F 
  dt>  $(FC) $(FFLAGS) kongrd.F 
  dt>  mv kongrd.o kongrd.o_$(SYSTEM) 
  dt>  rm kongrd.F 

This rule is not being used by make.

The error is in some part of your makefile which you have not shown us.

  dt> in order to make use of "cpp" the ".f" files need to be copied to
  dt> ".F".  So it looks like a buffer overflow or underflow.  Somehow a
  dt> part of the make file gets lost.

To me it looks like you have a rule in your makefile somewhere that
tells make how to build a ".f" file from a ".F" file, and that rule is
incorrect.

I suggest you use the -d flag to try to figure out what's going on.
Also you can use -p to get make to print out its internal database so
you can see what rules are defined and where they were defined.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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