[LLVMdev] Trouble Building llvm-gcc-4.2

David Greene dag at cray.com
Wed Dec 10 09:54:24 PST 2008


I'm almost finished with the BuildBot validation config, but I'm having 
trouble convincing it to compiler llvm-gcc-4.2.

Here's the relevant portion of the config:

  f.addStep(SVN(workdir="llvm-gcc-4.2/src", mode='clobber', 
baseURL='http://llvm.org/svn/llvm-project/llvm-gcc-4.2/', 
defaultBranch='trunk'))
  checking=""
  if optimized == "--disable-optimized":
    checking="--enable-checking"
  f.addStep(Configure(workdir="llvm-gcc-4.2/obj", command=["../src/configure", 
WithProperties("--prefix=%s/install", "absbuilddir"), 
"--program-prefix=llvm-", 
WithProperties("--enable-llvm=%s/build-llvm-initial/obj", "absbuilddir"), 
"--enable-languages=c,c++", checking]))
  f.addStep(WarningCountingShellCommand, workdir="llvm-gcc-4.2/obj", name = 
"llvm-gcc-4.2_clean", command="make clean", haltOnFailure = True, 
description="cleaning llvm-gcc-4.2", descriptionDone="clean llvm-gcc-4.2")
  f.addStep(WarningCountingShellCommand, workdir="llvm-gcc-4.2/obj", name = 
"llvm-gcc-4.2_compile", command="nice -n 10 make bootstrap", haltOnFailure = 
True, description="compiling llvm-gcc-4.2", descriptionDone="compile 
llvm-gcc-4.2")
  f.addStep(WarningCountingShellCommand, name = "llvm-gcc-4.2_install", 
command="nice -n 10 make install", haltOnFailure = True, 
description="installing llvm-gcc-4.2", descriptionDone="install 
llvm-gcc-4.2")
  f.addStep(DejaGNUTester(description="testing llvm-gcc-4.2", 
descriptionDone="test llvm-gcc-4.2", workdir="llvm-gcc-4.2/obj"))

Note that I pass --enable-llvm=<abs llvm obj dir> to configure for 
llvm-gcc-4.2.  However, the build fails with:

configure: error: You must specify valid path to your LLVM tree with 
--enable-llvm=DIR

The initial configure of llvm-gcc-4.2 works just fine.  It's the actual build 
that fails, when the configure is done is subdirectories as part of "make 
bootstrap."

Any hints?

                                               -Dave



More information about the llvm-dev mailing list