goplus / llgo

A Go compiler based on LLVM in order to better integrate Go with the C ecosystem including Python
Apache License 2.0
322 stars 26 forks source link

build: add -O2 flag to work around TLS mismatch issue #390

Closed aofei closed 3 months ago

aofei commented 3 months ago
~/llgo/_demo/hello$ llgo run .
/usr/bin/ld: errno: TLS definition in /lib/x86_64-linux-gnu/libc.so.6 section .tbss mismatches non-TLS reference in /tmp/fc1f938378d3b77671775f4ad24538d3fbc174cae7ad918ad3c9f13afc646cb9-d-6299b3.o
/usr/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: error adding symbols: bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)