Python won't build?

From: John Nielsen <lists_at_jnielsen.net>
Date: Sat, 31 Mar 2012 22:21:01 -0400
I updated a machine yesterday from 9-STABLE to 10-CURRENT (r233631). Everything went smoothly with the update itself, but I ran in to an issue with Python when rebuilding all of my installed ports. Python won't build; it complains about the definition of LONG_BIT. I had python27 installed but python26 does the same thing. I ran "make delete-old" and "make delete-old-libs", no improvement. I even built a clean chroot environment via make installworld DESTDIR=..., (plus devfs and ports tree). Same problem.

So.. is this the result of something in the FreeBSD source? Can anyone else reproduce this? What should I try next?


cc -c -fno-strict-aliasing -O2 -pipe -march=athlon64  -fno-strict-aliasing -DNDEBUG -O2 -pipe -march=athlon64  -fno-strict-aliasing  -I. -IInclude -I./../Include -fPIC -DPy_BUILD_CORE -o Parser/acceler.o ./../Parser/acceler.c
In file included from ./../Include/Python.h:8,
                 from ./../Include/pgenheaders.h:10,
                 from ./../Parser/acceler.c:13:
./pyconfig.h:1:1: warning: null character(s) ignored
./pyconfig.h:1:35803: warning: no newline at end of file
In file included from ./../Include/pyport.h:4,
                 from ./../Include/Python.h:58,
                 from ./../Include/pgenheaders.h:10,
                 from ./../Parser/acceler.c:13:
./pyconfig.h:1:1: warning: null character(s) ignored
./pyconfig.h:1:35803: warning: no newline at end of file
In file included from ./../Include/Python.h:58,
                 from ./../Include/pgenheaders.h:10,
                 from ./../Parser/acceler.c:13:
./../Include/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
In file included from ./../Include/pymath.h:4,
                 from ./../Include/Python.h:77,
                 from ./../Include/pgenheaders.h:10,
                 from ./../Parser/acceler.c:13:
./pyconfig.h:1:1: warning: null character(s) ignored
./pyconfig.h:1:35803: warning: no newline at end of file
*** [Parser/acceler.o] Error code 1

Stop in /opt/scratch/opt/ports/lang/python27/work/Python-2.7.2/portbld.shared.
*** [pre-build] Error code 1

Stop in /opt/ports/lang/python27.
*** [build] Error code 1

Stop in /opt/ports/lang/python27.
Received on Sun Apr 01 2012 - 00:23:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:25 UTC