Hi, I am attempting to set up a new frontend project based on the sample project (I'm following the instructions at http://llvm.org/docs/Projects.html). In doing so, I hit a problem with AutoRegen.sh which I worked around, and hit a problem with configure that I don't know how to work around. Below is what happens when I attempt to autoconf and configure the sample project that ships with LLVM. This is on Mac OS X 10.5 with autoconf 2.6.0. For reference, /opt/src-llvm is where my llvm sources are, and where I built those sources. My project is in /opt/src-llvm/projects/sample. $ cd /opt/src-llvm/projects/sample $ cd autoconf/ $ ./AutoRegen.sh Your autoconf was not detected as being 2.5x I have autoconf 2.6. To keep going I edited AutoRegen.sh and made the following change: 8c8 < autoconf --version | egrep '2\.5[0-9]' > /dev/null ---> autoconf --version | egrep '2\.[56][0-9]' > /dev/null$ ./AutoRegen.sh Regenerating aclocal.m4 with aclocal Regenerating configure with autoconf 2.5x $ cd .. When I compiled the llvm sources, I did not do make install. So the object files are still where they were built. $ ./configure --with-llvmsrc=/opt/src-llvm --with-llvmobj=/opt/src-llvm/Release configure: error: cannot find install-sh or install.sh in ../../../autoconf "."/../../../autoconf OK. So maybe it wants the main llvm source directory... $ ./configure --with-llvmsrc=/opt/src-llvm --with-llvmobj=/opt/src-llvm configure: error: cannot find install-sh or install.sh in ../../../autoconf "."/../../../autoconf It looks like configure is not correctly accepting the flags I'm giving it. Any thoughts on where to go from here? Thanks, Lane
On Fri, Apr 11, 2008 at 9:39 AM, Lane Schwartz <dowobeha at gmail.com> wrote:> Hi, > > I am attempting to set up a new frontend project based on the sample > project (I'm following the instructions at > http://llvm.org/docs/Projects.html). In doing so, I hit a problem with > AutoRegen.sh which I worked around, and hit a problem with configure > that I don't know how to work around. > > Below is what happens when I attempt to autoconf and configure the > sample project that ships with LLVM. This is on Mac OS X 10.5 with > autoconf 2.6.0. For reference, /opt/src-llvm is where my llvm sources > are, and where I built those sources. My project is in > /opt/src-llvm/projects/sample. > > $ cd /opt/src-llvm/projects/sample > > $ cd autoconf/ > $ ./AutoRegen.sh > Your autoconf was not detected as being 2.5x > > I have autoconf 2.6. To keep going I edited AutoRegen.sh and made the > following change: > > 8c8 > < autoconf --version | egrep '2\.5[0-9]' > /dev/null > --- > > autoconf --version | egrep '2\.[56][0-9]' > /dev/null > > > $ ./AutoRegen.sh > Regenerating aclocal.m4 with aclocal > Regenerating configure with autoconf 2.5x > > $ cd .. > > > When I compiled the llvm sources, I did not do make install. So the > object files are still where they were built. > > $ ./configure --with-llvmsrc=/opt/src-llvm --with-llvmobj=/opt/src-llvm/Release > configure: error: cannot find install-sh or install.sh in > ../../../autoconf "."/../../../autoconf > > OK. So maybe it wants the main llvm source directory... > > $ ./configure --with-llvmsrc=/opt/src-llvm --with-llvmobj=/opt/src-llvm > configure: error: cannot find install-sh or install.sh in > ../../../autoconf "."/../../../autoconf > > > It looks like configure is not correctly accepting the flags I'm giving it. > > > Any thoughts on where to go from here? > > Thanks, > Lane >I should mention that I get the same result if I run configure without any flags. Lane
On Fri, Apr 11, 2008 at 9:41 AM, Lane Schwartz <dowobeha at gmail.com> wrote:> > On Fri, Apr 11, 2008 at 9:39 AM, Lane Schwartz <dowobeha at gmail.com> wrote: > > Hi, > > > > I am attempting to set up a new frontend project based on the sample > > project (I'm following the instructions at > > http://llvm.org/docs/Projects.html). In doing so, I hit a problem with > > AutoRegen.sh which I worked around, and hit a problem with configure > > that I don't know how to work around. > > > > Below is what happens when I attempt to autoconf and configure the > > sample project that ships with LLVM. This is on Mac OS X 10.5 with > > autoconf 2.6.0. For reference, /opt/src-llvm is where my llvm sources > > are, and where I built those sources. My project is in > > /opt/src-llvm/projects/sample. > > > > $ cd /opt/src-llvm/projects/sample > > > > $ cd autoconf/ > > $ ./AutoRegen.sh > > Your autoconf was not detected as being 2.5x > > > > I have autoconf 2.6. To keep going I edited AutoRegen.sh and made the > > following change: > > > > 8c8 > > < autoconf --version | egrep '2\.5[0-9]' > /dev/null > > --- > > > autoconf --version | egrep '2\.[56][0-9]' > /dev/null > > > > > > $ ./AutoRegen.sh > > Regenerating aclocal.m4 with aclocal > > Regenerating configure with autoconf 2.5x > > > > $ cd .. > > > > > > When I compiled the llvm sources, I did not do make install. So the > > object files are still where they were built. > > > > $ ./configure --with-llvmsrc=/opt/src-llvm --with-llvmobj=/opt/src-llvm/Release > > configure: error: cannot find install-sh or install.sh in > > ../../../autoconf "."/../../../autoconf > > > > OK. So maybe it wants the main llvm source directory... > > > > $ ./configure --with-llvmsrc=/opt/src-llvm --with-llvmobj=/opt/src-llvm > > configure: error: cannot find install-sh or install.sh in > > ../../../autoconf "."/../../../autoconf > > > > > > It looks like configure is not correctly accepting the flags I'm giving it. > > > > > > Any thoughts on where to go from here? > > > > Thanks, > > Lane > > > > I should mention that I get the same result if I run configure without > any flags. > > LaneIt looks like, in the generated configure script, the LLVM_SRC_ROOT and LLVM_OBJ_ROOT variables are never updated to reflect the values passed as command line flags. Only the LLVM_SRC and LLVM_OBJ variables are updated. But, when the script looks for other scripts (like install.sh), it looks in the LLVM_SRC_ROOT and LLVM_OBJ_ROOT directories, not in the LLVM_SRC and LLVM_OBJ directories. Thanks, Lane
> Below is what happens when I attempt to autoconf and configure the > sample project that ships with LLVM. This is on Mac OS X 10.5 with > autoconf 2.6.0. For reference, /opt/src-llvm is where my llvm sources > are, and where I built those sources. My project is in > /opt/src-llvm/projects/sample. > > $ cd /opt/src-llvm/projects/sample > > $ cd autoconf/ > $ ./AutoRegen.sh > Your autoconf was not detected as being 2.5x > > I have autoconf 2.6. To keep going I edited AutoRegen.sh and made the > following change:This probably isn't going to work. If you want to upgrade the tools, you need to read this: http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/README.TXT?revision=29529&view=markup (autoconf/README.TXT) I would just install 2.5 on your system and make your life easier. Unless you want to take the steps to upgrade the tools (in that case, please submit a patch!). -Tanya> > 8c8 > < autoconf --version | egrep '2\.5[0-9]' > /dev/null > --- >> autoconf --version | egrep '2\.[56][0-9]' > /dev/null > > > $ ./AutoRegen.sh > Regenerating aclocal.m4 with aclocal > Regenerating configure with autoconf 2.5x > > $ cd .. > > > When I compiled the llvm sources, I did not do make install. So the > object files are still where they were built. > > $ ./configure --with-llvmsrc=/opt/src-llvm --with-llvmobj=/opt/src-llvm/Release > configure: error: cannot find install-sh or install.sh in > ../../../autoconf "."/../../../autoconf > > OK. So maybe it wants the main llvm source directory... > > $ ./configure --with-llvmsrc=/opt/src-llvm --with-llvmobj=/opt/src-llvm > configure: error: cannot find install-sh or install.sh in > ../../../autoconf "."/../../../autoconf > > > It looks like configure is not correctly accepting the flags I'm giving it. > > > Any thoughts on where to go from here? > > Thanks, > Lane > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
On Fri, Apr 11, 2008 at 12:35 PM, Tanya M. Lattner <tonic at nondot.org> wrote:> > > Below is what happens when I attempt to autoconf and configure the > > sample project that ships with LLVM. This is on Mac OS X 10.5 with > > autoconf 2.6.0. For reference, /opt/src-llvm is where my llvm sources > > are, and where I built those sources. My project is in > > /opt/src-llvm/projects/sample. > > > > $ cd /opt/src-llvm/projects/sample > > > > $ cd autoconf/ > > $ ./AutoRegen.sh > > Your autoconf was not detected as being 2.5x > > > > I have autoconf 2.6. To keep going I edited AutoRegen.sh and made the > > following change: > > This probably isn't going to work. If you want to upgrade the tools, you > need to read this: > http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/README.TXT?revision=29529&view=markup > (autoconf/README.TXT) > > I would just install 2.5 on your system and make your life easier. Unless > you want to take the steps to upgrade the tools (in that case, please > submit a patch!).OK then. I didn't realize that having a newer version would be a problem. I compiled and installed autoconf 2.59. I still get the same problem: $ autoconf --version autoconf (GNU Autoconf) 2.59 $ cd /opt/src-llvm/projects/sample/autoconf $ ./AutoRegen.sh $ cd .. $ ./configure --with-llvmsrc=/opt/src-llvm --with-llvmobj=/opt/src-llvm configure: error: cannot find install-sh or install.sh in ../../../autoconf ./../../../autoconf Any other tips? I should mention that I'm working with llvm-2.2, not the current svn. Thanks, Lane