[MacPorts] #52891: gcc5 @5.3.0_1: gfortran-mp-5 fails to compile a simple code (was: gfortran-mp-5 fails to compile a simple code)
MacPorts
noreply at macports.org
Wed Nov 16 04:04:04 CET 2016
#52891: gcc5 @5.3.0_1: gfortran-mp-5 fails to compile a simple code
-----------------------+----------------------
Reporter: clemreal | Owner: mww@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords:
Port: gcc5 |
-----------------------+----------------------
Changes (by ryandesign):
* status: new => assigned
* keywords: gfortran gfortran-mp-5 =>
* owner: macports-tickets@… => mww@…
* port: gcc5 5.3.0_1 => gcc5
Old 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
New 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
--
Comment:
I don't know anything about Fortran so I probably can't help you debug
this further, but it might be useful to know if you see the same problem
with gcc6 or gcc7.
--
Ticket URL: <https://trac.macports.org/ticket/52891#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list