Opened 10 years ago

Last modified 10 years ago

#45983 closed defect

gcc49: fatal error: stdio.h: No such file or directory — at Version 1

Reported by: dcnicholls Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: ryandesign@…
Port: gcc49

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

Change History (2)

Changed 10 years ago by dcnicholls

Attachment: main.log.zip added

Main.log referred to in error message. It shows the error twice, as I tried to install twice.

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…
Port: gcc49 added
Summary: gcc49 fails to build on Yosemitegcc49: fatal error: stdio.h: No such file or directory

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.

Note: See TracTickets for help on using tickets.