compiler-rt fix for Python 3

Alexey Samsonov samsonov at google.com
Tue Dec 17 04:24:00 PST 2013


I've landed this patch in r197493, thanks!

On Tue, Dec 17, 2013 at 4:11 PM, Marcoen Hirschberg <marcoen at gmail.com> wrote:
> Hi there,
>
> I tried to build LLVM with compiler-rt and got some errors because I'm using
> python 3 (version 3.3.3)
>
>   File
> "/home/markun/src/llvm/projects/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py",
> line 78
>     print '{'
>             ^
> SyntaxError: invalid syntax
>
> and
>
> Traceback (most recent call last):
>   File
> "/home/markun/src/llvm/projects/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py",
> line 85, in <module>
>     main(sys.argv)
>   File
> "/home/markun/src/llvm/projects/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py",
> line 51, in main
>     all_functions = get_global_functions(library)
>   File
> "/home/markun/src/llvm/projects/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py",
> line 38, in get_global_functions
>     nm_out = nm_proc.communicate()[0].split('\n')
> TypeError: Type str doesn't support the buffer API
>
> I fixed them in the attached patch. I also tried building with python2
> (2.7.6) and that still worked. Is it good enough for inclusion?
>
> With regards,
>
> Marcoen Hirschberg



-- 
Alexey Samsonov, MSK



More information about the llvm-commits mailing list