<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Dear LLVM developers,<br>
    <br>
    My name is Gabor Ballabas. I work for the University of Szeged
    (Hungary) and<br>
    we have an ongoing project with the goal of setting up and
    maintaining an LLVM buildbot<br>
    for the ARMv8 - alias Aarch64 - architecture. Due to lack of
    existing hardware for this<br>
    architecture we use ARM's Foundation Model to run the Aarch64
    binaries.<br>
    (See: <a
href="http://www.arm.com/products/tools/models/fast-models/foundation-model.php">http://www.arm.com/products/tools/models/fast-models/foundation-model.php</a>
    )<br>
    <br>
    The buildbot works as follows:<br>
      * The buildslave runs on an x86 machine cross-compiling LLVM
    itself to aarch64-linux-gnu<br>
         host and target.<br>
      * The buildslave's build directory is mirrored via NFS to a
    running instance of ARM's Foundation<br>
         Model.<br>
      * The buildslave logs into the Foundation Model via ssh and runs
    the regression tests.<br>
    <br>
    Unfortunately there has been some issues with the buildbot. I
    checked out the zorg repository<br>
    and modified it in order to use it on my local machine (turning off
    all the other builders and the mail <br>
    and irc status etc.). You can check it at this link: <a
      href="http://cute2.inf.u-szeged.hu:3389/waterfall">http://cute2.inf.u-szeged.hu:3389/waterfall</a><br>
    <br>
    The problem is that the buildslave uses the following options to the
    configure script:<br>
    <br>
       <small>--host=aarch64-linux-gnu --target=aarch64-linux-gnu etc.</small><br>
    <br>
    After that the make command fails with this message:<br>
    <br>
    <small>    llvm[0]: Constructing LLVMBuild project information.<br>
          configure: error: Already configured in
      /home/ximinez/work/llvm/source/llvm<br>
          make[1]: Entering directory
      `/home/ximinez/work/llvm/source/llvm/BuildTools'<br>
          make[1]: *** No targets specified and no makefile found. 
      Stop.<br>
          make[1]: Leaving directory
      `/home/ximinez/work/llvm/source/llvm/BuildTools'<br>
          make: *** [cross-compile-build-tools] Error 1<br>
      <br>
      <big>I found the same problem mentioned on the internet with the
        suggested solution that a<br>
        separate build directory must be used in order to avoid this
        failure when cross-compiling LLVM.<br>
        But for that I had to modify the LLVMBuilder.py script - see the
        attachment.<br>
        <br>
        My question is: Is there any other way to solve this problem
        without modifying LLVMBuilder.py?<br>
        Maybe I'm not using the configure script or the zorg scripts
        correctly. Or maybe there is a simple,<br>
        clean way to accomplish this task that I failed to notice.<br>
        <br>
        <br>
        Best regards,<br>
        Gabor Ballabas<br>
        <br>
      </big></small>
  </body>
</html>