Author shenki
Recipients shenki
Date 2011-08-22.06:30:46
SpamBayes Score 0.000208301
Marked as misclassified No
Message-id <1313994656.23.0.148190380431.issue12812@psf.upfronthosting.co.za>
In-reply-to
Content
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 

  http://sourceware.org/ml/libffi-discuss/2011/msg00024.html

The patch appears to be part of upstream libffi:

 https://github.com/atgreen/libffi/blob/master/configure.ac#L296

So perhaps the best fix would be to update the version of libffi in the tree.
History
Date User Action Args
2011-08-22 06:30:56shenkisetrecipients: + shenki
2011-08-22 06:30:56shenkisetmessageid: <1313994656.23.0.148190380431.issue12812@psf.upfronthosting.co.za>
2011-08-22 06:30:47shenkilinkissue12812 messages
2011-08-22 06:30:46shenkicreate