<div dir="ltr">I attempted to  build perl with clang-3.6 and encountered an issue.<div>When building the source code with flag -fsanitize=undefined, clang</div><div>got stuck in compiling some files. </div><div>If remove the flag, clang can compile it in 3 seconds. </div><div>For example, clang can't compile the following file for 30 mins.</div><div><div>clang -fsanitize=undefined -c   -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Werror=declaration-after-statement -Wextra -Wc++-compat -Wwrite-strings -O2   -DVERSION=\"0.32\" -DXS_VERSION=\"0.32\" -fPIC "-I../.."  -DPERL_EXT_RE_BUILD -DPERL_EXT_RE_DEBUG -DPERL_EXT re_exec.c</div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Dingbao Xie<br></div></div></div>
</div></div>