[MacPorts] #37398: py27-readline: fatal error: 'sys/types.h' file not found; fatal error: 'stdio.h' file not found (was: py27-readline failed)

MacPorts noreply at macports.org
Wed Dec 26 18:39:26 PST 2012


#37398: py27-readline: fatal error: 'sys/types.h' file not found; fatal error:
'stdio.h' file not found
----------------------------+--------------------------------
  Reporter:  sansonaa@…     |      Owner:  macports-tickets@…
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.1.2
Resolution:                 |   Keywords:
      Port:  py27-readline  |
----------------------------+--------------------------------
Changes (by ryandesign@…):

 * cc: ryandesign@… (added)


Old description:

> 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

New description:

 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
 }}}

--

Comment:

 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.

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


More information about the macports-tickets mailing list