Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ctypes not building under OS X 10.6 with LLVM/Clang 2.8 #54447

Closed
brettcannon opened this issue Oct 29, 2010 · 7 comments
Closed

ctypes not building under OS X 10.6 with LLVM/Clang 2.8 #54447

brettcannon opened this issue Oct 29, 2010 · 7 comments
Assignees
Labels
build The build process and cross-build

Comments

@brettcannon
Copy link
Member

BPO 10238
Nosy @brettcannon, @theller, @birkenfeld, @jcea, @pitrou

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/theller'
closed_at = <Date 2011-01-20.22:39:19.886>
created_at = <Date 2010-10-29.22:27:48.633>
labels = ['build']
title = 'ctypes not building under OS X 10.6 with LLVM/Clang 2.8'
updated_at = <Date 2011-01-21.00:05:38.021>
user = 'https://github.com/brettcannon'

bugs.python.org fields:

activity = <Date 2011-01-21.00:05:38.021>
actor = 'brett.cannon'
assignee = 'theller'
closed = True
closed_date = <Date 2011-01-20.22:39:19.886>
closer = 'brett.cannon'
components = ['Build']
creation = <Date 2010-10-29.22:27:48.633>
creator = 'brett.cannon'
dependencies = []
files = []
hgrepos = []
issue_num = 10238
keywords = []
message_count = 7.0
messages = ['119945', '120001', '120004', '125231', '126650', '126658', '126667']
nosy_count = 6.0
nosy_names = ['brett.cannon', 'theller', 'georg.brandl', 'jcea', 'pitrou', 'jyasskin']
pr_nums = []
priority = 'critical'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue10238'
versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

@brettcannon
Copy link
Member Author

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
^

@brettcannon brettcannon added deferred-blocker build The build process and cross-build labels Oct 29, 2010
@pitrou
Copy link
Member

pitrou commented Oct 30, 2010

Not sure this is a blocker. There are various assembler syntaxes for x86 and chances are LLVM uses a different one from gcc.

@birkenfeld
Copy link
Member

I agree, this shouldn't be a blocker.

@brettcannon
Copy link
Member Author

This is still failing. I also just confirmed it is also happening for 3.1 and 2.7.

@brettcannon
Copy link
Member Author

Filed a bug with LLVM/Clang: http://llvm.org/bugs/show_bug.cgi?id=9014

@brettcannon
Copy link
Member Author

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.

@brettcannon
Copy link
Member Author

I have verified that if you add -no-integrated-as as a flag (e.g., through CFLAGS) then ctypes will build.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

4 participants