[MacPorts] #40548: Can't Update GCC on Mountain Lion
#40548: Can't Update GCC on Mountain Lion ------------------------------+-------------------------------- Reporter: pina.frederick@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: ------------------------------+-------------------------------- 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$ -- Ticket URL: <https://trac.macports.org/ticket/40548> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: Can't Update GCC on Mountain Lion -------------------------------+-------------------------------- Reporter: pina.frederick@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: | -------------------------------+-------------------------------- Old description:
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$
New description: 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$ }}} -- Comment (by larryv@…): As per the link that was mentioned several times in your output, please [http://guide.macports.org/chunked/project.html#project.tickets.prerequisites 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. -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: libgcc: build fails -------------------------------+------------------- Reporter: pina.frederick@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgcc | -------------------------------+------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mww@… * port: => libgcc -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: libgcc: build fails -------------------------------+------------------- Reporter: pina.frederick@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgcc | -------------------------------+------------------- Comment (by nilstec_inc@…): Could be related to #40439. -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: libgcc: build fails -------------------------------+------------------- Reporter: pina.frederick@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgcc | -------------------------------+------------------- Comment (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. -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: libgcc: build fails -------------------------------+------------------- Reporter: pina.frederick@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgcc | -------------------------------+------------------- Comment (by 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? -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: libgcc: build fails -------------------------------+------------------- Reporter: pina.frederick@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgcc | -------------------------------+------------------- Comment (by beany_kelly@…): Replying to [comment:6 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 ... -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: libgcc: build fails -------------------------------+------------------- Reporter: pina.frederick@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgcc | -------------------------------+------------------- Comment (by ryandesign@…): Replying to [comment:7 beany_kelly@…]:
Now that you've pointed it out, I have.
Could you give us the link to the bug report? -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: libgcc: build fails -------------------------------+------------------- Reporter: pina.frederick@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgcc | -------------------------------+------------------- Comment (by beany_kelly@…): Replying to [comment:8 ryandesign@…]:
Replying to [comment:7 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. -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: libgcc: build fails -------------------------------+------------------- Reporter: pina.frederick@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgcc | -------------------------------+------------------- Comment (by egall@…): Replying to [comment:9 beany_kelly@…]:
Replying to [comment:8 ryandesign@…]:
Replying to [comment:7 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. -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: libgcc: build fails -------------------------------+------------------- Reporter: pina.frederick@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgcc | -------------------------------+------------------- Comment (by egall@…): Replying to [comment:6 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.... }}} -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: libgcc: build fails -------------------------------+------------------- Reporter: pina.frederick@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgcc | -------------------------------+------------------- Comment (by egall@…): 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: libgcc: build fails -------------------------------+------------------- Reporter: pina.frederick@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgcc | -------------------------------+------------------- Comment (by egall@…): I re-ran the gmp, libmpc, and mpfr testsuites as upstream instructed, and mpfr's testsuite failed, so I opened a separate issue for that: #42732 Anyways, once that is fixed, this should be fixed, too, but I will have to test to see for sure... -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: libgcc: build fails -------------------------------+------------------- Reporter: pina.frederick@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgcc | -------------------------------+------------------- Comment (by egall@…): Has duplicates #41753, #42752, and #42940 -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#40548: libgcc: build fails -------------------------------+------------------- Reporter: pina.frederick@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgcc | -------------------------------+------------------- Comment (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 -- Ticket URL: <https://trac.macports.org/ticket/40548#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts