[cfe-dev] clang gets stuck when compiling perl with ubsan

Alexey Samsonov vonosmas at gmail.com
Thu Jul 23 20:36:43 PDT 2015


I'm pretty sure that's another instance of
https://llvm.org/bugs/show_bug.cgi?id=17409, which is not yet fixed :(
I don't have good suggestions, other than lower optimization level, or
reduce the file size, or reduce the set of enabled UBSan checks.

On Thu, Jul 23, 2015 at 6:05 PM, Dingbao Xie <xiedingbao at gmail.com> wrote:

> I attempted to  build perl with clang-3.6 and encountered an issue.
> When building the source code with flag -fsanitize=undefined, clang
> got stuck in compiling some files.
> If remove the flag, clang can compile it in 3 seconds.
> For example, clang can't compile the following file for 30 mins.
> 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
>
>
> --
> Dingbao Xie
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>


-- 
Alexey Samsonov
vonosmas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150723/4bf43a6c/attachment.html>


More information about the cfe-dev mailing list