Python Port not working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Python Port not working

Russell Sutherland
When I attempt to compile python 3.5 from the ports tree (as well as 2.7) the following error message occurs:




# pwd
/usr/ports/lang/python/3.5
# make clean
===>  Cleaning for python-3.5.2p2
# make
===> python-3.5.2p2 depends on: metaauto-* -> metaauto-1.0p1
===> python-3.5.2p2 depends on: autoconf-2.69 -> autoconf-2.69p2
===> python-3.5.2p2 depends on: bzip2-* -> bzip2-1.0.6p8
===> python-3.5.2p2 depends on: sqlite3-* -> sqlite3-3.17.0
===> python-3.5.2p2 depends on: libffi-* -> libffi-3.2.1p2
===> python-3.5.2p2 depends on: gettext-* -> gettext-0.19.8.1
===> python-3.5.2p2 depends on: xz-* -> xz-5.2.3
===> python-3.5.2p2 depends on: gdbm-* -> gdbm-1.12
===> python-3.5.2p2 depends on: tk->=8.5,<8.6 -> tk-8.5.18p1
===> python-3.5.2p2 depends on: tcl->=8.5,<8.6 -> tcl-8.5.18p1
===>  Verifying specs:  bz2 c crypto expat ffi intl m ncursesw panelw pthread  readline sqlite3 ssl stdc++ util z lzma  gdbm>=3 pthread python3.5m  X11 pthread python3.5m  tk85 tcl85
===>  found bz2.10.4 c.89.3 crypto.41.1 expat.11.0 ffi.1.2 intl.6.0 m.10.0 ncursesw.14.0 panelw.6.0 pthread.23.0 readline.4.0 sqlite3.35.0 ssl.43.2 stdc++.57.0 util.12.1 z.5.0 lzma.2.1 gdbm.4.1 python3.5m.0.0 X11.16.1 tk85.0.14 tcl85.1.7
===>  Checking files for Python-3.5.2
`/usr/ports/distfiles/Python-3.5.2.tgz' is up to date.
>> (SHA256) Python-3.5.2.tgz: OK
…..
Running autoconf-2.69 in /usr/ports/pobj/Python-3.5.2/Python-3.5.2
Running autoheader-2.69 in /usr/ports/pobj/Python-3.5.2/Python-3.5.2
===>  Configuring for Python-3.5.2
Using /usr/ports/pobj/Python-3.5.2/config.site (generated)
configure: WARNING: unrecognized options: --disable-silent-rules, --disable-gtk-doc
configure: loading site script /usr/ports/pobj/Python-3.5.2/config.site
checking build system type... powerpc-unknown-openbsd6.1
checking host system type... powerpc-unknown-openbsd6.1
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... openbsd6
checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/home/ports/pobj/Python-3.5.2/Python-3.5.2':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2620 '/usr/ports/pobj/Python-3.5.2/.configure_done': @for d in /usr/ports/pobj/Py...)
*** Error 1 in /home/ports/lang/python/3.5 (/usr/ports/infrastructure/mk/bsd.port.mk:2344 'all')
#


--
Russell Sutherland
Supervisor, Network Development | Enterprise Infrastructure Solutions
Information Technology Services | University of Toronto
4 Bancroft Ave., Rm. 102 | Toronto, ON  M5S 1C1

[hidden email]
+1.416.978.0470 ~ tel
+1.416.978.6620 ~ fax
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Python Port not working

Daniel Jakots-3
You didn't have wxallowed on the partition where /usr/ports/pobj is I
guess. What says dmesg?

On Mon, 17 Apr 2017 19:18:46 +0000, Russell Sutherland
<[hidden email]> wrote:

> When I attempt to compile python 3.5 from the ports tree (as well as
> 2.7) the following error message occurs:
>
> …
>
>
> # pwd
> /usr/ports/lang/python/3.5
> # make clean
> ===>  Cleaning for python-3.5.2p2  
> # make
> ===> python-3.5.2p2 depends on: metaauto-* -> metaauto-1.0p1
> ===> python-3.5.2p2 depends on: autoconf-2.69 -> autoconf-2.69p2
> ===> python-3.5.2p2 depends on: bzip2-* -> bzip2-1.0.6p8
> ===> python-3.5.2p2 depends on: sqlite3-* -> sqlite3-3.17.0
> ===> python-3.5.2p2 depends on: libffi-* -> libffi-3.2.1p2
> ===> python-3.5.2p2 depends on: gettext-* -> gettext-0.19.8.1
> ===> python-3.5.2p2 depends on: xz-* -> xz-5.2.3
> ===> python-3.5.2p2 depends on: gdbm-* -> gdbm-1.12
> ===> python-3.5.2p2 depends on: tk->=8.5,<8.6 -> tk-8.5.18p1
> ===> python-3.5.2p2 depends on: tcl->=8.5,<8.6 -> tcl-8.5.18p1
> ===>  Verifying specs:  bz2 c crypto expat ffi intl m ncursesw panelw
> pthread  readline sqlite3 ssl stdc++ util z lzma  gdbm>=3 pthread
> python3.5m  X11 pthread python3.5m  tk85 tcl85 ===>  found bz2.10.4
> c.89.3 crypto.41.1 expat.11.0 ffi.1.2 intl.6.0 m.10.0 ncursesw.14.0
> panelw.6.0 pthread.23.0 readline.4.0 sqlite3.35.0 ssl.43.2
> stdc++.57.0 util.12.1 z.5.0 lzma.2.1 gdbm.4.1 python3.5m.0.0 X11.16.1
> tk85.0.14 tcl85.1.7 ===>  Checking files for Python-3.5.2
> `/usr/ports/distfiles/Python-3.5.2.tgz' is up to date.
> >> (SHA256) Python-3.5.2.tgz: OK  
> …..
> Running autoconf-2.69 in /usr/ports/pobj/Python-3.5.2/Python-3.5.2
> Running autoheader-2.69 in /usr/ports/pobj/Python-3.5.2/Python-3.5.2
> ===>  Configuring for Python-3.5.2  
> Using /usr/ports/pobj/Python-3.5.2/config.site (generated)
> configure: WARNING: unrecognized options: --disable-silent-rules,
> --disable-gtk-doc configure: loading site
> script /usr/ports/pobj/Python-3.5.2/config.site checking build system
> type... powerpc-unknown-openbsd6.1 checking host system type...
> powerpc-unknown-openbsd6.1 checking for --enable-universalsdk... no
> checking for --with-universal-archs... no
> checking MACHDEP... openbsd6
> checking for --without-gcc... no
> checking for --with-icc... no
> checking for gcc... cc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... configure: error: in
> `/home/ports/pobj/Python-3.5.2/Python-3.5.2': configure: error:
> cannot run C compiled programs. If you meant to cross compile, use
> `--host'. See `config.log' for more details
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2620
> '/usr/ports/pobj/Python-3.5.2/.configure_done': @for d
> in /usr/ports/pobj/Py...) *** Error 1 in /home/ports/lang/python/3.5
> (/usr/ports/infrastructure/mk/bsd.port.mk:2344 'all') #
>
>
> --
> Russell Sutherland
> Supervisor, Network Development | Enterprise Infrastructure Solutions
> Information Technology Services | University of Toronto
> 4 Bancroft Ave., Rm. 102 | Toronto, ON  M5S 1C1
>
> [hidden email]
> +1.416.978.0470 ~ tel
> +1.416.978.6620 ~ fax

Loading...