[Python-Dev] python build failed on mac
Hynek Schlawack
hs at ox.cx
Sat Jan 21 19:57:23 CET 2012
Am Freitag, 20. Januar 2012 um 23:40 schrieb Vijay Majagaonkar:
> > > I am trying to build python 3 on mac and build failing with following error can somebody help me with this
> >
> > It is a known bug that Apple's latest gcc-llvm (that comes with Xcode 4.1 by default as gcc) miscompiles Python: http://bugs.python.org/issue13241
> >
> > make clean
> > CC=clang ./configure && make -s
>
> Thanks for the help, but above command need to run in different way
>
> ./configure CC=clang
> make
I'm not sure why you think it "needs" to be that way, but it's fine by me as both ways work fine.
> this allowed me to build the code but when ran test I got following error message
>
> [363/364/3] test_io
> python.exe(11411) malloc: *** mmap(size=9223372036854775808) failed (error code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug
> python.exe(11411,0x7fff7a8ba960) malloc: *** mmap(size=9223372036854775808) failed (error code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug
> python.exe(11411,0x7fff7a8ba960) malloc: *** mmap(size=9223372036854775808) failed (error code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug
>
> I am using Mac OS-X 10.7.2 and insatlled Xcode 4.2.1
Please ensure there aren't any gcc-created objects left by running "make distclean" first.
-h
More information about the Python-Dev
mailing list