<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Hi there,</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
I tried to build LLVM with compiler-rt and got some errors because I'm using python 3 (version 3.3.3)</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<div>  File "/home/markun/src/llvm/projects/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py", line 78</div><div>    print '{'</div><div>            ^</div><div>SyntaxError: invalid syntax</div>
</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">and</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div>Traceback (most recent call last):</div><div>  File "/home/markun/src/llvm/projects/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py", line 85, in <module></div>
<div>    main(sys.argv)</div><div>  File "/home/markun/src/llvm/projects/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py", line 51, in main</div><div>    all_functions = get_global_functions(library)</div>
<div>  File "/home/markun/src/llvm/projects/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py", line 38, in get_global_functions</div><div>    nm_out = nm_proc.communicate()[0].split('\n')</div>
<div>TypeError: Type str doesn't support the buffer API</div></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
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?</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">With regards,</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
Marcoen Hirschberg</div></div>