[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
Ned Deily n...@acm.org added the comment: Oleg, thanks. That is consistent with previous reports; so far, this issue has only been reported with llvm-gcc, not the plain gcc-4.2's shipped in Xcode prior to 4.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
Oleg Plakhotnyuk oleg...@gmail.com added the comment: Thank you all for help. I finally managed to build it. :-) So here are complete steps I've taken to build python after OS reinstall: 1. Install XCode 4.2 2. Install MacPorts 3. sudo port -v selfupdate 4. sudo port install gcc46 5. ./configure CC=gcc-mp-4.6 LDFLAGS=-L/opt/local/lib --with-pydebug make -j2 Should I post this somewhere for others who may face similar problems? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
Changes by Oleg Plakhotnyuk oleg...@gmail.com: -- resolution: - works for me ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
Changes by Oleg Plakhotnyuk oleg...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
Changes by Oleg Plakhotnyuk oleg...@gmail.com: -- resolution: works for me - fixed status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
Changes by Oleg Plakhotnyuk oleg...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
Ned Deily n...@acm.org added the comment: In general, I would not recommend using anything other than an Apple-supplied tool chain for building anything on Mac OS X. To help us better understand the issues, can you say exactly which compilers you tried originally, i.e. the complete --version output from the compiler(s) used in your failing Python builds? Because of the current somewhat chaotic OS X compiler situation, I am in the process of performing a controlled test of building and testing various current versions of Python with the available Xcode compilers for 10.7 and 10.6. -- assignee: - ned.deily components: +Macintosh priority: normal - high resolution: fixed - status: pending - open type: compile error - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
Oleg Plakhotnyuk oleg...@gmail.com added the comment: Ah, of course. Initially I've tried to compile using this: i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) XCode version 4.2, build 4C199 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
STINNER Victor victor.stin...@haypocalc.com added the comment: i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) Oh, that's not GCC but llvm-gcc. It is maybe a bug in LLVM? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
New submission from Oleg Plakhotnyuk oleg...@gmail.com: Trying to build latest development revision: localhost:repo family$ hg summary parent: 73044:a985d733b3a3 tip #12753: Add support for Unicode name aliases and named sequences. branch: default commit: (clean) update: (current) Constantly getting this error: ./python.exe -SE -m sysconfig --generate-posix-vars Could not find platform dependent libraries exec_prefix Consider setting $PYTHONHOME to prefix[:exec_prefix] Assertion failed: (compact-utf8_length == 0), function _PyUnicode_CheckConsistency, file Objects/unicodeobject.c, line 399. make: *** [sysconfig] Abort trap However, tag v3.2.2 seems to build successfully. OS: Mac OS X 10.6.8 GCC: 4.2.1 If you have troubles reproducing this issue, feel free to ask any information I can provide that can help. Thank you in advance! -- messages: 146120 nosy: Oleg.Plakhotnyuk priority: normal severity: normal status: open title: Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X type: compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
Oleg Plakhotnyuk oleg...@gmail.com added the comment: Oh yes. I am building with this command line: ./configure --with-pydebug make -j2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
STINNER Victor victor.stin...@haypocalc.com added the comment: It is a compiler bug in GCC 4.2.1 with -O3. Try to compile attached unicode.c program with gcc -O3. The correct result is: $ gcc -O3 unicode.c -o unicode ./unicode is ascii? 0 is compact? 1 is compact ascii? 0 _PyUnicode_COMPACT_DATA: 88 vs 88 PyUnicode_DATA: 88 vs 88 explicit cast: 88 vs 88 With gcc 4.2.1 and -O3, you get is compact ascii? 1. -- nosy: +haypo Added file: http://bugs.python.org/file23490/unicode.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
Changes by STINNER Victor victor.stin...@haypocalc.com: -- components: +Build versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
STINNER Victor victor.stin...@haypocalc.com added the comment: The bug has been fixed in GCC, try a more recent version using ./configure CC=gccX.Y. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
Ezio Melotti ezio.melo...@gmail.com added the comment: It should also work without --with-pydebug, or with a different compiler. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
Ned Deily n...@acm.org added the comment: I believe this was a bug specific to the llvm-gcc compiler shipped with Xcode 4.1 and possibly Xcode 4.0. I do not have Xcode 4 on OS X 10.6 but haypo's test does fail with the llvm-gcc 4.2.1 that comes with Xcode 4.1 on 10.7. Can you confirm exactly which compiler you are using, i.e. the complete --version output from the compiler used in your python build? If you have not installed Xcode 4.2, one solution is to use CC=gcc-4.2 which uses the plain gcc-4.2, not llvm-gcc-4.2. For 10.6, I recommend sticking with Xcode 3 if at all possible for the time being. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X
Ezio Melotti ezio.melo...@gmail.com added the comment: See also http://mail.python.org/pipermail/python-dev/2011-September/113731.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com