<div dir="ltr"><div>Hi all,</div><div><br></div><div>I just grabbed tot.  I'm still able to build dynamic but static linking isn't working for me anymore.</div><div><br></div><div>I'm not sure if I should be directing this to cfe-dev or llvm-dev</div>







<p class="">[305/306] Linking CXX executable bin/clang-3.6</p><p class="">/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in `/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie"<br></p><div><br></div><div>Repro steps:<br></div><p class="">#!/bin/bash -ex<br><br>ROOT_DIR=$HOME/ll/static-fail<br><br>mkdir $ROOT_DIR<br>cd $ROOT_DIR<br>svn co <a href="http://llvm.org/svn/llvm-project/llvm/trunk">http://llvm.org/svn/llvm-project/llvm/trunk</a> llvm<br>cd llvm/tools<br>svn co <a href="http://llvm.org/svn/llvm-project/cfe/trunk">http://llvm.org/svn/llvm-project/cfe/trunk</a> clang<br>cd $ROOT_DIR<br>mkdir build<br>cd build<br>cmake -G Ninja ../llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_STATIC=True<br>ninja clang</p><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><br><table cellspacing="0" cellpadding="0" style="font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Vince Harron |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Technical Lead Manager |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:vharron@google.com" target="_blank">vharron@google.com</a> |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"> 858-442-0868</td></tr></tbody></table><br></div></div>
</div>