[MacPorts] #52891: gfortran-mp-5 fails to compile a simple code

MacPorts noreply at macports.org
Tue Nov 15 22:56:22 CET 2016


#52891: gfortran-mp-5 fails to compile  a simple code
------------------------------------+--------------------------------
 Reporter:  clemreal                |      Owner:  macports-tickets@…
     Type:  defect                  |     Status:  new
 Priority:  Normal                  |  Milestone:
Component:  ports                   |    Version:  2.3.4
 Keywords:  gfortran gfortran-mp-5  |       Port:  gcc5 5.3.0_1
------------------------------------+--------------------------------
 Hello,

 I am a beginner in fortran but I suspect a problem while compiling a very
 simple code.

 1/ The code I try to  compile, written in hello.f90

 program hello
   print *, "Hello World!"
 end program hello

 2/ Compilation

 I use the command:
 gfortran-mp-5 -o hello hello.f90

 3/ Error printed in the terminal

 <built-in>: internal compiler error: Illegal instruction: 4

 <built-in>: internal compiler error: Abort trap: 6
 gfortran-mp-5: internal compiler error: Abort trap: 6 (program f951)
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <https://trac.macports.org/newticket> for instructions.

 4/ Comments

 The command to compile the code works on my personal computer with a
 version of gfortran 5.1.0. I need to compile this code on my professionnal
 computer (Mac OS 10.11.6) without the admin rigths.

 The command gfortran-mp-5 --version returns:

 GNU Fortran (MacPorts gcc5 5.3.0_1) 5.3.0
 Copyright (C) 2015 Free Software Foundation, Inc.

 GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
 You may redistribute copies of GNU Fortran
 under the terms of the GNU General Public License.
 For more information about these matters, see the file named COPYING

 Thank you for your help

--
Ticket URL: <https://trac.macports.org/ticket/52891>
MacPorts <https://www.macports.org/>
Ports system for macOS



More information about the macports-tickets mailing list