Opened 11 years ago

Closed 2 years ago

#40548 closed defect (wontfix)

libgcc: configure: error: GNU Fortran is not working; please report a bug

Reported by: pina.frederick@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: beany_kelly@…, cooljeanius (Eric Gallager), larryv (Lawrence Velázquez)
Port: libgcc

Description (last modified by larryv (Lawrence Velázquez))

Please help !

Last login: Fri Sep 20 10:02:02 on console
Fredericks-MacBook-Pro:~ frederickpina$ sudo port install gcc
Password:
Error: Port gcc not found
Fredericks-MacBook-Pro:~ frederickpina$ sudo port install gcc +universal
Password:
Error: Port gcc not found
Fredericks-MacBook-Pro:~ frederickpina$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Fredericks-MacBook-Pro:~ frederickpina$ sudo port install gcc48 +gfortran+universal
--->  Computing dependencies for gcc48
--->  Dependencies to be installed: libgcc
--->  Building libgcc
Error: org.macports.build for port libgcc returned: command execution failed
Error: Failed to install libgcc
Please see the log file for port libgcc for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/main.log
Error: The following dependencies were not installed: libgcc
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gcc48 failed
Fredericks-MacBook-Pro:~ frederickpina$ sudo port clean gcc48
--->  Cleaning gcc48
Fredericks-MacBook-Pro:~ frederickpina$ sudo port install gcc48 +universal
--->  Computing dependencies for gcc48
--->  Dependencies to be installed: libgcc
--->  Building libgcc
Error: org.macports.build for port libgcc returned: command execution failed
Error: Failed to install libgcc
Please see the log file for port libgcc for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/main.log
Error: The following dependencies were not installed: libgcc
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gcc48 failed
Fredericks-MacBook-Pro:~ frederickpina$ 

Attachments (6)

libgcc_install_failure_main.log (18.9 MB) - added by beany_kelly@… 11 years ago.
main.log for failed libgcc +universal installation on Macbook w. 10.8.5
main.log (16.3 MB) - added by cooljeanius (Eric Gallager) 11 years ago.
libgcc_install_failure_egall_main.log
libgcc_install_failure_main.log.diff (34.2 MB) - added by cooljeanius (Eric Gallager) 11 years ago.
diff between OP's main.log and mine
config.log (80.4 KB) - added by cooljeanius (Eric Gallager) 11 years ago.
my config.log for gfortran
gfortran_config.log.diff (132.5 KB) - added by cooljeanius (Eric Gallager) 11 years ago.
diff between the config.log posted upstream in gcc's bugzilla and the one that I posted here
libgcc_crashes.zip (8.8 KB) - added by cooljeanius (Eric Gallager) 11 years ago.
zip archive of crash reports generated during the gcc build process

Change History (26)

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)

As per the link that was mentioned several times in your output, please clean, try again, and attach the main.log file, which was also mentioned several times in your output.

By the way, there is no gcc port, and gcc48 does not have a gfortran variant.

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to mww@…
Port: libgcc added
Summary: Can't Update GCC on Mountain Lionlibgcc: build fails

comment:3 Changed 11 years ago by nilstec_inc@…

Could be related to #40439.

comment:4 Changed 11 years ago by beany_kelly@…

Cc: beany_kelly@… added

Cc Me!

comment:5 Changed 11 years ago by beany_kelly@…

I've encountered this, when trying to install gcc47 +universal. This requires libgcc +universal, and the build of this fails. I did

sudo port selfupdate
sudo port uninstall libgcc
sudo port install libgcc +universal

This last yields:

dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
--->  Computing dependencies for libgcc
--->  Fetching archive for libgcc
--->  Attempting to fetch libgcc-4.8.1_3+universal.darwin_12.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/libgcc
--->  Attempting to fetch libgcc-4.8.1_3+universal.darwin_12.i386-x86_64.tbz2 from http://packages.macports.org/libgcc
--->  Attempting to fetch libgcc-4.8.1_3+universal.darwin_12.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/libgcc
--->  Fetching distfiles for libgcc
--->  Verifying checksums for libgcc
--->  Extracting libgcc
--->  Configuring libgcc
--->  Building libgcc
Error: org.macports.build for port libgcc returned: command execution failed
Please see the log file for port libgcc for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/main.log

... and I'm attaching my main.log now.

Changed 11 years ago by beany_kelly@…

main.log for failed libgcc +universal installation on Macbook w. 10.8.5

comment:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

In the log, I see:

error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/build/x86_64-apple-darwin12/libgfortran/config.log

Did you do that?

comment:7 in reply to:  6 ; Changed 11 years ago by beany_kelly@…

Replying to ryandesign@…:

In the log, I see:

error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/build/x86_64-apple-darwin12/libgfortran/config.log

Did you do that?

Now that you've pointed it out, I have. But this is going further down the rabbit-hole, since a response from the GCC people (assuming I reported it correctly, and it's not a dupe) will almost certainly involve further tinkering with the innards of MacPorts in ways only a ports developer/maintainer would be comfortable with ...

