gfortran coarray library not compiling with Ubuntu 20.04
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| gcc-defaults (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
I have been trying to install and run coarray libraries for gfortran. Every instruction set I can find on the interwebs gives Ubuntu 18.04 instructions. So far, I have run into a series of errors, using 20.04 and it seems I am not alone. Here is where I am at:
I was looking to run coarrays in gfortran. I was following instructions et al that directed me to download open-coarrays-bin using apt. I get an error message saying that apt is unable to find the package. I found another post mentioning this error in 20.04, at https:/
```
cd ~/Downloads
wget http://
wget http://
wget http://
wget http://
sudo apt-get install ./libhwloc5_
```
And so, now, checking, the binary package is installed, but when I go to compile a test script:
```
gfortran -fcoarray=lib test_coarray.f95 -o testcoarray
```
I get the error:
```
/usr/bin/ld: /tmp/cctOU7Q5.o: in function `MAIN__':
test_coarray.
/usr/bin/ld: test_coarray.
/usr/bin/ld: /tmp/cctOU7Q5.o: in function `main':
test_coarray.
/usr/bin/ld: test_coarray.
collect2: error: ld returned 1 exit status
```
using caf directly:
```
caf test_coarray.f95 -o testcoarray
```
I get the error:
```
gfortran: error: /usr/lib/
Error: comand:
`/usr/
failed to compile.
```
Okay, so I do some digging and it seems that the libcaf_mpi.a file does not exist. Running:
```
ls /usr/lib/
```
I get:
```
libcaf_mpich.a
libcaf_mpich.so
libcaf_mpich.so.3
libcaf_mpi.so.2
libcaf_openmpi.a
libcaf_openmpi.so
libcaf_openmpi.so.3
```
I saw somewhere in my searching that someone modified the /usr/bin/caf file, changing the line:
```
caf_libs=
```
to:
```
caf_libs=
```
So, now, I try to compile the code, but I get the message:
```
f951: Warning: Nonexistent include directory ‘/usr/include/
/usr/bin/ld: warning: libmpi_mpifh.so.20, needed by /usr/lib/
/usr/bin/ld: warning: libgfortran.so.4, needed by /usr/lib/
```
So, it seems there is some unmet dependencies in the repositories, but I am not sure. I have, here, reached the end of both my expertise and, it seems, the internet trail of this bug. It would seem that this all works in Ubuntu 18.04, but I have not tested it myself, so I cannot be sure. I thank you for reading this far and really do hope that I haven't overloaded you with too much detail. Coarrays really is necessary for my work and your help here will be greatly appreciated. Please let me know if there is any more information needed and it will be provided posthaste.
Regards, Adrian
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gfortran 4:9.3.0-1ubuntu2
ProcVersionSign
Uname: Linux 5.4.0-48-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Sun Sep 27 14:43:52 2020
InstallationDate: Installed on 2020-07-28 (60 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
ProcEnviron:
LANGUAGE=en_AU:en
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_AU.UTF-8
SHELL=/bin/bash
SourcePackage: gcc-defaults
UpgradeStatus: No upgrade log present (probably fresh install)

Hello, just wondering if this was ever addressed. It is still important