#43059: openssh fails to build using default xcode gcc 4.2 -------------------------+-------------------------------- Reporter: leeawalsh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: openssh -------------------------+-------------------------------- When trying upgrade `openssh` (from `@6.5p1_4+kerberos5+xauth` to `@6.6p1_1+kerberos5+xauth`), I received the following error: {{{ $ sudo port clean openssh ---> Cleaning openssh $ sudo port install -sd openssh ---> Computing dependencies for openssh ---> Fetching distfiles for openssh ---> Verifying checksums for openssh ---> Extracting openssh ---> Applying patches to openssh ---> Configuring openssh ---> Building openssh Error: org.macports.build for port openssh returned: command execution failed Please see the log file for port openssh for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_openssh/openssh/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port openssh failed }}} Upon inspecting the named log file (which I no longer have, sorry), I discovered that it was being built with the default xcode gcc4.2, despite the fact that my active selected gcc is mp-gcc48. It built successfully when I forced it to use gcc48: {{{ $ sudo port install -s openssh configure.compiler=macports-gcc-4.8 }}} I'm no expert, but I'm not sure that's really the best solution. For one, I have to remember to specify each time I update it, and for another, it seems like this might harm some other compatibility in the future? Shouldn't the default compiler work? Please let me know if I can provide more information (I can probably uninstall and attempt build with the default compiler if you need the original error log). -- Ticket URL: <https://trac.macports.org/ticket/43059> MacPorts <http://www.macports.org/> Ports system for OS X