[New-bugs-announce] [issue12812] libffi does not build with clang on amd64

Joel report at bugs.python.org
Mon Aug 22 08:30:56 CEST 2011

New submission from Joel <joel at jms.id.au>:

tl;dr libffi needs to be updated so Python will build with clang on Linux on amd64

libffi, part of ctypes, has a test for PC relative relocations. It assembles a assembler file with CC, and looks for the string "warning" in the output.

clang produces harmless warning unrelated to the assembly operation, but the test causes HAVE_AS_X86_PCREL to be left unset. When trying to assemble Modules/_ctypes/libffi/src/x86/unix64.S, the compiler finds invalid syntax and the build fails.

This was raised on the libffi mailing list, with a proposed patch 


The patch appears to be part of upstream libffi:


So perhaps the best fix would be to update the version of libffi in the tree.

components: Build
messages: 142686
nosy: shenki
priority: normal
severity: normal
status: open
title: libffi does not build with clang on amd64

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list