Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2012 22:21:01 -0400
From:      John Nielsen <lists@jnielsen.net>
To:        freebsd-current@freebsd.org
Subject:   Python won't build?
Message-ID:  <7E2199A3-9E2D-44D5-B7E5-06D68A13D70B@jnielsen.net>

next in thread | raw e-mail | index | archive | help
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=3D..., (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=3Dathlon64  =
-fno-strict-aliasing -DNDEBUG -O2 -pipe -march=3Dathlon64  =
-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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7E2199A3-9E2D-44D5-B7E5-06D68A13D70B>