Opened 12 years ago

Closed 12 years ago

#176 closed bug (Fixed)

using full compiler path

Reported by: jcwarner Owned by: arango
Priority: major Milestone: Release ROMS/TOMS 3.2
Component: Nonlinear Version: 3.2
Keywords: Cc:

Description

the src ticket #169 which added the full compiler path does not work correctly for CYGWIN (imagine that). The full path for my ifort compiler is

/cygdrive/c/Program Files/Intel/Compiler/Fortran?/9.0/IA32/Bin/ifort.exe

But there is a space between the words "Progam" and "Files". (Why did they do that!) So when the full path is used to specify the compiler command, that space causes a problem and i get /bin/sh: /cygdrive/c/Program: No such file or directory.

Change History (2)

comment:1 Changed 12 years ago by m.hadfield

There are 2 solutions to this problem

EITHER

John, run the following command under the Cygwin shell:

mount 'C:\Program Files' /progs

Then your full compiler path will appear as

/progs/Intel/Compiler/Fortran/9.0/IA32/Bin/ifort

OR

In the ROMS platform-specific make files, change this line

FC := $(shell which ${FC})

so that the command name is surrounded by quotation marks. I think this might do it

FC := \"$(shell which ${FC})\"

Given that the ROMS build system is designed for Unix systems, where the use of spaces in directory names is very unusual and guaranteed to break things, I think the former solution is the better one.

Mark

comment:2 Changed 12 years ago by arango

  • Resolution set to Fixed
  • Status changed from new to closed

Thanks Mark for your suggestion. John found that a variant worked:

   FC := "$(shell which ${FC})"

I also loaded the correct tl_ini_adjust.F to the src and cstm repositories. I loaded the wrong file in src:ticket:172.

Note: See TracTickets for help on using tickets.