#41753: libgcc-4.8.2_0+universal build fails on fresh reinstall of macports --------------------+-------------------------------- Reporter: me@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: libgcc --------------------+-------------------------------- To resolve a problem upgrading libgcc I saved my list of installed ports, removed everything, reinstalled macports, and tried installing libgcc from scratch. It still fails, apparently due to the same problem. In main.log there are a lot of messages that seem out of order, such as {{{ :info:build checking for inttypes.h... yes :info:build yes :info:build checking whether errno must be declared... checking for stdint.h... yes :info:build no :info:build checking for unsigned long long... checking size of int... yes :info:build checking for inttypes.h... 4 :info:build checking for a 64-bit type... yes :info:build uint64_t }}} and {{{ :info:build configure: creating ./config.status :info:build -1 :info:build checking for vfork.h... no }}} and there are an awful lot of compiler warnings, which I don't know enough to know if any are actually problematic. `grep error main.log` reveals the same error that occurred before the reinstall: {{{ :info:build 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-darwin11/libgfortran/config.log }}} From `grep fatal config.log` it looks like some of the source is missing: {{{ xgcc: fatal error: no input files xgcc: fatal error: no input files conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found conftest.c:52:26: fatal error: minix/config.h: No such file or directory conftest.c:19:10: fatal error: 'minix/config.h' file not found xgcc: fatal error: no input files xgcc: fatal error: no input files gfortran: fatal error: no input files gfortran: fatal error: no input files }}} I did the reinstall & rebuild more than once before I was sure I was getting the whole process right. I don't remember every variation, I started with the instructions at https://trac.macports.org/wiki/Migration and http://guide.macports.org/#installing.macports.uninstalling , and ended up with this: $ sudo port -qv installed > ~/Downloads/portslist.text # I figured out too late that I really only want requested ports e.g. port -qv installed requested $ sudo port -f uninstall installed # no errors $ sudo port clean all # no errors $ sudo rm -rf /opt/local /Applications/DarwinPorts /Applications/MacPorts /Library/LaunchDaemons/org.macports.* /Library/Receipts/DarwinPorts*.pkg /Library/Receipts/MacPorts*.pkg /Library/StartupItems/DarwinPortsStartup /Library/Tcl/darwinports1.0 /Library/Tcl/macports1.0 ~/.macports # not all existed $ /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer ~/Downloads/MacPorts-2.2.1-10.7-Lion.pkg # GUI install succeded $ sudo less /opt/local/etc/macports/macports.conf # all at defaults $ sudo port selfupdate # ports tree updated $ sudo port upgrade outdated # nothing to do $ sudo port upgrade installed # nothing to do $ sudo port install libgcc +universal # succeeds on all prerequisites, fails on libgcc; see attached log $ Running OS X 10.7.5 with XCode 4.6.3 (4H1503) on a mid-2008 macbook (too old for 10.9 so I can't upgrade XCode, it doesn't look like 10.8 is still available). The computer slept at some point during the build, which I hope has no effect on the process. -- Ticket URL: <https://trac.macports.org/ticket/41753> MacPorts <http://www.macports.org/> Ports system for OS X