Customizing the build script

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
bosnic
Posts: 4
Joined: Thu Jun 09, 2011 2:10 pm
Location: Faculdade de Ciências, Universidade de Lisboa

Customizing the build script

#1 Unread post by bosnic »

Hi!

I´m trying to start modelling with ROMS but I'm having some difficulty on installing it. Once I work with windows 7, I'm installing it via cygwin but I can't create the executable oceanS. When I try to execute the build.bash that is what happens:

$ ./build.bash
makefile:32: *** This makefile requires one of GNU make version 3.80 3.81 3.82.. Stop.
makefile:32: *** This makefile requires one of GNU make version 3.80 3.81 3.82.. Stop.

However, I'm sure that I've installed the GNU make vs 3.82 when I installed cygwin. I also check the bin folder inside cygwin directory and the package "make" was there.

Does anyone have any idea of what I'm doing wrong? I can't understand because I have already done the roms instalation in my personal computer (wich is also a W7) and I didin't have any problem.

Thank you

Ivana

User avatar
kate
Posts: 4088
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Customizing the build script

#2 Unread post by kate »

You can try things like:

Code: Select all

delta.arsc.edu 495% which make
/usr/bin/make
and

Code: Select all

delta.arsc.edu 496% make --version
GNU Make 3.81
to see what you have. What do you get?

bosnic
Posts: 4
Joined: Thu Jun 09, 2011 2:10 pm
Location: Faculdade de Ciências, Universidade de Lisboa

Re: Customizing the build script

#3 Unread post by bosnic »

I've downloaded gnu make vs. 3.81 and the buil.bash run perfectly!

Thank you very much Kate.

IB

ming
Posts: 5
Joined: Wed Nov 28, 2012 5:27 pm
Location: University of Tasmania

Re: Customizing the build script

#4 Unread post by ming »

Hi there,

I am a beginner. I have the same problem. I am not sure how to solve this problem. Could you please explain it step by step? Thank you very much.

User avatar
kate
Posts: 4088
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Customizing the build script

#5 Unread post by kate »

What happens when you try:

Code: Select all

pacman6 288% which make
/usr/bin/make
pacman6 289% make --version
GNU Make 3.81
I believe it should work with 3.82 as well - are you seeing 3.82 there?

User avatar
m.hadfield
Posts: 521
Joined: Tue Jul 01, 2003 4:12 am
Location: NIWA

Re: Customizing the build script

#6 Unread post by m.hadfield »

Hi ming

I have replied on the other thread relating to this issue.

Mark

ming
Posts: 5
Joined: Wed Nov 28, 2012 5:27 pm
Location: University of Tasmania

Re: Customizing the build script

#7 Unread post by ming »

Hi Kate and Mark,

Thank you very much for replying to me.

Kate, I have tried and got the following messages.

$ which make
/usr/bin/make

$ make --version
GNU Make 3.82.90
Built for i686-pc-cygwin
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Mark, I will find your post on the other thread.


Kind Regards,

Ming

rbani
Posts: 12
Joined: Thu Feb 27, 2014 1:14 am
Location: Mcgill University

Re: Customizing the build script

#8 Unread post by rbani »

Hi
I do have a make 4.0
and doesnt work, so should i change it to older version?

Thanks

User avatar
kate
Posts: 4088
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Customizing the build script

#9 Unread post by kate »

How does it not work? Does your makefile have this line near the top?

Code: Select all

NEED_VERSION := 3.80 3.81 3.82 3.82.90 4.0

rbani
Posts: 12
Joined: Thu Feb 27, 2014 1:14 am
Location: Mcgill University

Re: Customizing the build script

#10 Unread post by rbani »

Dear Kate
I added the version 4.0 the makefile and i got a new different error


cd Build_plt; -c /align /G7 /MD /Ox areafill.f90 /object:areafill.o
/bin/sh: -c: command not found
make: *** [Build_plt/areafill.o] Error 127


Any idea

Thanks

rbani
Posts: 12
Joined: Thu Feb 27, 2014 1:14 am
Location: Mcgill University

Re: Customizing the build script

#11 Unread post by rbani »

I found the problem, which was in the compiler.

Then a new error

/usr/bin/cpp -P -traditional -DCYGWIN -DX86_64 -DGFORTRAN -DNCARG520 -Drmdocinc -IInclude -IUtility Drivers/cnt.F > Build_plt/cnt.f90
Bin/cpp_clean Build_plt/cnt.f90
cd Build_plt; /usr/bin/gfortran -c -frepack-arrays -O3 -ffast-math cnt.f90
/usr/bin/gfortran -frepack-arrays -O3 -ffast-math Build_plt/cnt.o Build_plt/cpmpxy2d.o Build_plt/mapeod.o Build_plt/stumsl.o Build_plt/stumxy.o Build_plt/vvumxy.o -o /cygdrive/c/Users/bani/home/bin/cnt Build_plt/libUTIL.a -L/usr/local/lib -lnetcdf
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: cannot open output file /cygdrive/c/Users/bani/home/bin/cnt.exe: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [/cygdrive/c/Users/bani/home/bin/cnt] Error 1


:roll:

Post Reply