-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello devs, I'd like to ask for some advise about adding a backend. I followed the steps at http://llvm.org/docs/WritingAnLLVMBackend.html (also adding the backend to the configure script, so it compiles (on Linux) with LLVM 3.1. However, llvm-build fails with: llvm[0]: Constructing LLVMBuild project information. Usage: llvm-build [options] llvm-build: error: invalid target to enable: 'Foo' (not in project) and since the to be generated LibraryDependencies.inc is missing llvm-config doesn't build. Am I missing something? Regards, Mario -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJP9t/EAAoJEDv0fP6GapNteooH/A/9z/hkTzS7p3bUx6JM3j+9 xhq6owto2w0jV0uN7rBbBnTWZ6lIEtgiYXJXdcuDPQWV43gKq1LQCm8ewIuTUpRN mjGTh3YrC+YhqB+7SfvfbuLfQ4TzMtdbfQCx+PogFzonRDd/zM8r1tCOrtG6WJpO p+de2L7TKiy4rxcbal3DOrAurhoSUAoY25VFAm5IpYmgDI1llV5XmjgJLyJ43Fq2 T82qYxPM2o7EE48OJe4sMnE+6Ioryon9uC1N3PmfA9KVnBsUdsntmPdQOsv5lG3Q wRJL7AJMVS60jSuecj0nubxYHjyY44VYyuqEze/4u2sp9MB6vxxBXEar14UDGvw=5FZE -----END PGP SIGNATURE-----
Hi Mario, It looks like you didn't add your target to the list of targets in lib/Target/LLVMBuild.txt. Ivan On 06/07/2012 14:53, Mario Schwalbe wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello devs, > > I'd like to ask for some advise about adding a backend. I followed > the steps at http://llvm.org/docs/WritingAnLLVMBackend.html (also > adding the backend to the configure script, so it compiles (on Linux) > with LLVM 3.1. > > However, llvm-build fails with: > > llvm[0]: Constructing LLVMBuild project information. > Usage: llvm-build [options] > > llvm-build: error: invalid target to enable: 'Foo' (not in project) > > and since the to be generated LibraryDependencies.inc is missing > llvm-config doesn't build. > > Am I missing something? > > Regards, > Mario > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQEcBAEBAgAGBQJP9t/EAAoJEDv0fP6GapNteooH/A/9z/hkTzS7p3bUx6JM3j+9 > xhq6owto2w0jV0uN7rBbBnTWZ6lIEtgiYXJXdcuDPQWV43gKq1LQCm8ewIuTUpRN > mjGTh3YrC+YhqB+7SfvfbuLfQ4TzMtdbfQCx+PogFzonRDd/zM8r1tCOrtG6WJpO > p+de2L7TKiy4rxcbal3DOrAurhoSUAoY25VFAm5IpYmgDI1llV5XmjgJLyJ43Fq2 > T82qYxPM2o7EE48OJe4sMnE+6Ioryon9uC1N3PmfA9KVnBsUdsntmPdQOsv5lG3Q > wRJL7AJMVS60jSuecj0nubxYHjyY44VYyuqEze/4u2sp9MB6vxxBXEar14UDGvw> =5FZE > -----END PGP SIGNATURE----- > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Hello> I'd like to ask for some advise about adding a backend. I followed > the steps at http://llvm.org/docs/WritingAnLLVMBackend.html (also > adding the backend to the configure script, so it compiles (on Linux) > with LLVM 3.1.This document is heavily out of date (so, I think it should be removed / marked obsolete). You might grab some information from http://llvm.org/devmtg/2012-04-12/Slides/Workshops/Anton_Korobeynikov.pdf and around. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Looks like adding LLVMBuild.txt to lib/Target/Foo and all sub-directories did the trick. It's still compiling... Thanks Anton and Ivan. Am 06.07.2012 15:51, schrieb Anton Korobeynikov:>> I'd like to ask for some advise about adding a backend. I followed the steps at http://llvm.org/docs/WritingAnLLVMBackend.html (also adding the backend to the configure script, so it compiles (on Linux) with LLVM 3.1. > This document is heavily out of date (so, I think it should be removed / marked obsolete). You might grab some information from http://llvm.org/devmtg/2012-04-12/Slides/Workshops/Anton_Korobeynikov.pdf and around.-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJP9vPbAAoJEDv0fP6GapNtjasIAJoJOi37MO2NK2T7WWqgg/yA O/yDAE36tZ5yo7EZv+y1QBwNl81G9eePjblJ3X0mT4yl4XV7/ZaJWVgkW9yVkMVX QcyAZIXF7133uex5+1GKGebisj5ITo6WAcyG8fUfww1OWHExatwSu3nJ7GRsKbZy JCFsAPwA37J/S8wvczqvjVZ0gFsmDWzjac/qUj7lFTLAgeRgpR1pN0mf7f7ItGJL XXmj40A2nNk1Usi9kCmBxEC6bCzBX+urplEBe+4/BStjzHL3Kvg64xLVUmXPUJa1 Zjlcj9OqAEvgcTXzMod92C+aXbL7K+q/4P7jbuoJ8i4HFoniGK7EglViZR6/H1c=eW5/ -----END PGP SIGNATURE-----
Hello,> You might grab some information from > http://llvm.org/devmtg/2012-04-12/Slides/Workshops/Anton_Korobeynikov.pdf > and around.On Page 56 it says: Maybe it’s a good idea to add ‘stub’ backend to the tree Are there any plans to this? I'd like to see a 'stub' backend in the llvm-tree (or somewhere else). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120710/e985c5f4/attachment.sig>