Sponsored Content
Top Forums Programming "make" fails on the first .f90 file it encounters: not creating .o files Post 302563546 by crimso on Tuesday 11th of October 2011 01:31:47 PM
Old 10-11-2011
"make" fails on the first .f90 file it encounters: not creating .o files

i may be asking way too much here but i am not a programmer and not sure where to to turn. i have a program that i am trying to "make". but the compiler i am supposed to use gets nowhere. there are a bunch of .f90 files that are being processed as follows but it doesn't get past the first one:

Code:
/usr/bin/cpp -P -C -traditional >xml.f90 -DMPI  -DHOST=\"LinuxIFC\" -DIFC -Dkind8 -DNGZhalf -DCACHE_SIZE=4000 -DPGF90 -Davoidalloc -DMPI_BLOCK=500 -DRPROMU_DGEMV  -DRACCMU_DGEMV
/usr/apps/vasp/4.6/mpich2-1.2.1p1/bin/mpif77 -FR -lowercase -assume byterecl  -O3 -xW  -c xml.f90

error:
gfortran: byterecl: No such file or directory
gfortran: language W not recognized
gfortran: language W not recognized
make: *** [xml.o] Error 1

if i use another compiler just to see what happens it goes thru all the files but there are no .o files at the end and the make executable fails with a bunch of "gfortran: filename.o: No such file or directory"
 

10 More Discussions You Might Find Interesting

1. Programming

how could i make a program mixed with many "|", "<" and ">"

I have written following code to do: ls -l | wc -w, it works: but when there are not only a single "|", if there are more such as: ls -l | sort -r | sort | sort -r, This program does not work, i want to know how could i deal with it when there are more "|", another situation is that, if it mixes... (2 Replies)
Discussion started by: strugglingman
2 Replies

2. UNIX for Dummies Questions & Answers

#!/bin/sh script fails at StringA | tr "[x]" "[y]"

I need to take a string (stringA) check it for spaces and replace any spaces found with an equal (=) sign. This is not working. There are spaces between each component: $StringA | tr "" "" The error returned is: test: Specify a parameter with this command Can you help? (3 Replies)
Discussion started by: by_tg
3 Replies

3. Shell Programming and Scripting

Can I make "touch" create executable files by manipulating umask?

I'm getting to grips with this concept of the umask. What I thought was, setting umask uga+rwx would result in creating files with all permissions for everyone. Seems not to be the case though. Read and write bits get set, but not the execute bit. Is there some gap in my understanding, or is... (2 Replies)
Discussion started by: tphyahoo
2 Replies

4. Programming

compile fails in linux ... "No rule to make target" ... HELP

hello all, attached you can find a tool (written in C) that i really need to make it compile under linux i am able to compile and run it successfully in mac os x, but in linux the compilation fails the only thing that i did so far is to change the following #include <sys/malloc.h> to... (13 Replies)
Discussion started by: OneDreamCloser
13 Replies

5. Shell Programming and Scripting

Make scipt except from "Y","y" and "yes" to take [Enter] as being "yes"

This is the script: #!/bin/sh if ; then rm -rf /usr/share/WallpaperChanger; fi if ; then rm -rf /usr/bin/wallch; fi; if ; then rm -rf /usr/share/applications/wallch.desktop; fi if ; then rm -rf /usr/share/doc/wallch; fi if ; then rm -rf /usr/share/man/man1/wallch.1.gz; fi echo "Delete... (4 Replies)
Discussion started by: hakermania
4 Replies

6. Shell Programming and Scripting

Creating a Shortcut (to just type "l" but it runs "ls -lah")

How do I create shortcuts? For example: I just want to type one key "l" and have it output the command of "ls -lah" I believe it's creating a file called l with 755 permissions but I'm not sure where to put the file. *if it matters, I'm on a shared hosting web server using cPanel with... (2 Replies)
Discussion started by: ijustsawmars
2 Replies

7. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

8. Programming

make fails with "undefined reference to..."

i am compiling a program called vasp on suse and get the following error. there are many more preprocess and ifort commands prior so i just grabbed the tail of the log file: ./preprocess <main.F | /usr/bin/cpp -P -C -traditional >main.f90 -DMPI -DHOST=\"LinuxIFC\" -DIFC -Dkind8 -DNGZhalf... (6 Replies)
Discussion started by: crimso
6 Replies

9. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

10. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
make(3erl)						     Erlang Module Definition							make(3erl)

NAME
make - A Make Utility for Erlang DESCRIPTION
The module make provides a set of functions similar to the UNIX type Make functions. EXPORTS
all() -> up_to_date | error all(Options) -> up_to_date | error Types Options = [Option] Option = noexec | load | netload | <compiler option> This function first looks in the current working directory for a file named Emakefile (see below) specifying the set of modules to compile and the compile options to use. If no such file is found, the set of modules to compile defaults to all modules in the cur- rent working directory. Traversing the set of modules, it then recompiles every module for which at least one of the following conditions apply: * there is no object file, or * the source file has been modified since it was last compiled, or, * an include file has been modified since the source file was last compiled. As a side effect, the function prints the name of each module it tries to compile. If compilation fails for a module, the make pro- cedure stops and error is returned. Options is a list of make- and compiler options. The following make options exist: * noexec No execution mode. Just prints the name of each module that needs to be compiled. * load Load mode. Loads all recompiled modules. * netload Net load mode. Loads all recompiled modules an all known nodes. All items in Options that are not make options are assumed to be compiler options and are passed as-is to compile:file/2 . Options defaults to [] . files(ModFiles) -> up_to_date | error files(ModFiles, Options) -> up_to_date | error Types ModFiles = [Module | File] Module = atom() File = string() Options = [Option] Option = noexec | load | netload | <compiler option> files/1,2 does exactly the same thing as all/0,1 but for the specified ModFiles , which is a list of module or file names. The file extension .erl may be omitted. The Emakefile (if it exists) in the current directory is searched for compiler options for each module. If a given module does not exist in Emakefile or if Emakefile does not exist, the module is still compiled. EMAKEFILE
make:all/0,1 and make:files/1,2 looks in the current working directory for a file named Emakefile . If it exists, Emakefile should contain elements like this: Modules. {Modules,Options}. Modules is an atom or a list of atoms. It can be * a module name, e.g. file1 * a module name in another directory, e.g. ../foo/file3 * a set of modules specified with a wildcards, e.g. 'file*' * a wildcard indicating all modules in current directory, i.e. '*' * a list of any of the above, e.g. ['file*','../foo/file3','File4'] Options is a list of compiler options. Emakefile is read from top to bottom. If a module matches more than one entry, the first match is valid. For example, the following Emake- file means that file1 shall be compiled with the options [debug_info,{i,"../foo"}] , while all other files in the current directory shall be compiled with only the debug_info flag. {'file1',[debug_info,{i,"../foo"}]}. {'*',[debug_info]}. Ericsson AB tools 2.6.6.3 make(3erl)
All times are GMT -4. The time now is 09:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy