GCC 4.6: "gfortran -g" makes ld complain loudly when the MPI libraries are used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-defaults (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This problem can be reproduced under oneiric beta 1 (amd64) with:
sudo apt-get install gfortran libopenmpi-dev openmpi-bin
cat > test.f90 <<EOF
PROGRAM f90_test
IMPLICIT NONE
INCLUDE 'mpif.h'
INTEGER t1,nnodes,
t1=mpi_version
call mpi_init(ierror)
call mpi_comm_
call mpi_comm_
if(my_
call mpi_finalize(
END PROGRAM f90_test
EOF
mpif90 -g -o test test.f90
The output from the latter command is:
/usr/bin/ld: /tmp/pablo/
/usr/bin/ld: /tmp/pablo/
/usr/bin/ld: /tmp/pablo/
/usr/bin/ld: /tmp/pablo/
The compiled code does run:
$ ./test
2
$ _
but the above problem should be fixed nonetheless.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gfortran 4:4.6.1-2ubuntu5
ProcVersionSign
Uname: Linux 3.0.0-10-generic x86_64
Architecture: amd64
Date: Mon Sep 5 15:49:24 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
LANGUAGE=en_GB:en
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: gcc-defaults
UpgradeStatus: Upgraded to oneiric on 2011-09-02 (3 days ago)
this is fixed at least in 20.04 LTS