Lei Wang via llvm-dev
2015-Aug-26 08:30 UTC
[llvm-dev] How to compile go progran using dragongg?
Hello, everyone. I'm trying to compile go language program to llvm ir, and I using the gcc+dragonegg , like this: $gcc test.go -S -O1 -o - -fplugin=path_to_dragonegg/dragegg.so -flto but there is a error occur: gcc: error trying to exec 'go1': execvp: no such file or directory. Is there anyone can help me? Thx a lot! --Wang Lei (BUPT) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150826/06375d92/attachment.html>
Andrew Wilkins via llvm-dev
2015-Aug-26 08:41 UTC
[llvm-dev] How to compile go progran using dragongg?
Hi Lei, I can't give any advice on dragonegg (maybe you should be using the "gccgo" command instead of "gcc"?), but in case you're not aware there is a Go frontend for LLVM called llgo: http://llvm.org/klaus/llgo/blob/master/README.TXT. Cheers, Andrew On Wed, 26 Aug 2015 at 16:30 Lei Wang via llvm-dev <llvm-dev at lists.llvm.org> wrote:> Hello, everyone. > I'm trying to compile go language program to llvm ir, and I using the > gcc+dragonegg , like this: > $gcc test.go -S -O1 -o - -fplugin=path_to_dragonegg/dragegg.so -flto > but there is a error occur: gcc: error trying to exec 'go1': execvp: no > such file or directory. > Is there anyone can help me? Thx a lot! > > --Wang Lei (BUPT) > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150826/9e14cc42/attachment.html>
Duncan Sands via llvm-dev
2015-Sep-02 13:15 UTC
[llvm-dev] How to compile go progran using dragongg?
Hi Wang Lei, On 26/08/15 10:30, Lei Wang via llvm-dev wrote:> Hello, everyone. > I'm trying to compile go language program to llvm ir, and I using the > gcc+dragonegg , like this: > $gcc test.go -S -O1 -o - -fplugin=path_to_dragonegg/dragegg.so -flto > but there is a error occur: gcc: error trying to exec 'go1': execvp: no such > file or directory. > Is there anyone can help me? Thx a lot!no-one is working on dragonegg any more, so best not to use it. Anyway the message means your version of gcc doesn't support Go. I don't think it has anything to do with dragonegg. Best wishes, Duncan.