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 3D'/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 via email to