<div dir="ltr">Hi,<div><br></div><div style>I tried to build an llvm archive and link it against an llvm bc file. However, it fails. Following is the procedure I followed ( abc.c is file which calls a function whose definition is present in bcd.c)</div>
<div style><br></div><div style><div> $ clang -c -emit-llvm abc.c </div><div> $  clang -c -emit-llvm bcd.c </div><div> $  llvm-ar cr <a href="http://bsd.ar">bsd.ar</a> bcd.o </div><div> $  llvm-link abc.o <a href="http://bsd.ar">bsd.ar</a></div>
<div><br></div><div><div>llvm-link: bsd.ar:1:2: error: expected integer</div><div>!<arch></div><div> ^</div><div>llvm-link: error loading file '<a href="http://bsd.ar">bsd.ar</a>'</div></div><div><br></div><div style>
What am I missing here ? </div><div style><br></div><div style>Regards,</div><div style>Ankur</div></div></div>