Opened 12 years ago

Closed 12 years ago

#37398 closed defect (invalid)

py27-readline: fatal error: 'sys/types.h' file not found; fatal error: 'stdio.h' file not found

Reported by: sansonaa@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: py27-readline

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

Trying to install py-spyder on 10.8.2 and the port fails when trying to build the p27-readline extension module. I have attached the main log file but the error in the log file is shown below:

:info:build ============ Building the readline extension module ============
:info:build 
:info:build running build
:info:build running build_ext
:info:build building 'readline' extension
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -DHAVE_RL_CALLBACK -DHAVE_RL_CATCH_SIGNAL -DHAVE_RL_COMPLETION_APPEND_CHARACTER -DHAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK -DHAVE_RL_COMPLETION_MATCHES -DHAVE_RL_COMPLETION_SUPPRESS_APPEND -DHAVE_RL_PRE_INPUT_HOOK -I. -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Modules/2.x/readline.c -o build/temp.macosx-10.8-x86_64-2.7/Modules/2.x/readline.o -Wno-strict-prototypes
:info:build In file included from Modules/2.x/readline.c:8:
:info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:33:10: fatal error: 'stdio.h' file not found
:info:build #include <stdio.h>
:info:build          ^
:info:build 1 error generated.
:info:build error: command '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' failed with exit status 1
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-readline/py27-readline/work/readline-6.2.2" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
:info:build Exit code: 1
:error:build org.macports.build for port py27-readline returned: command execution failed
:debug:build Error code: CHILDSTATUS 47177 1
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for py27-readline: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port py27-readline for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-readline/py27-readline/main.log

Attachments (1)

main.log (38.2 KB) - added by sansonaa@… 12 years ago.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by sansonaa@…

Attachment: main.log added

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

Cc: ryandesign@… added
Description: modified (diff)
Summary: py27-readline failedpy27-readline: fatal error: 'sys/types.h' file not found; fatal error: 'stdio.h' file not found

The log says "fatal error: 'sys/types.h' file not found" and "fatal error: 'stdio.h' file not found". These are standard OS headers that should be there (in /usr/include) if Xcode command line tools are installed properly. Are they? Check the Downloads section of the Xcode app's Preferences window.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Any updates on this? Were you able to resolve the issue?

comment:3 Changed 12 years ago by sansonaa@…

Yes I realized my mistake shortly after I sent the trouble report. Everything is working fine now that I have properly installed the command line tools. Thanks.

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Great, glad you got it working.

Note: See TracTickets for help on using tickets.