lang/python/2.7: configure error

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

lang/python/2.7: configure error

temp+101
Hi ports@,

I recently tried to build python-2.7 from ports, but I got errors:

# cd /usr/lang/python/2.7 && make -dA > /tmp/out 2>&1
# cat /tmp/out
... many lines ...
for d in /usr/ports/pobj/Python-2.7.12/Python-2.7.12;  do  cp -f /usr/ports/infrastructure/db/config.guess $d;  chmod a+rx $d/config.guess;  cp -f /usr/ports/infrastructure/db/config.sub $d;  chmod a+rx $d/config.sub;  done; cd /usr/ports/pobj/Python-2.7.12/Python-2.7.12 && /usr/bin/env -i  CC="cc" ac_cv_path_CC="cc" CFLAGS="-O2 -pipe"  CXX="c++" ac_cv_path_CXX="c++" CXXFLAGS="-O2 -pipe"  INSTALL="/usr/ports/pobj/Python-2.7.12/bin/install -c "  ac_given_INSTALL="/usr/ports/pobj/Python-2.7.12/bin/install -c "  INSTALL_PROGRAM="/usr/ports/pobj/Python-2.7.12/bin/install -c -s -m 755" INSTALL_MAN="/usr/ports/pobj/Python-2.7.12/bin/install -c  -m 644"  INSTALL_SCRIPT="/usr/ports/pobj/Python-2.7.12/bin/install -c  -m 755" INSTALL_DATA="/usr/ports/pobj/Python-2.7.12/bin/install -c  -m 644"  YACC="yacc"  OPT='-O2 -pipe   -fPIC' CPPFLAGS='-I/usr/local/include'  LDFLAGS='-L/usr/local/lib/' SVNVERSION=no  LOCALBASE=/usr/local X11BASE=/usr/X11R6 CONFIG_SITE='/usr/ports/pobj/Python-2.7.12/config.site' MKDIR_P='mkdir -p' DATADIRNAME=share ac_cv_path_GTKDOC_CHECK=""   ac_cv_path_GTKDOC_REBASE="" ac_cv_path_GTKDOC_MKPDF="" LIBTOOL="/usr/bin/libtool"  LIBpython2.7_LTVERSION='-version-info 0:0:0' libpython2_7_ltversion=0.0 PATH=/usr/ports/pobj/Python-2.7.12/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin ./configure --with-ensurepip=no --enable-shared --srcdir=/usr/ports/pobj/Python-2.7.12/Python-2.7.12  --with-fpectl  --with-threads  --enable-ipv6  --with-cxx_main  --with-system-expat  --with-system-ffi --prefix='/usr/local' --sysconfdir='/etc' --mandir='/usr/local/man' --infodir='/usr/local/info' --localstatedir='/var' --disable-silent-rules --disable-gtk-doc
[8409] Running 414 (/usr/ports/pobj/Python-2.7.12/.configure_done)
configure: WARNING: unrecognized options: --disable-silent-rules, --disable-gtk-doc
configure: loading site script /usr/ports/pobj/Python-2.7.12/config.site
checking build system type... x86_64-unknown-openbsd6.0
checking host system type... x86_64-unknown-openbsd6.0
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... openbsd6
checking EXTRAPLATDIR...
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 `/usr/ports/pobj/Python-2.7.12/Python-2.7.12':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
[8409] Process 414 (/usr/ports/pobj/Python-2.7.12/.configure_done) exited with status 256.
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2659 '/usr/ports/pobj/Python-2.7.12/.configure_done')
*** Error 1 in target '/usr/ports/pobj/Python-2.7.12/.configure_done'
[30021] Process 2841 (all) exited with status 256.
*** Error 1 in /usr/ports/lang/python/2.7 (/usr/ports/infrastructure/mk/bsd.port.mk:2389 'all')
*** Error 1 in target 'all'

I worked on it and found that problem is
'/usr/ports/pobj/Python-2.7.12/bin/ld' and it is not compatible with
'/usr/bin/ld':

# rm /usr/ports/pobj/Python-2.7.12/bin/ld

I don't know what might be a good patch for this problem and why this
happened.


Reply | Threaded
Open this post in threaded view
|

Re: lang/python/2.7: configure error

Stuart Henderson
On 2016/11/02 16:43, Ali Farzanrad wrote:
> Hi ports@,
>
> I recently tried to build python-2.7 from ports, but I got errors:

I suspect you are mixing -current ports and 6.0-release.

Reply | Threaded
Open this post in threaded view
|

Re: lang/python/2.7: configure error

temp+101
In reply to this post by temp+101
Stuart Henderson wrotes:
>
>On 2016/11/02 16:43, Ali Farzanrad wrote:
>> Hi ports@,
>>
>> I recently tried to build python-2.7 from ports, but I got errors:
>
>I suspect you are mixing -current ports and 6.0-release.
>

I upgraded from source few hours ago using cvsync. I rechecked for
CVS/Tag in my cvs directories, and it seems that there is no CVS/Tag,
thus I though I'm in current.

I did sysmerge again, but no effect.

Reply | Threaded
Open this post in threaded view
|

Re: lang/python/2.7: configure error

Theo Buehler
In reply to this post by temp+101
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details
> [8409] Process 414 (/usr/ports/pobj/Python-2.7.12/.configure_done) exited with status 256.
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2659 '/usr/ports/pobj/Python-2.7.12/.configure_done')
> *** Error 1 in target '/usr/ports/pobj/Python-2.7.12/.configure_done'
> [30021] Process 2841 (all) exited with status 256.
> *** Error 1 in /usr/ports/lang/python/2.7 (/usr/ports/infrastructure/mk/bsd.port.mk:2389 'all')
> *** Error 1 in target 'all'
>
> I worked on it and found that problem is
> '/usr/ports/pobj/Python-2.7.12/bin/ld' and it is not compatible with
> '/usr/bin/ld':
>
> # rm /usr/ports/pobj/Python-2.7.12/bin/ld
>
> I don't know what might be a good patch for this problem and why this
> happened.

I see this same error when I try to build python without having
WRKOBJDIR on a filesystem with the wxallowed mount option.

I suspect you'll find entries like

/bsd: ./conftest(25593): W^X binary outside wxallowed mountpoint

in your /var/log/messages.

To build ports that need to be marked with WXNEEDED, you need to have
WRKOBJDIR (usually /usr/ports/pobj) on a filesystem mounted with
wxallowed.

Reply | Threaded
Open this post in threaded view
|

Re: lang/python/2.7: configure error

temp+101
In reply to this post by temp+101
Theo Buehler wrotes:

>
>> configure: error: cannot run C compiled programs.
>> If you meant to cross compile, use `--host'.
>> See `config.log' for more details
>> [8409] Process 414 (/usr/ports/pobj/Python-2.7.12/.configure_done) exited with status 256.
>> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2659 '/usr/ports/pobj/Python-2.7.12/.configure_done')
>> *** Error 1 in target '/usr/ports/pobj/Python-2.7.12/.configure_done'
>> [30021] Process 2841 (all) exited with status 256.
>> *** Error 1 in /usr/ports/lang/python/2.7 (/usr/ports/infrastructure/mk/bsd.port.mk:2389 'all')
>> *** Error 1 in target 'all'
>>
>> I worked on it and found that problem is
>> '/usr/ports/pobj/Python-2.7.12/bin/ld' and it is not compatible with
>> '/usr/bin/ld':
>>
>> # rm /usr/ports/pobj/Python-2.7.12/bin/ld
>>
>> I don't know what might be a good patch for this problem and why this
>> happened.
>
>I see this same error when I try to build python without having
>WRKOBJDIR on a filesystem with the wxallowed mount option.
>
>I suspect you'll find entries like
>
>/bsd: ./conftest(25593): W^X binary outside wxallowed mountpoint
>
>in your /var/log/messages.
>
>To build ports that need to be marked with WXNEEDED, you need to have
>WRKOBJDIR (usually /usr/ports/pobj) on a filesystem mounted with
>wxallowed.
>

Yes, I forgot that. Thanks a lot.