Hello This link didn't work for me. As I am getting error whose meaning is - there are no options as -arch i386 -arch x86_64. How should I remove this error? On Wed, Mar 22, 2017 at 6:11 PM, 陳韋任 <chenwj.cs97g at g2.nctu.edu.tw> wrote:> Hi Aayushi, > > Seems the link [1] answers your question. > > [1] http://stackoverflow.com/questions/28640585/build- > install-llvm-clang-with-both-32-64-bit-support-libraries > > HTH, > chenwj > > > 2017-03-22 14:43 GMT+08:00 Aayushi Agrawal via llvm-dev < > llvm-dev at lists.llvm.org>: > >> Hello >> >> I had build llvm-3.9 (having clang-3.9 and compiler-rt-3.9). I want to >> run asan on both 32 bit architecture as well as 64 bit architecture. >> >> Compiling it with -m32 I am getting following error: >> >> /usr/bin/ld: cannot find ~/llvm/build/bin/../lib/clang/3.9.0/lib/linux/ >> libclang_rt.asan-i386.a: No such file or directory >> clang-3.9: error: linker command failed with exit code 1 (use -v to see >> invocation) >> >> Could somebody please help me to resolve this issue! >> >> -- >> Aayushi Agrawal >> B.Tech(Final Year) >> Computer Science Engineering Undergraduate >> LNMIIT,JAIPUR >> Contact - 09649357639 >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >> > > > -- > Wei-Ren Chen (陳韋任) > Homepage: http://people.cs.nctu.edu.tw/~chenwj > >-- Aayushi Agrawal B.Tech(Final Year) Computer Science Engineering Undergraduate LNMIIT,JAIPUR Contact - 09649357639 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170331/fb42d10b/attachment.html>
Looks like you haven't built the i386 versions of the libraries. Can you please paste the commands you're using to build LLVM? On Fri, Mar 31, 2017 at 11:48 AM, Aayushi Agrawal via llvm-dev <llvm-dev at lists.llvm.org> wrote:> Hello > > This link didn't work for me. > > As I am getting error whose meaning is - there are no options as -arch i386 > -arch x86_64. How should I remove this error? > > > On Wed, Mar 22, 2017 at 6:11 PM, 陳韋任 <chenwj.cs97g at g2.nctu.edu.tw> wrote: >> >> Hi Aayushi, >> >> Seems the link [1] answers your question. >> >> [1] >> http://stackoverflow.com/questions/28640585/build-install-llvm-clang-with-both-32-64-bit-support-libraries >> >> HTH, >> chenwj >> >> >> 2017-03-22 14:43 GMT+08:00 Aayushi Agrawal via llvm-dev >> <llvm-dev at lists.llvm.org>: >>> >>> Hello >>> >>> I had build llvm-3.9 (having clang-3.9 and compiler-rt-3.9). I want to >>> run asan on both 32 bit architecture as well as 64 bit architecture. >>> >>> Compiling it with -m32 I am getting following error: >>> >>> /usr/bin/ld: cannot find >>> ~/llvm/build/bin/../lib/clang/3.9.0/lib/linux/libclang_rt.asan-i386.a: No >>> such file or directory >>> clang-3.9: error: linker command failed with exit code 1 (use -v to see >>> invocation) >>> >>> Could somebody please help me to resolve this issue! >>> >>> -- >>> Aayushi Agrawal >>> B.Tech(Final Year) >>> Computer Science Engineering Undergraduate >>> LNMIIT,JAIPUR >>> Contact - 09649357639 >>> >>> _______________________________________________ >>> LLVM Developers mailing list >>> llvm-dev at lists.llvm.org >>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >>> >> >> >> >> -- >> Wei-Ren Chen (陳韋任) >> Homepage: http://people.cs.nctu.edu.tw/~chenwj >> > > > > -- > Aayushi Agrawal > B.Tech(Final Year) > Computer Science Engineering Undergraduate > LNMIIT,JAIPUR > Contact - 09649357639 > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-- Alexander Potapenko Software Engineer Google Germany GmbH Erika-Mann-Straße, 33 80636 München Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg
So can you please post the commands you used to configure and build LLVM? I actually don't think "-m32 -m64" can work together. On Fri, Mar 31, 2017 at 1:13 PM, Aayushi Agrawal <aayushigrwl1 at gmail.com> wrote:> I had built llvm, clang and compiler-rt together by using cmake and flag > used was "-m32 -m64" > > It had built with no error but didn't produce i386 files. > > On Fri, Mar 31, 2017 at 3:29 PM, Alexander Potapenko <glider at google.com> > wrote: >> >> Looks like you haven't built the i386 versions of the libraries. >> Can you please paste the commands you're using to build LLVM? >> >> On Fri, Mar 31, 2017 at 11:48 AM, Aayushi Agrawal via llvm-dev >> <llvm-dev at lists.llvm.org> wrote: >> > Hello >> > >> > This link didn't work for me. >> > >> > As I am getting error whose meaning is - there are no options as -arch >> > i386 >> > -arch x86_64. How should I remove this error? >> > >> > >> > On Wed, Mar 22, 2017 at 6:11 PM, 陳韋任 <chenwj.cs97g at g2.nctu.edu.tw> >> > wrote: >> >> >> >> Hi Aayushi, >> >> >> >> Seems the link [1] answers your question. >> >> >> >> [1] >> >> >> >> http://stackoverflow.com/questions/28640585/build-install-llvm-clang-with-both-32-64-bit-support-libraries >> >> >> >> HTH, >> >> chenwj >> >> >> >> >> >> 2017-03-22 14:43 GMT+08:00 Aayushi Agrawal via llvm-dev >> >> <llvm-dev at lists.llvm.org>: >> >>> >> >>> Hello >> >>> >> >>> I had build llvm-3.9 (having clang-3.9 and compiler-rt-3.9). I want to >> >>> run asan on both 32 bit architecture as well as 64 bit architecture. >> >>> >> >>> Compiling it with -m32 I am getting following error: >> >>> >> >>> /usr/bin/ld: cannot find >> >>> ~/llvm/build/bin/../lib/clang/3.9.0/lib/linux/libclang_rt.asan-i386.a: >> >>> No >> >>> such file or directory >> >>> clang-3.9: error: linker command failed with exit code 1 (use -v to >> >>> see >> >>> invocation) >> >>> >> >>> Could somebody please help me to resolve this issue! >> >>> >> >>> -- >> >>> Aayushi Agrawal >> >>> B.Tech(Final Year) >> >>> Computer Science Engineering Undergraduate >> >>> LNMIIT,JAIPUR >> >>> Contact - 09649357639 >> >>> >> >>> _______________________________________________ >> >>> LLVM Developers mailing list >> >>> llvm-dev at lists.llvm.org >> >>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >>> >> >> >> >> >> >> >> >> -- >> >> Wei-Ren Chen (陳韋任) >> >> Homepage: http://people.cs.nctu.edu.tw/~chenwj >> >> >> > >> > >> > >> > -- >> > Aayushi Agrawal >> > B.Tech(Final Year) >> > Computer Science Engineering Undergraduate >> > LNMIIT,JAIPUR >> > Contact - 09649357639 >> > >> > _______________________________________________ >> > LLVM Developers mailing list >> > llvm-dev at lists.llvm.org >> > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> > >> >> >> >> -- >> Alexander Potapenko >> Software Engineer >> >> Google Germany GmbH >> Erika-Mann-Straße, 33 >> 80636 München >> >> Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle >> Registergericht und -nummer: Hamburg, HRB 86891 >> Sitz der Gesellschaft: Hamburg > > > > > -- > Aayushi Agrawal > B.Tech(Final Year) > Computer Science Engineering Undergraduate > LNMIIT,JAIPUR > Contact - 09649357639-- Alexander Potapenko Software Engineer Google Germany GmbH Erika-Mann-Straße, 33 80636 München Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg