[MITgcm-support] genmake2 problem on alpha
jeff polton
jpolton at ucsd.edu
Thu Sep 23 18:43:46 EDT 2004
Ed, I still get errors with the new checkpoint55 files. The error is
particularly odd.
>../../../tools/genmake2 -mods=../code
-of=/due3/jeff/safe/osf1_alpha_f90
blah blah ....
Searching for *OPTIONS.h files in order to warn about the presence
of "#define "-type statements that are no longer allowed:
found CPP_EEOPTIONS="../../../eesupp/inc/CPP_EEOPTIONS.h"
found CPP_OPTIONS="../../../model/inc/CPP_OPTIONS.h"
Segmentation fault
I've tracked down the error to the test_for_package_in_cpp_options
function, which calls the test_for_string_in_file subfunction 4
times. Regardless of the order of these 4 test_for_string_in_file
subfunctions, test_for_package_in_cpp_options fails after completing
the 2, of 4, subfunctions without even entering the 3 calling of the
test_for_string_in_file subfunction.
I don't understand that.
Any ideas gratefully received.
Jeff
On Sep 23, 2004, at 12:56 PM, Ed Hill wrote:
> On Thu, 2004-09-23 at 15:46, jeff polton wrote:
>> Hi. I'm trying to compile the gcm code on an Alpha but it wont run
>> genmake2 successfully.
>> When I run the genmake2 command it doesn't get very far in the
>> genmake2
>> process:
>>
>> --------------
>>> ../../../tools/genmake2
>>
>> GENMAKE :
>>
>> A program for GENerating MAKEfiles for the MITgcm project. For a
>> quick list of options, use "genmake -h" or for more detail see:
>>
>> http://mitgcm.org/devel_HOWTO/
>>
>> === Processing options files and arguments ===
>> getting local config information: none found
>> ../../../tools/genmake2: Command usage error at line 787: `;'
>> unexpected.
>>
>> --------------
>>
>> This same code works fine on a linux machine so I was quite surprised
>> when it failed so early on the alpha. I guess there is something wrong
>> with the setup on the alpha. Has anyone had any experience of this
>> sort
>> of problem before?
>>
>> The machine details are:
>>> uname -svrp
>> OSF1 V5.0 1094 alpha
>>
>> Thanks in advance for any advice,
>
>
> Hi Jeff,
>
> Please try the following:
>
> 1) If bash is available on the alpha, then explicitly use it
> with the syntax:
>
> $ bash ../../../tools/genmake2 -mods=../code
>
> 2) Please upgrade to a newer version of the code. I've put a
> lot of effort into making the latest genmake2 compatible
> with all sorts of Bourne and Bourne-like shells. And I
> suspect you're using an older version of genmake2 since the
> latest version doesn't have a ";" on line number 787.
>
> If the latest version of genmake2 still produces errors then please
> send
> them to this list and I'll try to help you track down the problem.
>
> Ed
>
> --
> Edward H. Hill III, PhD
> office: MIT Dept. of EAPS; Rm 54-1424; 77 Massachusetts Ave.
> Cambridge, MA 02139-4307
> emails: eh3 at mit.edu ed at eh3.com
> URLs: http://web.mit.edu/eh3/ http://eh3.com/
> phone: 617-253-0098
> fax: 617-253-4464
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://dev.mitgcm.org/mailman/listinfo/mitgcm-support
>
More information about the MITgcm-support
mailing list