# [PATCH] 5.4 doesn't build with Clang 2.9

- Thread: https://externals.io/message/54404
- Original archive: https://news-web.php.net/php.internals/54404
- Started by Gwynne Raskind on 2011-08-05T13:28:42+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #54404 — Gwynne Raskind — 2011-08-05T13:28:42+00:00

URL: https://externals.io/message/54404#54404

There's bug in LLVM 2.9's assembler which causes the build to fail on
the inline assembly, specifically the fsubp instruction. The bug is
LLVM #9164 (http://llvm.org/bugs/show_bug.cgi?id=9164). As I lack Zend
karma, I've attached a patch to fix this issue for affected Clang
builds. I've tested it on multiple architectures (i386, x86_64),
compilers (gcc 4.2, LLVM-GCC, Clang 2.9, Clang SVN), and systems
(Darwin, Ubuntu, BSD), and it appears to work cleanly on all of them.
The patch is against 5.4.

-- Gwynne
