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)
Change History (26)
comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)
Description: | modified (diff) |
---|
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 Lion → libgcc: build fails |
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@…
Attachment: | libgcc_install_failure_main.log added |
---|
main.log for failed libgcc +universal installation on Macbook w. 10.8.5
comment:6 follow-ups: 7 12 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 follow-up: 8 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.logDid 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 follow-up: 9 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 follow-up: 10 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 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.
Changed 11 years ago by cooljeanius (Eric Gallager)
libgcc_install_failure_egall_main.log
comment:12 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)
Attachment: | libgcc_install_failure_main.log.diff added |
---|
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
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)
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
comment:17 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | libgcc: build fails → libgcc: configure: error: GNU Fortran is not working; please report a bug |
---|
Looks like #30479 is a duplicate.
comment:19 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)
Owner: | changed from mww@… to macports-tickets@… |
---|---|
Status: | new → assigned |
comment:20 Changed 2 years ago by cjones051073 (Chris Jones)
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
closing as no longer relevant to current version.
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, andgcc48
does not have agfortran
variant.