gfortran Questions

13

Solved

I'm trying to install the package lars. Ubuntu 11.04 Natty 64-bit. From building I get: * installing *source* package âlarsâ ... ** libs gfortran -fpic -O3 -pipe -g -c delcol.f -o delcol.o gcc -s...
Cypress asked 10/6, 2011 at 5:10

3

I am facing an error whenever I try to compile fortran code: % gfortran Testing_Fortran.f90 -o Testing_Fortran ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLi...
Cartulary asked 4/11, 2022 at 13:47

3

I use a Fortran 90 model under Ubuntu 14.04. The gfortran 95 compiler (gfortran 4:4.8.2-1ubuntu6) and the gcc 4:4.8.2-1ubuntu6 are installed by Ubuntu Software Center. After I ran the model I get t...
Margueritamarguerite asked 17/2, 2015 at 8:51

6

Solved

I have the following code: program main character (len=15) :: abc = "te st tex t" print *, trim(abc) end program main Which outputs: te st tex t I excepted all the whitespace to be remo...
Sideways asked 27/11, 2014 at 22:37

2

Solved

Assume I have two Fortran modules called modA and modB. Is there a way to use one or the other in a program based on a conditional statement? Does this require some type of preprocessing? For examp...
Vasileior asked 13/5, 2016 at 21:19

7

Solved

I'm on a MacBook Air with an Apple M1 chip, using macOS 11.6 Big Sur. I'm on R 4.1.1. I have Xtools and gfortran for the Apple M1 installed: markwhite@marks-air ~ % which xcode-select /usr/bin/xcod...
Gonsalves asked 20/10, 2021 at 2:54

13

I am trying to install an R package from source, but getting an error: * installing *source* package ‘mclust’ ... ** package ‘mclust’ successfully unpacked and MD5 sums checked ** libs gfortran-4....
Diathesis asked 14/3, 2016 at 23:16

0

I was getting this error: error while loading shared libraries: libgfortran.so.4: cannot open shared object file: No such file or directory To resolve this, I searched "libgfortran.so.4"...
Sanctus asked 2/6, 2023 at 9:34

3

When I try to install libgfortran.so.3 on Ubuntu 20.04 using: sudo apt-get install libgfortran3 it shows: E: Unable to locate package libgfortran3 How can I install Fortran on 20.04?
Rigger asked 15/7, 2020 at 6:40

5

Is there a way to control the case of symbols emitted by GNU Fortran 4.8? Older versions (such as 3.4) had -fcase-lower, -fcase-preserve and -fcase-upper to force lower case, the case used in the ...
Zorazorah asked 14/10, 2014 at 8:41

2

Solved

I'm trying to learn Fortran2018 using gfortran. When playing around with pointers I noticed that there doesn't seem to be a facility to test for nullpointers. So I have two questions: Is there rea...
Shillong asked 6/5, 2022 at 10:44

4

Solved

Is it possible to set a parameter variable with NaN? and have that in a particular module. I want to use it for initialization of some other variables. Therefore, I'll be faced with a run-time erro...
Jaynajayne asked 12/8, 2015 at 17:32

2

In Terminal getting the following message running code using gfortran. Seems to be an Xcode 12.5 on Big Sur and M1 chip: objc[1554]: Class AMSupportURLConnectionDelegate is implemented in both /usr...
Windpollinated asked 22/6, 2021 at 2:1

4

Solved

The following code compiles in both GNU gfortran and Intel ifort. But only the gfortran compiled version will run successfully. program fort_tst use iso_c_binding INTEGER, POINTER :: a(:) TYP...

9

Solved

I am getting a strange error when trying to compile a simple fortran-90 file using gfortran. I am working on a macOS mojave system. I have gfortran 8.2.0 installed and I checked to be sure of this ...
Harmaning asked 15/5, 2019 at 19:38

2

Solved

I am trying to compile a big solver using a makefile. When typing make, the following command gets executed: mpif90 -O2 -fpp -I/somePath/ -c precision.F90 I get the following error: gfortran: e...
Luckless asked 1/9, 2015 at 15:30

2

Solved

What argument type should I use in C when calling a Fortran function that takes logical arguments, specifically with gfortran? Where is this documented for gfortran? Here's an example program that ...
Shrewd asked 2/11, 2021 at 18:50

2

Solved

In Fortran, is it possible to define a function which returns multiple values like below? [a, b] = myfunc(x, y)
Brackish asked 9/5, 2016 at 15:56

3

I am trying to debug a fortran file on Visual Studio code(ubuntu 18.04). I have the following installed extensions My launch.json file is the following "version": "0.0.1", "configurations": [...
Contamination asked 15/8, 2018 at 20:32

3

Solved

I would like to compile a program with gfortran and -O3 -ffast-math enabled, since it gives a nice performance boost. I was rather confused, that gfortran's isnan() catched some NaN's but not all o...
Firearm asked 11/4, 2013 at 8:59

1

Solved

I am debugging some code that contains many Fortran modules, some of which share variables between each other. Unfortunately, gdb with VScode seems to have trouble inspecting imported variables whe...

2

Solved

When interfacing a piece of Fortran 2003 (or above) code with MATLAB by MEX, I am surprised to find that MEX changes the kind of the default logical. This is fatal, because a piece of perfectly com...
Cammiecammy asked 5/9, 2021 at 3:38

0

I've downloaded an old repo on a new laptop (running on MacOS Catalina) and attempted to run a R script. The repo has a renv lock file - meaning, I should be able to restore all dependencies as the...
Incommensurate asked 4/8, 2021 at 8:25

6

I have been using MinGW and the GNU Fortran compiler for a while in order to compile Fortran programs on Windows, which has always been a successful method. However, I have been getting the followi...
Wallie asked 4/8, 2014 at 17:21

2

I've a fortran program I'd like to distribute, so I'd like to statically link in the gfortran libraries. If I compile the program with the following flags: gfortran -o myprog -static-libgfortran ...
Anisomerous asked 11/7, 2013 at 10:3

© 2022 - 2024 — McMap. All rights reserved.