Bug 1263169 - Internal compile error Fortran
Summary: Internal compile error Fortran
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 22
Hardware: Unspecified
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-15 09:22 UTC by Xeku
Modified: 2015-09-30 09:56 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-30 06:30:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
The archive for example (95 bytes, text/plain)
2015-09-15 09:22 UTC, Xeku
no flags Details

Description Xeku 2015-09-15 09:22:10 UTC
Created attachment 1073553 [details]
The archive for example

Description of problem: Try compile with gfortran an archive with .f90 extension. with command:
gfortran archive.f90 

Output:

init2.c:37: MPFR assertion failed: (64 - 0) == ((64 - 0)/8) * 8 && sizeof(mp_limb_t) == ((64 - 0)/8)
<interno>:0:0: internal compiler error: Abortado

Comment 1 Jakub Jelinek 2015-09-15 10:07:57 UTC
It compiles just fine here (F22, x86_64).  What architecture is this on?
rpm -q --qf '%{name}-%{version}-%{release}.%{arch}\n' gcc-gfortran mpfr

Comment 2 Xeku 2015-09-25 09:56:28 UTC
Hi, thank you for your reply.

With uname -a I have:

Linux localhost.localdomain 4.1.5-200.fc22.i686 #1 SMP Tue Aug 11 00:11:41 UTC 2015 i686 i686 i386 GNU/Linux

And with rpm -q --qf '%{name}-%{version}-%{release}.%{arch}\n' gcc-gfortran mpfr
I have:

gcc-gfortran-5.1.1-4.fc22.i686
mpfr-3.1.2-8.fc22.i686

Comment 3 Marek Polacek 2015-09-29 13:44:47 UTC
Does
$ rpm -V gcc-gfortran mpfr
say anything?

I couldn't reproduce the crash either (even with -m32).

Comment 4 Xeku 2015-09-29 16:17:30 UTC
Good day:

The output is:

....L....    /usr/lib/libmpfr.so.4
.......T.  d /usr/share/doc/mpfr/AUTHORS
S.5....T.  d /usr/share/doc/mpfr/BUGS
.......T.  d /usr/share/doc/mpfr/COPYING
.......T.  d /usr/share/doc/mpfr/COPYING.LESSER
S.5....T.  d /usr/share/doc/mpfr/FAQ.html
S.5....T.  d /usr/share/doc/mpfr/NEWS
S.5....T.  d /usr/share/doc/mpfr/TODO
.......T.  d /usr/share/doc/mpfr/examples/ReadMe
S.5....T.  d /usr/share/doc/mpfr/examples/divworst.c
S.5....T.  d /usr/share/doc/mpfr/examples/rndo-add.c
S.5....T.  d /usr/share/doc/mpfr/examples/sample.c
S.5....T.  d /usr/share/doc/mpfr/examples/version.c

Comment 5 Marek Polacek 2015-09-29 16:19:18 UTC
I don't think you should see an output like that.  Can you try re-installing mpfr?

Comment 6 Jakub Jelinek 2015-09-29 16:26:37 UTC
So, what does
ls -l /usr/lib/libmpfr.so.4
print?  The L above indicates that most likely it is not the /usr/lib/libmpfr.so.4.1.2 that it should point to.  Do you have some other libmpfr installed?

Comment 7 Xeku 2015-09-30 00:47:38 UTC
ls -l /usr/lib/libmpfr.so.4
output: lrwxrwxrwx. 1 root root 16 sep 15 02:49 /usr/lib/libmpfr.so.4 -> libmpfr.so.4.1.3

 ls -l /usr/lib/libmpfr.so.4.1.2
output: -rwxr-xr-x. 1 root root 397444 dic 12  2014 /usr/lib/libmpfr.so.4.1.2

ls -l /usr/lib/libmpfr.so.4.1.3
output: -rwxr-xr-x. 1 root root 436668 sep 15 02:49 /usr/lib/libmpfr.so.4.1.3


SO, I guess that I have 2 libmpfr, right? SHould I remove libmpfr.so.4.1.2?

Comment 8 Jakub Jelinek 2015-09-30 06:30:17 UTC
Well, /usr/lib/libmpfr.so.4.1.2 is what comes from the distro, the other one is that you have somehow installed manually or whatever, and is most likely broken.

Comment 9 Xeku 2015-09-30 07:48:48 UTC
When I remove /usr/lib/libmpfr.so.4.1.3 and I try compile, the output now is it:

/usr/libexec/gcc/i686-redhat-linux/5.1.1/f951: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory


What I should install now?

Comment 10 Jakub Jelinek 2015-09-30 07:57:09 UTC
Just run ldconfig (as root).

Comment 11 Xeku 2015-09-30 09:56:36 UTC
Thank you so much, now all works fine.

Greetings.


Note You need to log in before you can comment on or make changes to this bug.