[MacPorts] #45983: gcc49: fatal error: stdio.h: No such file or directory (was: gcc49 fails to build on Yosemite)

MacPorts noreply at macports.org
Sat Nov 22 02:56:56 PST 2014


#45983: gcc49: fatal error: stdio.h: No such file or directory
---------------------+-------------------
  Reporter:  dcn@…   |      Owner:  mww@…
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.3.3
Resolution:          |   Keywords:
      Port:  gcc49   |
---------------------+-------------------
Changes (by ryandesign@…):

 * owner:  macports-tickets@… => mww@…
 * cc: ryandesign@… (added)
 * port:   => gcc49


Old description:

> Yosemite 10.10.1, Xcode 6.1 (with command line tools installed as part of
> it)
>
> The error:
>
> --->  Building gcc49
> Error: org.macports.build for port gcc49 returned: command execution
> failed
> Please see the log file for port gcc49 for details:
>
> The log file is attached
>
> The first error in the log relating to this appears to be:
>
> :info:build
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/work/gcc-4.9.2/libgcc/../gcc/tsystem.h:87:19:
> fatal error: stdio.h: No such file or directory
>
> I was able to install gcc48 with no trouble.
> This is a completely clean install.  All references to the previous
> (Mavericks) install of Macports were removed.
> Following the error message instructions, I did a "sudo port clean gcc49"
> and re-ran the install.  Same result.

New description:

 Yosemite 10.10.1, Xcode 6.1 (with command line tools installed as part of
 it)

 The error:

 {{{
 --->  Building gcc49
 Error: org.macports.build for port gcc49 returned: command execution
 failed
 Please see the log file for port gcc49 for details:
 }}}

 The log file is attached

 The first error in the log relating to this appears to be:

 {{{
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/work/gcc-4.9.2/libgcc/../gcc/tsystem.h:87:19:
 fatal error: stdio.h: No such file or directory
 }}}

 I was able to install gcc48 with no trouble.
 This is a completely clean install.  All references to the previous
 (Mavericks) install of Macports were removed.
 Following the error message instructions, I did a "sudo port clean gcc49"
 and re-ran the install.  Same result.

--

Comment:

 The error "stdio.h: No such file or directory" usually means you have not
 installed the Xcode command line tools. If you haven't done so, please do,
 then clean gcc49 again. gcc49 builds fine for me on Yosemite.

-- 
Ticket URL: <https://trac.macports.org/ticket/45983#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list