Hi, I have updated llvm to the 113aa8612010434069fc5b5e09f6b2667e03e173 git commit. I have a small llvm project that builds a bitcode library, so I used MODULE_NAME=foo to build foo.bc. Now, I cannot build the library, because a compatible compiler cannot be found (Makefile.rules:1052). I have seen that configure.ac has been modified, so: 1) there is an update in progress? 2) I have to use cmake instead of autoconf? 3) The way to build bitcode modules has changed? Thank you, speziale.ettore at gmail.com
On Sep 28, 2011, at 11:31 PM, Speziale Ettore wrote:> Hi, > > I have updated llvm to the 113aa8612010434069fc5b5e09f6b2667e03e173 git > commit. I have a small llvm project that builds a bitcode library, so I > used MODULE_NAME=foo to build foo.bc. Now, I cannot build the library, > because a compatible compiler cannot be found (Makefile.rules:1052). > > I have seen that configure.ac has been modified, so: > > 1) there is an update in progress?No> 2) I have to use cmake instead of autoconf?Definitely not.> 3) The way to build bitcode modules has changed?Not really. What compiler are you using to build with? I've made it default to clang with less looking around for llvm-gcc, so there may be an issue there. What is your configure line? What host are you trying to build on? -eric
Hi,> What compiler are you using to build with? I've made it default to clang with less looking around for llvm-gcc, so there may be an issue there. What is your configure line? What host are you trying to build on?First I have compiled llvm/clang compiled with "gcc (Gentoo 4.5.2 p1.1, pie-0.4.5) 4.5.2". Then I have installed llvm/clang. They are in the path: $ clang --version clang version 3.0 (http://llvm.org/git/clang.git 53ce37ff4b44c59e5ac682d4558df980a8a3fa33) Target: x86_64-unknown-linux-gnu Thread model: posix My llvm configure line is: ../src/configure --prefix=/home/ettore/work/llvm/root Host: Linux ironman 2.6.35-gentoo-r10 #1 SMP Fri Oct 15 11:35:09 CEST 2010 x86_64 Intel(R) Xeon(R) CPU E5335 @ 2.00GHz GenuineIntel GNU/Linux I have added a bitcode library to the sample project I have modified the sample project to show my problem -- patch attached. The warning comes from Makefile.rules:1192. The check is performed over LLVMCC, set at Makefile.rules:428-443. Setting depends on LLVMCC_OPTIONS, CLANGPATH, and ENABLE_BUILT_CLANG. Previously -- I have tried with 3699261d3f49d65cee6a645c849c41cdca51a01f -- these vars was set throught the configure script, now they are not set. Thank you for the assistance, speziale.ettore at gmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: bitcode-module.diff Type: text/x-patch Size: 1172 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110929/cd6ec1d0/attachment.bin>