[llvm-dev] [cfe-dev] strace clang refers files from lib/tls/x86_64 multiple times

Ismail Donmez via llvm-dev llvm-dev at lists.llvm.org
Mon Feb 8 04:27:49 PST 2016


Hi,

On Mon, Feb 8, 2016 at 12:41 PM, Oza, Hiral via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> Greetings!
>
>
>
> Sample program:
>
> int main(int argc, char **argv)
>
> {
>
>     int myLocal=0xAA;
>
>     return 0;
>
> }
>
>
>
> Command: clang t.c –o a.o –c
>
>
>
> With above simple program we are observing that clang is stat-ing and trying
> to open various files from lib/tls location. Eventually all calls to
> “lib/tls” leads to ENOENT (No such file or directory)!

This is due to the way glibc searches for libraries, this is not a
clang related thing.

ismail


More information about the llvm-dev mailing list