gmake error

OK, I’m not terribly good at using ‘make’ - but I think there is a configuration problem somewhere in my 12.1 x64 install. I installed all the development environments, and issued, in the correct directory, (per the docs of the ModelE GCM - which is gfortran compatible):

gmake config

…this should have made a file in my home directory with some info on my system, but it said:
patti@VBdesktop-OpenSuSE:~/Desktop/ModelE/modelE_AR5_branch/decks> gmake config
…/config/rules.mk:106: …/config/compiler.Linux.mk: No such file or directory
gmake: *** No rule to make target `…/config/compiler.Linux.mk’. Stop.

This really looks like one of those version things where parts of fortran wound up in new directories, like lib vs lib64, but I can’t find a reference. Does this ring a bell for anyone?

THANK YOU!
Patricia

Hi
So if you look at …/config/rules.mk line 106 (as indicated in the
error output), it says;


#include compiler-specific options
include $(CONFIG_DIR)/compiler.$(COMPILER).mk

So if you need some flags etc, touch the file and then if you need to
tweak do it here;


touch ../config/compiler.Linux.mk
gmake config


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.13-0.27-default
up 0:29, 3 users, load average: 0.01, 0.10, 0.18
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Thank you for the reply, Malcom! I’m sorry about the double post - I tried to find a button to delete this one since the code was in the other one, but coundn’t find it (I may be button-dyslexic). I was able to get it to build the file I needed, but that seems to be just to build a “settings” file, not the code itself. Now I have to tackle that… :wink:

Thanks Again
Patricia

If I understand you correctly - the touch command will create the .mk file, but it will be empty? What I wound up doing was finding an existing file named …/config/compiler.gfortran.mk (which was full of instructions) and copying it to …/config/compiler.Linux.mk - then it seemed to work OK.

On 2012-04-09 21:26, PattiMichelle wrote:
> If I understand you correctly - the touch command will create the .mk
> file, but it will be empty?

The command “touch” does two things: if the file exists, it “touches” the
timestamps, so that the file appears to have been created “now”. If the
file does not exist, it creates it.

You can find more with “man touch”, as for any CLI command.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)