comment:8 in reply to:  7 ; Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to beany_kelly@…:

Now that you've pointed it out, I have.

Could you give us the link to the bug report?

comment:9 in reply to:  8 ; Changed 11 years ago by beany_kelly@…

Replying to ryandesign@…:

Replying to beany_kelly@…:

Now that you've pointed it out, I have.

Could you give us the link to the bug report?

Sorry; here it is: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58842

I had one reply, making some quite reasonable suggestions that I haven't yet had time to act on, and which --- as I expected --- require me to get my hands dirtier.

comment:10 in reply to:  9 Changed 11 years ago by cooljeanius (Eric Gallager)

Replying to beany_kelly@…:

Replying to ryandesign@…:

Replying to beany_kelly@…:

Now that you've pointed it out, I have.

Could you give us the link to the bug report?

Sorry; here it is: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58842

This was closed as "worksforme", so I doubt we will be getting much help from upstream here. Anyways, I recently ran into this error on my computer, too, so I will attach my own logs here next.

comment:11 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Changed 11 years ago by cooljeanius (Eric Gallager)

Attachment: main.log added

libgcc_install_failure_egall_main.log

comment:12 in reply to:  6 Changed 11 years ago by cooljeanius (Eric Gallager)

Replying to ryandesign@…:

In the log, I see:

error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/build/x86_64-apple-darwin12/libgfortran/config.log

Just comparing with mine:

configure: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/build/x86_64-apple-darwin10/libgfortran/config.log
make[1]: *** [configure-target-libgfortran] Error 1
make[1]: *** Waiting for unfinished jobs....

Changed 11 years ago by cooljeanius (Eric Gallager)

diff between OP's main.log and mine

Changed 11 years ago by cooljeanius (Eric Gallager)

Attachment: config.log added

my config.log for gfortran

comment:13 Changed 11 years ago by cooljeanius (Eric Gallager)

Here is the relevant part of my config.log:

configure:15630: checking whether the GNU Fortran compiler is working
configure:15643: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/build/./gcc/gfortran -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/build/./gcc/ -B/opt/local/x86_64-apple-darwin10/bin/ -B/opt/local/x86_64-apple-darwin10/lib/ -isystem /opt/local/x86_64-apple-darwin10/include -isystem /opt/local/x86_64-apple-darwin10/sys-include    -c -g -O2  conftest.f >&5
f951: internal compiler error: Illegal instruction

f951: internal compiler error: Abort trap
gfortran: internal compiler error: Abort trap (program f951)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/gcc-4.8.2/libgfortran/configure: line 1893: 32151 Abort trap              $FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext 1>&5
configure:15643: $? = 134
configure: failed program was:
| 
|       program foo
|       real, parameter :: bar = sin (12.34 / 2.5)
|       end program foo
configure:15647: result: no
configure:15649: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/build/x86_64-apple-darwin10/libgfortran/config.log

Changed 11 years ago by cooljeanius (Eric Gallager)

Attachment: gfortran_config.log.diff added

diff between the config.log posted upstream in gcc's bugzilla and the one that I posted here

comment:14 Changed 11 years ago by cooljeanius (Eric Gallager)

I re-ran the gmp, libmpc, and mpfr testsuites as upstream instructed, and mpfr's testsuite failed (edit: same with libmpc), so I opened a separate issue for that: #42732 (edit: and #42733 for the other)

Anyways, once those are fixed, this should be fixed, too, but I will have to test to see for sure...

Edit: also, seeing as gcc depends on its dependencies being built properly (as shown here), it would probably be useful the testsuites of its dependencies were run automatically as part of the normal install process, so I opened a separate issue for that, as well: #42731

Last edited 11 years ago by cooljeanius (Eric Gallager) (previous) (diff)

Changed 11 years ago by cooljeanius (Eric Gallager)

Attachment: libgcc_crashes.zip added

zip archive of crash reports generated during the gcc build process

comment:15 Changed 11 years ago by cooljeanius (Eric Gallager)

Has duplicates #41753, #42752, and #42940

comment:16 Changed 11 years ago by email.sachinarora@…

was trying sudo port install gcc48 +universal but it would get stuck at building libgcc stage(gfortran not working)..so i tried this instead and it worked..

sudo port clean libgcc
sudo port -v install gcc48 +gfortran
sudo port select --set gcc mp-gcc48
hash gcc
gcc -v
Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:17 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: libgcc: build failslibgcc: configure: error: GNU Fortran is not working; please report a bug

Looks like #30479 is a duplicate.

comment:18 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… added

Cc Me!

comment:19 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Owner: changed from mww@… to macports-tickets@…
Status: newassigned

comment:20 Changed 2 years ago by cjones051073 (Chris Jones)

Resolution: wontfix
Status: assignedclosed

closing as no longer relevant to current version.

Note: See TracTickets for help on using tickets.