Issue 10238: ctypes not building under OS X 10.6 with LLVM/Clang 2.8 (original) (raw)

Created on 2010-10-29 22:27 by brett.cannon, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (7)
msg119945 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2010-10-29 22:27
I get the following output related to the build failure: /var/folders/MN/MN-E3HgoFXSKDXb9le7FQ++++TI/-Tmp-/cc-MxvLE7.s:153:2: error: unrecognized instruction cmovnz %rax, %rdx ^ /var/folders/MN/MN-E3HgoFXSKDXb9le7FQ++++TI/-Tmp-/cc-MxvLE7.s:154:2: error: unrecognized instruction cmovnz %r10, %rax ^ /var/folders/MN/MN-E3HgoFXSKDXb9le7FQ++++TI/-Tmp-/cc-MxvLE7.s:156:2: error: unrecognized instruction cmovnz %r10, %rdx ^ /var/folders/MN/MN-E3HgoFXSKDXb9le7FQ++++TI/-Tmp-/cc-MxvLE7.s:158:2: error: unrecognized instruction cmovnz %r10, %rax ^ /var/folders/MN/MN-E3HgoFXSKDXb9le7FQ++++TI/-Tmp-/cc-MxvLE7.s:159:2: error: unrecognized instruction cmovnz %r11, %rdx ^ /var/folders/MN/MN-E3HgoFXSKDXb9le7FQ++++TI/-Tmp-/cc-MxvLE7.s:166:2: error: unrecognized instruction rep movsb ^ /var/folders/MN/MN-E3HgoFXSKDXb9le7FQ++++TI/-Tmp-/cc-MxvLE7.s:281:2: error: unrecognized instruction cmovnz %rdx, %rcx ^ /var/folders/MN/MN-E3HgoFXSKDXb9le7FQ++++TI/-Tmp-/cc-MxvLE7.s:285:2: error: unrecognized instruction cmovnz %rdx, %rax ^
msg120001 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-10-30 16:38
Not sure this is a blocker. There are various assembler syntaxes for x86 and chances are LLVM uses a different one from gcc.
msg120004 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-10-30 17:00
I agree, this shouldn't be a blocker.
msg125231 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2011-01-03 20:24
This is still failing. I also just confirmed it is also happening for 3.1 and 2.7.
msg126650 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2011-01-20 21:43
Filed a bug with LLVM/Clang: http://llvm.org/bugs/show_bug.cgi?id=9014
msg126658 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2011-01-20 22:39
Chris Lattner from LLVM says that this has been fixed in their mainline and that to work around it in LLVM 2.8 one should build with the -no-integrated-as flag.
msg126667 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2011-01-21 00:05
I have verified that if you add -no-integrated-as as a flag (e.g., through CFLAGS) then ctypes will build.
History
Date User Action Args
2022-04-11 14:57:08 admin set github: 54447
2011-01-21 00:05:38 brett.cannon set nosy:brett.cannon, theller, georg.brandl, jcea, pitrou, jyasskinmessages: +
2011-01-20 22:39:19 brett.cannon set status: open -> closedmessages: + resolution: fixednosy:brett.cannon, theller, georg.brandl, jcea, pitrou, jyasskin
2011-01-20 21:43:02 brett.cannon set nosy:brett.cannon, theller, georg.brandl, jcea, pitrou, jyasskinmessages: +
2011-01-03 20:28:55 pitrou set nosy: + jyasskin
2011-01-03 20:24:06 brett.cannon set nosy:brett.cannon, theller, georg.brandl, jcea, pitroumessages: + versions: + Python 3.1, Python 2.7
2010-11-23 03:50:50 jcea set nosy: + jcea
2010-10-30 17:00:33 georg.brandl set priority: deferred blocker -> criticalmessages: +
2010-10-30 16:38:44 pitrou set assignee: thellermessages: + nosy: + georg.brandl, pitrou, theller
2010-10-29 22:27:48 brett.cannon create