Yes,but ubuntu's directory structure is not exactly the same as the classic linux distribute, I put libLLVMgold.so in /usr/lib/gcc/i486-linux-gnu/4.2.4 where cc1 is also in. Strange situation,is it a bug for llvm-gcc???? 在 2009-09-18五的 12:58 +0300,Török Edwin写道:> On 2009-09-18 03:06, Nan Zhu wrote: > > OMG,that's just my situation... > > > > I can link with libLLVMgold.so manualy,but will fail in that by llvm-gcc. > > > > Debug llvm-gcc????? > > > > Any one installed the gold-plugin successfully can give some instruction? > > Does the directory where you put the gold plugin look like this? > $PREFIX/libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/ > > Where $PREFIX is the prefix where you installed llvm-gcc > > Best regards, > --Edwin >
2009/9/18 zhunan <zhunansjtu at gmail.com>:> Yes,but ubuntu's directory structure is not exactly the same as the > classic linux distribute, > > I put libLLVMgold.so in /usr/lib/gcc/i486-linux-gnu/4.2.4 where cc1 is > also in. > > Strange situation,is it a bug for llvm-gcc????Could be. Are you comfortable using gdb? Last time I looked it was working for me. Cheers, -- Rafael Avila de Espindola
Yes,gdb could be a solution,but my final goal is to automalize the linking procedure just like what the GNU build system does,gdb may not works for that. So,some others mentioned gold-plugin can work for some certain problems,I don't know how they archieve this. 2009/9/19 Rafael Espindola <espindola at google.com>> 2009/9/18 zhunan <zhunansjtu at gmail.com>: > > Yes,but ubuntu's directory structure is not exactly the same as the > > classic linux distribute, > > > > I put libLLVMgold.so in /usr/lib/gcc/i486-linux-gnu/4.2.4 where cc1 is > > also in. > > > > Strange situation,is it a bug for llvm-gcc???? > > Could be. Are you comfortable using gdb? Last time I looked it > was working for me. > > Cheers, > -- > Rafael Avila de Espindola >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090919/6adc15b7/attachment.html>
On 2009-09-19 03:28, zhunan wrote:> Yes,but ubuntu's directory structure is not exactly the same as the > classic linux distribute, > > I put libLLVMgold.so in /usr/lib/gcc/i486-linux-gnu/4.2.4 where cc1 is > also in. > >Are you sure that is llvm-gcc's cc1, and not your system compiler's? Try this: $ llvm-gcc -### -x c /dev/null Then look for a line containing cc1, something similar to this one: "/home/edwin/llvm-git/install/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/cc1" "-quiet" "-iprefix" "/home/edwin/llvm-git/install/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.1/" "/dev/null" "-quiet" "-dumpbase" "null" "-mtune=generic" "-auxbase" "null" "-o" "/tmp/cceoliII.s"> Strange situation,is it a bug for llvm-gcc???? > > 在 2009-09-18五的 12:58 +0300,Török Edwin写道: > >> On 2009-09-18 03:06, Nan Zhu wrote: >> >>> OMG,that's just my situation... >>> >>> I can link with libLLVMgold.so manualy,but will fail in that by llvm-gcc. >>> >>> Debug llvm-gcc????? >>> >>> Any one installed the gold-plugin successfully can give some instruction? >>> >> Does the directory where you put the gold plugin look like this? >> $PREFIX/libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/ >> >> Where $PREFIX is the prefix where you installed llvm-gcc >> >> Best regards, >> --Edwin >> >> > >
Thank you , yes,I took the wrong directory,and I archieve the goal under your instructions, thank you 在 2009-09-19六的 09:51 +0300,Török Edwin写道:> On 2009-09-19 03:28, zhunan wrote: > > Yes,but ubuntu's directory structure is not exactly the same as the > > classic linux distribute, > > > > I put libLLVMgold.so in /usr/lib/gcc/i486-linux-gnu/4.2.4 where cc1 is > > also in. > > > > > > Are you sure that is llvm-gcc's cc1, and not your system compiler's? > Try this: > $ llvm-gcc -### -x c /dev/null > > Then look for a line containing cc1, something similar to this one: > "/home/edwin/llvm-git/install/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/cc1" > "-quiet" "-iprefix" > "/home/edwin/llvm-git/install/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.1/" > "/dev/null" "-quiet" "-dumpbase" "null" "-mtune=generic" "-auxbase" > "null" "-o" "/tmp/cceoliII.s" > > > > Strange situation,is it a bug for llvm-gcc???? > > > > 在 2009-09-18五的 12:58 +0300,Török Edwin写道: > > > >> On 2009-09-18 03:06, Nan Zhu wrote: > >> > >>> OMG,that's just my situation... > >>> > >>> I can link with libLLVMgold.so manualy,but will fail in that by llvm-gcc. > >>> > >>> Debug llvm-gcc????? > >>> > >>> Any one installed the gold-plugin successfully can give some instruction? > >>> > >> Does the directory where you put the gold plugin look like this? > >> $PREFIX/libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/ > >> > >> Where $PREFIX is the prefix where you installed llvm-gcc > >> > >> Best regards, > >> --Edwin > >> > >> > > > > >