makefile:NEED_VERSION: command not found

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

makefile:NEED_VERSION: command not found

#1 Unread post by mashinde »

when i run make file i got the following errors.....

----------------
./makefile
./makefile: line 31: NEED_VERSION: command not found
./makefile: command substitution: line 34: syntax error: unexpected end of file
./makefile: line 39: sources: command not found
./makefile: line 40: libraries: command not found
./makefile: line 62: ROMS_APPLICATION: command not found
./makefile: line 67: MY_HEADER_DIR: command not found
./makefile: line 77: MY_ANALYTICAL_DIR: command not found
./makefile: line 88: MY_CPP_FLAGS: command not found
./makefile: line 94: NestedGrids: command not found
./makefile: line 98: USE_DEBUG: command not found
./makefile: line 103: USE_MPI: command not found
./makefile: line 104: USE_OpenMP: command not found
./makefile: line 114: USE_MPIF90: command not found
./makefile: line 118: USE_LARGE: command not found
./makefile: line 123: USE_NETCDF4: command not found
./makefile: line 148: FORT: command not found
./makefile: line 154: BINDIR: command not found
./makefile: line 165: SCRATCH_DIR: command not found
./makefile: line 166: SCRATCH_DIR: command not found
./makefile: line 166: clean_list: command not found
./makefile: line 168: SCRATCH_DIR: command not found
Usage: strip <option(s)> in-file(s)
Removes symbols and sections from files
The options are:
-I --input-target=<bfdname> Assume input file is in format <bfdname>
-O --output-target=<bfdname> Create an output file in format <bfdname>
-F --target=<bfdname> Set both input and output format to <bfdname>
-p --preserve-dates Copy modified/access timestamps to the output
-R --remove-section=<name> Remove section <name> from the output
-s --strip-all Remove all symbol and relocation information
-g -S -d --strip-debug Remove all debugging symbols & sections
--strip-unneeded Remove all symbols not needed by relocations
--only-keep-debug Strip everything but the debug information
-N --strip-symbol=<name> Do not copy symbol <name>
-K --keep-symbol=<name> Do not strip symbol <name>
--keep-file-symbols Do not strip file symbol(s)
-w --wildcard Permit wildcard in symbol comparison
-x --discard-all Remove all non-global symbols
-X --discard-locals Remove any compiler-generated symbols
-v --verbose List all object files modified
-V --version Display this program's version number
-h --help Display this output
--info List object formats & architectures supported
-o <file> Place stripped output into <file>
strip: supported targets: elf64-x86-64 elf32-i386 a.out-i386-linux efi-app-ia32 efi-bsdrv-ia32 efi-rtdrv-ia32 efi-app-x86_64 efi-bsdrv-x86_64 efi-rtdrv-x86_64 elf64-little elf64-big elf32-little elf32-big srec symbolsrec tekhex binary ihex
./makefile: line 168: ifeq: command not found
./makefile: line 169: clean_list: command not found
./makefile: line 170: CURDIR: command not found
./makefile: line 170: clean_list: command not found
./makefile: line 171: endif: command not found
./makefile: line 172: SCRATCH_DIR: command not found
Usage: strip <option(s)> in-file(s)
Removes symbols and sections from files
The options are:
-I --input-target=<bfdname> Assume input file is in format <bfdname>
-O --output-target=<bfdname> Create an output file in format <bfdname>
-F --target=<bfdname> Set both input and output format to <bfdname>
-p --preserve-dates Copy modified/access timestamps to the output
-R --remove-section=<name> Remove section <name> from the output
-s --strip-all Remove all symbol and relocation information
-g -S -d --strip-debug Remove all debugging symbols & sections
--strip-unneeded Remove all symbols not needed by relocations
--only-keep-debug Strip everything but the debug information
-N --strip-symbol=<name> Do not copy symbol <name>
-K --keep-symbol=<name> Do not strip symbol <name>
--keep-file-symbols Do not strip file symbol(s)
-w --wildcard Permit wildcard in symbol comparison
-x --discard-all Remove all non-global symbols
-X --discard-locals Remove any compiler-generated symbols
-v --verbose List all object files modified
-V --version Display this program's version number
-h --help Display this output
--info List object formats & architectures supported
-o <file> Place stripped output into <file>
strip: supported targets: elf64-x86-64 elf32-i386 a.out-i386-linux efi-app-ia32 efi-bsdrv-ia32 efi-rtdrv-ia32 efi-app-x86_64 efi-bsdrv-x86_64 efi-rtdrv-x86_64 elf64-little elf64-big elf32-little elf32-big srec symbolsrec tekhex binary ihex
./makefile: line 172: ifeq: command not found
./makefile: line 173: clean_list: command not found
./makefile: line 174: CURDIR: command not found
./makefile: line 174: clean_list: command not found
./makefile: line 175: endif: command not found
./makefile: line 181: fg: no job control
./makefile: line 183: fg: no job control
./makefile: line 184: SCRATCH_DIR: command not found
./makefile: line 184: FC: command not found
./makefile: line 184: FFLAGS: command not found
./makefile: command substitution: line 184: syntax error near unexpected token `newline'
./makefile: command substitution: line 184: `notdir $<'
./makefile: line 184: -c: command not found
./makefile: line 186: fg: no job control
./makefile: line 187: syntax error near unexpected token `>'
./makefile: line 187: ` $(CPP) $(CPPFLAGS) $(MY_CPP_FLAGS) $< > $*.f90'


mahesh@ubuntu:~/ROMS/src$ svn update
At revision 375.



pl. help



mahesh

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

Re: makefile:NEED_VERSION: command not found

#2 Unread post by kate »

Are you using gnu make? I bet not. You must use gnu make of a rather recent version. The things it is complaining about are features supported by gnu make, but not other versions of make. We used to try to work with all makes, but gave up because gnu make is so very much more capable.

Post Reply