Opened 8 years ago
Last modified 3 years ago
#52891 closed defect
gfortran-mp-5 fails to compile a simple code — at Initial Version
Reported by: | clemreal | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | ||
Port: | gcc5 |
Description
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